Oracle Import dump File ____oracle

Source: Internet
Author: User

The dump file exported with exp needs to be imported with imp command.

Exp USER1/PASSWORD@TESTDB1 file=c:\dump\newdump.dmp rows=y

Imp user1/password@testdb2 file=c:\dump\dump1.dmp fromuser=fromuser touser=user1

The Exp method cannot export a table of 0 data.

----------------------------------------------------------------

Import with the IMPDP command to set the dump file path First
Create or replace directory Dump_dir as ' d:\ together テストデータ ';
Grant read, write on directory test_dir to USER1;

Execute Import command
IMPDP User/pass Directory=dump_dir dumpfile=xxxxx.dmp
Tables=xxxx. XXXX encryption_password=dbdumppass skip_unusable_indexes=y table_exists_action=truncate content=data_only

Impdp
DMP files that are exported with EXPBP need to be imported using IMPDP.

Encryption_password=dbdumppass
Wallet Password

Skip_unusable_indexes=y
Skip_unusable_indexed whether to skip indexes that are not available

Table_exists_action=truncate
Table_exists_action actions performed when a table already exists

Content=data_only
When exporting/importing, we often have the need to export/import the table structure, or just want to export/import data. Fortunately, the data pump also provides this functionality. Use the content parameter. This parameter has three properties
1 All: Export/import object definitions and data, the default value of this parameter is all
2) Data_only: Export/import data only.
3) Metadata_only: Only export/import object definitions.

Place multiple dump import statements IMPDP into a batch file, and execute the file.

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.