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)