Oracle Data Pump Detailed (3) IMPDP

Source: Internet
Author: User

Import Mode

As with the export mode, the following 5 modes are mutually exclusive.

Full mode

Set Full=yes, if there is no datapump_imp_full_database role, can only be imported into the data under their own schema

Schema schema

Sets the schema parameter, which is the following syntax

Schemas=schema_name [,...]

The following example imports HR data into the HR schema

> IMPDP hr schemas=hr directory=dpump_dir1 logfile=schemas.log

Dumpfile=expdat.dmp

Table mode

Sets the table parameter, which is the following syntax:

Tables=[schema_name.] table_name[:p Artition_name]

If schema_name is not specified, the default representation is to import the current user's schema, such as:

> IMPDP hr directory=dpump_dir1 dumpfile=expfull.dmp tables=employees,jobs

You can also import the specified partition:

> IMPDP hr directory=dpump_dir1 dumpfile=expdat.dmp

tables=sh.sales:sales_q1_2012,sh.sales:sales_q2_2012

Tablespace mode

Set the Tablespace parameter with the following syntax:

Tablespaces=tablespace_name [, ...]

The following is an example of what to note: The tablespace to be imported must already exist, or the import will fail.

> IMPDP hr directory=dpump_dir1 dumpfile=expfull.dmp tablespaces=tbs_1,tbs_2,tbs_3,tbs_4

Transpotable tablespace mode

Set the Transpotable_tablespace parameter, whose syntax is defined as follows:

Transport_tablespaces=tablespace_name [, ...]

Only the metadata for the table space is imported, the data file needs to be copied to the native server at the operating system level, the path is specified by Transport_datafiles, and the syntax is as follows:

Transport_datafiles=datafile_name

Here is a concrete example:

Directory=dpump_dir1

Network_link=source_database_link

transport_tablespaces=tbs_6< P>transport_full_check=no

transport_datafiles= ' user01/data/tbs6.dbf '

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.