migrating databases with Oracle data pump

Source: Internet
Author: User
Tags sqlplus

First, prepare the target database
1. Ensure that the target database's character set Nls_characterset and the source database are consistent
SELECT * FROM Nls_database_parameters
2. Create a database table space to migrate
Select Tablespace_name from Dba_tablespaces
Create tablespace bbgodb datafile ' +data_vg ' size 300m autoextend on
3, create the corresponding schema
Create user bbgo identified by bbgo default Tablespace bbgodb
Grant Connect,resource to Bbgo
4. Create a directory and authorize
Mkdir/home/oracle/oracledump
Sqlplus/as SYSDBA
Create or replace directory Dump_dir as '/home/oracle/oracledump ';
Grant Read,write on directory Dump_dir to Bbgo;
Exit

Second, the schema of the export source database
1. Create a directory and authorize
Mkdir/home/oracle/oracledump
Sqlplus/as SYSDBA
Create or replace directory Dump_dir as '/home/oracle/oracledump ';
Grant Read,write on directory Dump_dir to Bbgo;
Exit
2. Export Data
EXPDP "'/As Sysdba '" Schemas=bbgo dumpfile=expdp.dmp directory=dump_dir logfile=bbgo.log compression=all

Iii. importing data into the target database
IMPDP "'/As Sysdba '" Directory=dump_dir dumpfile=expdp.dmp schemas=bbgo
Note: If schema is different, use Remap_schema=bbgo:bbgoa to remap

migrating databases with Oracle data pump

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.