Migration of a Complete Oracle database instance

Source: Internet
Author: User

Requirement Analysis:
Migrate the entire table structure, table data, and inter-Table constraints of the source database to the target instance;
Delete all tables and users in the target database and recreate the users in the target database:
Drop user user_name cascade;
Create user user_name identified by password default tablespace tablespace_name;
Grant connect, dba to user_name;
 
Source database operations:
Export all tables under a specified user in the source database:
Exp username/pwd @ link_name file = dmpfilename owner = user_name rows = y log = fullpath_logfilename
 
Target database operations:
Do not restrict and index the imported data:
Imp username/pwd @ link_name file = dmpfilename rows = y ignore = y feedback = 10000 constraints = n indexes = n log = fullpath_logfile.log full = y
Import constraints and indexes do not import data
Imp username/pwd @ link_name file = dmpfilename rows = n ignore = y constraints = y indexes = y log = fullpath_logfile.log full = y
 
Verify migration results
Run the following scripts in the source and target databases respectively.
Select count (*) from user_tables;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.