Oracle export database method

The correct steps for PLSQL to import and export tables

It turns out that tools->import talbes->Oracle Import is always directly, and it turns out that sometimes there will be errors: some tables cannot be imported correctly. The solution of baidu+googel is as follows:

Export steps:

1 tools ->export user object select option, export .sql file

2 tools ->export tables-> Oracle Export select option to export .dmp file

Import steps:

1 tools->import tables->SQL Inserts import .sql files

2 tools->import talbes->Oracle Import and then import the dmp file

The database import and export are successful

======================= Explanation========================= ==========================================

Tools->Export User Objects export is to build a table statement (including storage structure)

Tools->Export Tables contains three export methods:

The three methods can export the table structure and data. The Internet says that the three methods are different, as follows:

Oracle Export,Sql Insert,pl/sql developer
第一种是导出为.dmp的文件格式,.dmp文件是二进制的,可以跨平台,还能包含权限,效率也很不错,用得最广
第二种是导出为.sql文件的,可用文本编辑器查看,通用性比较好,但效率不如第一种,适合小数据量导入导出。尤其注意的是表中不能有大字段(blob,clob,long),如果有,会提示不能导出(提示如下:
table contains one or more LONG columns cannot export in sql format,user Pl/sql developer format instead),可以用第一种和第三种方式导出。 第三种是导出为.pde格式的,.pde为Pl/sql developer自有的文件格式,只能用Pl/sql developer自己导入导出;不能用编辑器查看。

个人比较中意第二种方法,毕竟是SQL文件嘛,自己还可以看,想改也方便

Guess you like

Origin blog.csdn.net/Amos_liu/article/details/52537480