Oracle Database Import Export statement

Source: Internet
Author: User

Oracle's EXP/IMP command is used to implement export/import operations to the database; the EXP command is used to bring data from the remote database server to the local, generating a. dmp file; The IMP command is used to import local database. dmp files from local to the remote Oracle database

1 fully export the database test. User name System/manager Export to D:daochu.dmp code as follows:

Exp system/[email protected] file=d:daochu.dmp full=y

2. Export the table of the system user and SYS user in the database with the following code:

Exp system/[email protected] file=d:daochu.dmp owner= (System,sys)

3. table1 The table in the database table2 the export code as follows:

Exp system/[email protected] file:= d:daochu.dmp tables= (table1,table2)

4. table1 The fields in the table in the database filed1 the data exported with "00" as follows;

Exp system/[email protected] file:=d:daochu.dmp tables= (table1) query= "where filed1 like ' 0% '"

5. Import the data from the D:DAOCHU.DMP into the test database in the following code

Imp system/[email protected] File:=d:doachu.dmp (This will definitely be an error, because the table already exists in the database, the table can not be imported)

So I'm going to add ignore=y to the back.

Imp system/[email protected] File:=d:daochu.dmp ignore=y It's OK.

6. Import the table Table1 in D:DAOCHU.DMP into the test database

Imp system/[email protected] file:=d:daochu.dmp tables= (table1);

Oracle Database Import Export statement

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.