Oracle Data tutorial for Data Pump migration and oracle tutorial for Pump migration

Source: Internet
Author: User

Oracle Data tutorial for Data Pump migration and oracle tutorial for Pump migration

Export:

1. Create the db link of the original database first.

Create public database link db_local connect to userxx identified by passwd using '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.x.x) (PORT = PORT ))) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = Instance name )))';

Verify: select * from user name. Table Name @ db link name;

2. Run create directory testdb (custom DIRECTORY name, which requires manual Folder creation on the hard disk) AS 'd:/oracleData by a local user with DBA permission in the local database ';

GRANT read, write on directory testdb (custom directory name) to test;

GRANT exp_full_database, imp_full_database to local user name;

3. Execute the command expdp userid = Local User Name/password @ Instance name directory = testdb (custom directory name) dumpfile = xxxx20180222.dmp SCHEMAS = name to be exported network_link = db_local (db link name)

After completion, dmp and the exported log export. log are in the local Directory D:/oracleData.

4. Import, portal:

Study-influence relationship between IMPDP [TRANSFORM = segment_attributes: n] [remap_tablespace] 2

If you want to import exported dmp to the local machine: impdp scott/miao @ orclmxd directory = testdb dumpfile = xxxx20180222.DMP remap_schema = username (original user): scott (target user) REMAP_TABLESPACE = tb (original tablespace): (target tablespace)

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.