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