恢復orcl資料例項相關資料文件
第一步,建立資料庫表
impdp simis/simis@orcl dumpfile=full.dmp logfile=imp_log3.log directory=simis_dir parallel=16 schemas=simis content=metadata_only remap_tablespace=users:ts_simis,user_i:ts_simis,user_simis:ts_simis,user_a:ts_simis,user_f:ts_simis,user_ac13:ts_simis,user_k:ts_simis,user_kc21:ts_simis,indx_ac13:ts_simis,user_r:ts_simis,user_kc24:ts_simis,user_kc23:ts_simis,user_kc22:ts_simis,hnlmdata:ts_simis,hnydjy:ts_simis
第二步:刪除主鍵和索引
執行資料指令碼 delkey.sql delindex.sql
delkey:
alter table smp_vdv_user_pref drop constraint fk_smp_vdv_pref_userid;
alter table smp_vdv_user_locale drop constraint fk_smp_vdv_locale_userid;
alter table smp_vdv_preferred_credentials drop constraint fk_smp_vdv_pc_userid;
alter table smp_vdv_paging drop constraint fk_smp_vdv_paging_userid;
alter table smp_vdv_notification_schedule drop constraint fk_smp_vdv_ns_userid;
alter table smp_vdv_mapi_email drop constraint fk_smp_vdv_mapi_userid;
...delindex:
drop index pk_zp05;
drop index zjjh_x;
drop index zjjhmx_x;
drop index pk_zjdy_szgs;
drop index pk_zhtmp;
drop index pk_ze10_prc;
drop index pk_ze10;
drop index sys_il0000082206c00022$$;
第三步:進行資料匯入
impdp simis/simis@orcl dumpfile=full.dmp logfile=imp_log3.log directory=simis_dir parallel=16 schemas=simis content=data_only remap_tablespace=users:ts_simis,user_i:ts_simis,user_simis:ts_simis,user_a:ts_simis,user_f:ts_simis,user_ac13:ts_simis,user_k:ts_simis,user_kc21:ts_simis,indx_ac13:ts_simis,user_r:ts_simis,user_kc24:ts_simis,user_kc23:ts_simis,user_kc22:ts_simis,hnlmdata:ts_simis,hnydjy:ts_simis
impdp simis/simis@orcl dumpfile=full.dmp logfile=imp_log3.log directory=simis_dir parallel=16 schemas=simis content=data_only remap_tablespace=users:ts_simis,user_i:ts_simis,user_simis:ts_simis,user_a:ts_simis,user_f:ts_simis,user_ac13:ts_simis,user_k:ts_simis,user_kc21:ts_simis,indx_ac13:ts_simis,user_r:ts_simis,user_kc24:ts_simis,user_kc23:ts_simis,user_kc22:ts_simis,hnlmdata:ts_simis,hnydjy:ts_simis attach=sys_import_schema_02
impdp simis/simis@orcl dumpfile=full.dmp logfile=imp_log3.log directory=simis_dir parallel=16 schemas=simis include=table:"in('kc04')" content=data_only remap_tablespace=users:ts_simis,user_i:ts_simis,user_simis:ts_simis,user_a:ts_simis,user_f:ts_simis,user_ac13:ts_simis,user_k:ts_simis,user_kc21:ts_simis,indx_ac13:ts_simis,user_r:ts_simis,user_kc24:ts_simis,user_kc23:ts_simis,user_kc22:ts_simis,hnlmdata:ts_simis,hnydjy:ts_simis
注:tables=ac13,這個是什麼意思?是不是這個表要單獨匯入一次。
iphone模型資料 例項
ebook2viewcontroller.h ebook2 created by sinnmac05 on 3 25 10.import import movieeditorviewcontroller.h class編譯指令是乙個提前宣告 forward declaration 報告給編譯器,找不...
SQL server 學習(資料例項)
為之後記錄筆記方便時檢視 1.學生表 student s sname,sage,s s 學生編號,sname 學生姓名,sage 出生年月,s 學生性別 2.課程表 course c cname,t c 課程編號,cname 課程名稱,t 教師編號 3.教師表 teacher t tname t 教...
資料恢復相關sql
1 scn和時間轉換sql 時間轉為scn select timestamp to scn to date 2018 01 12 09 27 00 yyyy mm dd hh24 mi ss from dual 當前時間的scn select timestamp to scn sysdate fro...