Importing and exporting Oracle dmp files in Linux

Source: Internet
Author: User

Importing and exporting Oracle dmp files in Linux

A. Username system Password manager exported to D:/daochu. dmp

exp system/manager@SID file=d:/daochu.dmp full=y 

B. Export the tables of system users and sys users in the database

exp system/manager@SID file=d:/daochu.dmp owner=(system,sys) 

C. Export the inner_policy and policy_staff_relat tables in the database.

exp aichannel/aichannel@SID file= d:/data/newsmgnt.dmp tables=(inner_notify,notify_staff_relat) 

D. Export the data with the field filed1 in table 1 in the database starting with "00"

exp system/manager@SID file=d:/daochu.dmp tables=(table1) query=/" where filed1 like '00%'/" 

For compression, you can use winzip to compress the dmp file, or add compress = y to the command above.

The exported DMP file is suitable for the full migration of large databases. The character set requirements before and after migration are strict, and the CLOB field support is not very friendly.

For the export of small data, PLSQL can do better and faster, and the export SQL is also very intuitive.

If the oracle client is installed on the local machine, you can directly export the DMP file to the local machine. If it is not installed, the exported file is on the linux server.

You need to use the remote tool [WINSCp, PINTY...] to download it.

E. Import the data in D:/daochu. dmp to the TEST database.

imp system/manager@SID file=d:/daochu.dmp imp aichannel/aichannel@HUST full=y file=file= d:/data/newsmgnt.dmp ignore=y 

The above may be a problem, because some tables already exist, and then it will report an error, this table will not be imported, followed by adding ignore = y.

F. import table 1 in d:/daochu. dmp

imp system/manager@SID file=d:/daochu.dmp tables=(table1)

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.