1 回答

TA貢獻(xiàn)4條經(jīng)驗(yàn) 獲得超4個(gè)贊
數(shù)據(jù)還原:
1.在命令行輸入:sqlplus "/as sysdba"
2. 執(zhí)行以下語句登錄xx數(shù)據(jù)庫,用戶名:xx,密碼:xx(請(qǐng)輸入當(dāng)?shù)貙?shí)際密碼)
conn xx/xx;
3.如果恢復(fù)的表中有涉及到觸發(fā)器的請(qǐng)停止觸發(fā)器,例:A表
alter table A disable all triggers;
commit;
4. 執(zhí)行以下語句退出當(dāng)前用戶
quit;
5. 執(zhí)行以下語句,恢復(fù)用戶數(shù)據(jù)。
impdp xx/xx@數(shù)據(jù)庫實(shí)例名 directory=bak_dir table_exists_action=truncate dumpfile=expdb_xx.dmp logfile=impdb_xx.log
5.在命令行輸入:sqlplus "/as sysdba"
6. 執(zhí)行以下語句登錄xx數(shù)據(jù)庫,用戶名:xx,密碼:xx(請(qǐng)輸入當(dāng)?shù)貙?shí)際密碼)
conn xx/xx;
7. 執(zhí)行以下語句打開被禁止的觸發(fā)器
alter table A enable all triggers;
commit;
添加回答
舉報(bào)