oracle command prompt export data table (exp)

Use the exp method to export the data table in the local oracle database

C:\Users\1>cd C:\Windows\System32

C:\Windows\System32>exp username/password tables=(table name 1, table name 2) file= d:/tt.dmp (storage path)


------------" as shown below, that is, the export is successful
Export: Release 11.2.0.1.0 - Production on Fri Nov 10 10:46:54 2017

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.


Connection to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
already exported ZHS16GBK charset and AL16UTF16 NCHAR charset

About to
. . Exporting table JD_TYPE2 exported 836987 rows Export terminated
successfully





----------------------------------- Pour into the dmp file instance

Open the
imp username/password@server IP:port/service name file=dmp file path full=y
Example, this is mine:
imp ZXXT/[email protected]:1521/orcl file=E:\Operational Administration and Law Enforcement Data\ yz\yzdata.dmp full=y


-- refer



to 1 to fully export the database TEST, user name system password manager export to D:\daochu.dmp
exp system/manager@TEST file=d:\daochu.dmp full=y
2 Export the tables of the system user and sys user in the database to
exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 Export the tables table1 and table2 in the database to
exp system/manager@TEST file= d:\daochu.dmp tables=(table1,table2)
4 Export the data starting with "00" in the field filed1 in table table1 in the database
exp system/manager@TEST file=d:\daochu.dmp tables=(table1 ) query=\" where filed1 like '00%'\"
Data import
1 Import the data in D:\daochu.dmp into the TEST database.
imp system/manager@TEST file=d:\daochu.dmp ignore=y
There may be a problem with the above, because some tables already exist, and then it will report an error, and the table will not be imported.
Just add ignore=y after it.
2 Import table table1 in d:\daochu.dmp into
imp system/manager@TEST file=d:\daochu.dmp tables=(table1)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326094265&siteId=291194637