Oracle 11g command Import and Export table

Source: Internet
Author: User

Data export:

1 The database test is fully exported, user Name System Password Manager exported to D:\daochu.dmp exp System/[email protected] File=d:\daochu.dmp

2 Exporting the system user in the database with the SYS user's table exp system/[email protected] file=d:\daochu.dmp owner= (System,sys)

3 Exporting Tables Table1, table2 in the database

EXP System/[email protected] file=d:\daochu.dmp tables= (table1,table2)

4 Export the field in table Table1 in the database filed1 the data beginning with "00" exp system/[email protected] file=d:\daochu.dmp tables= (table1query=\ "where Filed1 like ' 0% ' \ "Above is commonly used for the export, for compression, both with WinZip to the DMP file can be very good compression.

It can also be implemented by adding compress=y to the above command.

Import of data

1 Import the data from the D:\DAOCHU.DMP into the test database.

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

2 imp system/[email protected] full=y file= d:\data\newsmgnt.dmp ignore=y

There may be a problem, because some tables already exist, and then it is an error, and the table is not imported. Add Ignore=y to the back.

3 Import the table table1 in D:\daochu.dmp

Oracle 11g command Import and Export table

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.