標籤:儲存位置 登入 樣本 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表結構表資料匯入匯出