oracle表結構表資料匯入匯出

來源:互聯網
上載者:User

標籤:儲存位置   登入   樣本   dmp檔案   oracl   儲存   drop   ignore   monit   

 

 

--------------------------------------imp/exp---------------------------------------------------------------------------

//匯入表資料以及表結構  imp 使用者名稱/密碼@資料庫名稱 fromuser(檔案的指定使用者,即從那個使用者匯入資料)=使用者名稱 touser(目標使用者,即匯入到當前登入的那個使用者)=使用者名稱   file=要匯入的dmp檔案位置 ignore=y(忽略錯誤建立)//example:  imp AML/[email protected]:1521/orcl fromuser=URSPMONITOR touser=AML   FILE=/data/aml.dmp full=y ignore=y;//匯出表資料以及表結構  exp 使用者名稱/密碼@資料庫名字 owner=使用者名稱 file=dmp檔案儲存體位置(即匯出檔案為.dmp檔案)

  

樣本,生產資料匯入到本地測試庫:

create table aml_rule_autoslay_0705 as select * from aml.aml_rule_autoslay;exp urspmonitor/[email protected]:1521/dwursp file=aml_rule_autoslay.dump tables=aml_rule_autoslay_0705drop table aml_rule_autoslay_0705;imp aml/[email protected]:1521/pisa  fromuser=URDPMONITOR touser=aml file=/jgtest/aml_rule_autoslay.dump imp aml/[email protected]:1521/pisa  file=/jgtest/aml_rule_autoslay.dump 

  

  

1、運到問題?

在匯入資料時出現無法找到目標使用者進行賦值錯誤,需要使用fromuser=URSPMONITOR  touser=AML,即忽略使用者授權錯誤;

2、或者使用工具在匯入資料面板取消勾選,行數,授權。若出現唯一約束錯誤,取消“約束”勾選;

 

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.