藉助PL/SQL Developer將Oracle某用戶數據表導出

PL/SQL DeveloperOracle數據庫中用於導入或導出數據庫的主要工具,本文主要介紹了利用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導入導出數據庫的知識就介紹到這裏了,希望本次介紹能夠帶給您一些收穫,謝謝您的瀏覽!

===================================================================================================================

  1. 使用PL/SQL Developer登錄你需要備份的數據庫;

    <iframe 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;"></iframe>
  2.  選擇工具->導出用戶對象;
    <iframe 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;"></iframe>
  3.  在對象列表中選擇需要備份的對象,再選擇一個sql類型的輸出文件,點擊【導出】,這只是導出數據結構;
    <iframe 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;"></iframe>
  4.  選擇工具->導出表;
    <iframe 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;"></iframe>
  5.  在列表中選擇需要導出數據的表,再選擇【SQL插入】,選擇一個sql類型的文件,點擊【導出】,這一步是把數據導出數據庫。
    <iframe 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;"></iframe>
  6.  這樣就得到兩個sql,分別是備份數據結構和備份數據的。
    <iframe 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;"></iframe>

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章