Oracle Data Import Export command

Source: Internet
Author: User

1. Data export:

1 full export of database test, user Name System Password Manager exported to D:\daochu.dmp
Exp System/[email protected] file=d:\daochu.dmp full=y
2 will DatabaseTable export for system users and SYS users
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 filed1 in table table1 in the database with data beginning with "00"
Exp System/[email protected] file=d:\daochu.dmp tables= (table1) query=\ "where filed1 like ' 0% ' \"
The above is a common export, for compression I do not care, with WinZip to the DMP file can be very good compression.
But add compress=y to the upper order.
Note: The export prompts: exp-000091: You are exporting problematic statistics, do not affect IMP, you can use Statistics=none to remove the hint message.   2. Data import 1 Import the data from the D:\DAOCHU.DMP into the test database. Imp system/[email protected] full=y file=d:\daochu.dmp ignore=y log=e:\txt.txt (then print log) there might be a problem, because some tables already exist, and then it's an error, on the table   No import is made. Add Ignore=y to the back. 2 Import the table table1 in d:\daochu.dmp imp system/[email protected] file=d:\daochu.dmp tables= (table1) 3, pour all the tables under one user into another user imp System/[email protected] file=d:daochu.dmp fromuser=bpo Touser=tpo4, pour into a table imp System/manager file=tank Log=tank Fromuser=seapark tables= (A, b) basically the above import and export is enough. In many cases, the table is completely deleted and then imported. Note: You need to have sufficient permissions to have enough permissions and it will prompt you. Database, you can connect to the. You can use tnsping test to get the database test to connect.

Oracle Data Import Export command

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.