PL/SQL Developer是Oracle数据库中用于导入或导出数据库的主要工具,本文主要介绍了利用PL/SQL Developer导入和导出数据库的过程,并对导入或导出时的一些注意事项进行了说明,接下来我们就一一介绍。
导出步骤:
1 tools ->export user object 选择选项,导出.sql文件。
2 tools ->export tables-> Oracle Export 选择选项导出.dmp文件。
导入步骤:
注:导入之前最好把以前的表删除,当然导入另外数据库除外。
1 tools->import tables->SQL Inserts 导入.sql文件。
2 tools->import talbes->Oracle Import然后再导入dmp文件。
一些说明:
Tools->Export User Objects导出的是建表语句(包括存储结构)。
Tools->Export Tables里面包含三种导出方式,三种方式都能导出表结构以及数据,如下:
- 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自己导入导出,不能用编辑器查看。
关于Oracle数据库用PL/SQL Developer导入导出数据库的知识就介绍到这里了,希望本次介绍能够带给您一些收获,谢谢您的浏览!
===================================================================================================================
-
使用PL/SQL Developer登录你需要备份的数据库;
id="iframe_0.022014179609506357" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://c.hiphotos.baidu.com/exp/w=500/sign=fc4840e6f5246b607b0eb274dbf91a35/ac345982b2b7d0a24eb51a28c8ef76094b369a02.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.022014179609506357',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 440px; height: 290px;"> -
id="iframe_0.23723064501012803" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://b.hiphotos.baidu.com/exp/w=500/sign=f085bc8f334e251fe2f7e4f89787c9c2/5366d0160924ab18269aff8236fae6cd7a890bf2.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.23723064501012803',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 500px; height: 281px;">
-
id="iframe_0.06051280021375782" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://e.hiphotos.baidu.com/exp/w=500/sign=3833faddcfbf6c81f7372ce88c3fb1d7/d53f8794a4c27d1e76aa257118d5ad6edcc438f2.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.06051280021375782',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 500px; height: 375px;">
-
id="iframe_0.11852399299885108" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://d.hiphotos.baidu.com/exp/w=500/sign=b2111eafc55c1038247ecec28210931c/d4628535e5dde711cbae5d43a4efce1b9d166102.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.11852399299885108',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 500px; height: 281px;">
-
id="iframe_0.1742667094221022" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://h.hiphotos.baidu.com/exp/w=500/sign=0762d69a4234970a4773102fa5cbd1c0/38dbb6fd5266d016a695809d942bd40734fa35f2.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.1742667094221022',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 446px; height: 430px;">
-
id="iframe_0.6539310996018346" src="data:text/html;charset=utf8,%3Cimg%20id=%22img%22%20src=%22http://f.hiphotos.baidu.com/exp/w=500/sign=9b1d3bbd5043fbf2c52ca623807fca1e/e4dde71190ef76c6faaee59e9e16fdfaaf516702.jpg?_=5812131%22%20style=%22border:none;max-width:1000px%22%3E%3Cscript%3Ewindow.onload%20=%20function%20()%20%7Bvar%20img%20=%20document.getElementById('img');%20window.parent.postMessage(%7BiframeId:'iframe_0.6539310996018346',width:img.width,height:img.height%7D,%20'http://www.cnblogs.com');%7D%3C/script%3E" frameborder="0" scrolling="no" style="margin: 0px; padding: 0px; border-width: initial; border-style: none; width: 500px; height: 86px;">