Import/export from oracle (impdb + expdb) tutorial, impdbexpdb

Source: Internet
Author: User

Import/export from oracle (impdb + expdb) tutorial, impdbexpdb
Data Pump export:

0: su-oracle

1: sqlplus/nolog

2: connect/as sysdba

3: create directory data_dp as '/home/oracle/data_dp'; #/home/oracle/data_dp must exist (for oracle Users)

4: grant read, write on directory data_dp to DZCMS; # DZCMS is the user data to export

5: select * from dba_directories; # Check whether the directory is successfully created.

6: Go to the bin directory and run:

./Expdp YIJIACHEDU/YIJIACHEDU @ orcl11g schemas = yijiachedu directory = data_dp dumpfile = YJCD20160918.DMP compression = all

If the Metadata processing is not available error occurs, run the following command in sysdba:

Execute sys. dbms_metadata_util.load_stylesheets;

Data Pump import:

0: su-oracle

1: sqlplus/nolog

2: connect/as sysdba

3: create directory data_dp as '/home/oracle/data_dp'; #/home/oracle/data_dp must exist (for oracle Users)

4: grant read, write on directory data_dp to DZCMSXC; # DZCMS is the user data to import

5: select * from dba_directories; # Check whether the directory is successfully created.

6: Go to the bin directory and run:

./Impdp DZCMSXC/DZCMSXC @ orcl11g DIRECTORY = DZCMS_DP dumpfile = dzcms20160616.dmp REMAP_SCHEMA = DZCMS: DZCMSXC REMAP_TABLESPACE = DZCMSDATA: DZCMSXC

# REMAP_SCHEMA = DZCMS: DZCMSXC: indicates the user to be replaced.

# REMAP_TABLESPACE = DZCMSDATA: DZCMSXC indicates the tablespace to be replaced

The following statement can be used to check whether the number of tables is consistent:

Select count (*) from dba_tables t where t. owner = 'dzcmsxc ';

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.