Oracle Data Pump migrates data in different tablespaces

Source: Internet
Author: User
Data migration using Data Pumps for different tablespaces: Database A: -- 1. log on to the database as a system user, create directory (testdir), and grant read and write permissions to rc user createorreplacedirectoryrc_dicase: temp; grantread, writeondirectoryrc_dictorc; -- 2. use the expdp command to export the rc

Data migration using Data Pumps for different tablespaces: Database A: -- 1. log on to the database with the system user, create directory (testdir), and grant read and write permissions to the rc user create or replace directory rc_dic as 'e: \ temp '; grant read, write on directory rc_dic to rc; -- 2. use the expdp command to export the rc

Data pump is used for data migration between different tablespaces:
Database:
-- 1. log on to the database with the system user, create directory (testdir), and grant read and write permissions to the rc user
Create or replace directory rc_dic as 'e: \ temp ';
Grant read, write on directory rc_dic to rc;
-- 2. Use the expdp command to export rc user data
Expdp rc/aaaaaa @ orcl directory = rc_dir dumpfile = testdb. dmp schemas = rc;

Database B:
-- 1. log on to the database with the system user, create directory (testdir), and grant read and write permissions to the rc user
Create or replace directory rc_dic as '/home/temp ';
Grant read, write on directory rc_dic to rc;
-- 2 impdp rc/aaaaaa @ orcl directory = rc_dir dumpfile = testdb. dmp remap_tablespace = users: newtablespace (ing between different tablespaces)

Run the preceding statements to ensure that the directory path exists and has the read and write permissions.

Command using parameter reference: http://blog.csdn.net/wanghuaiyuanwhy/article/details/6988851

Example of http://www.cnblogs.com/lanzi/archive/2011/01/06/1927731.html

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.