Import and export DMP database files in Oracle

Source: Internet
Author: User

Export of data:
1, the database Szda fully exported, the user name sa password sa123 exported to D:\daochu.dmp
Exp Sa/[email protected] file=d:\daochu.dmp full=y
2. Export the SA user in the database with the SYS user's table
Exp Sa/[email protected] file=d:\daochu.dmp owner= (Sa,sys)
3. Export the table table_1 and table_2 in the database
Exp Sa/[email protected] file= d:\daochu.dmp tables= (table_1,table_2)
4. Export the field filed1 in table Table_1 in the database with the data beginning with "00"
Exp Sa/[email protected] file=d:\daochu.dmp tables= (table_1) query=\ "where filed1 like ' 0% ' \

Import of data:
1. Import the data from the D:\DAOCHU.DMP into the Szda database.
Imp Sa/[email protected] File=d:\daochu.dmp
Imp sa/[email protected] full=y file=file= d:\daochu.dmp ignore=y
The above may be a problem, because some tables already exist, and then it will be an error, the table will not be imported, add Ignore=y on the back.
2. Import the table Table_1 in D:\daochu.dmp
Imp sa/[email protected] file=d:\daochu.dmp tables= (table_1)

Import and export DMP database files in Oracle

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.