從伺服器將Oracle資料庫匯出到本地Oracle資料庫的方法

來源:互聯網
上載者:User

標籤:blog   http   ar   os   使用   sp   檔案   資料   on   

原文:從伺服器將Oracle資料庫匯出到本地Oracle資料庫的方法

 1.將伺服器上的Oracle資料庫匯入到本地

   在CMD模式下執行以下命令:
   exp username1/[email protected]伺服器端資料庫 file=本地硬碟:/檔案名稱.dmp
   例如: exp admin/[email protected] file=e:db.dmp

2.建立本機資料庫(預設已經安裝Oracle用戶端並且建立了本機資料庫)

3.建立一個新使用者,並賦予DBA許可權
 //建立一個使用者名稱為test,口令(密碼)為123456,預設資料表空間為users,並且該使用者使用users資料表空間不受限制
   create user test identified by 123456
   default tablespace users
   quota unlimited on users
   //賦予test使用者DBA許可權
   grant dba to test;

4.匯入到本地Oracle資料庫
   在CMD模式下執行以下命令
   imp username2/密碼 file=本地硬碟:/檔案名稱.dmp fromuser=username1 touser=username2 ignore=y
   例如:imp test/123456 file=e:db.dmp fromuser=admin touser=test ignore=y  

 

從伺服器將Oracle資料庫匯出到本地Oracle資料庫的方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.