您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關如何使用nub恢復數據庫,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
1.NBU數據庫恢復腳本
run {
allocate channel t1 type 'sbt_tape';
allocate channel t2 type 'sbt_tape';
allocate channel t3 type 'sbt_tape';
send 'NB_ORA_CLIENT=192.168.x.x';
send 'NB_ORA_SERV=nbu5230';
set until sequence 12 thread 1;
restore database;
#switch datafile all;
recover database;
release channel t1;
release channel t2;
release channel t3;
}
2.歸檔日志恢復
run {
allocate channel t1 type 'sbt_tape';
allocate channel t2 type 'sbt_tape';
send 'NB_ORA_CLIENT=192.168.x.x';
send 'NB_ORA_SERV=nbu5230';
restore archivelog from sequence 8 until sequence 12 INCARNATION ALL;
release channel t1;
release channel t2;
}
3.其他恢復
更改還原路徑:
RMAN> set archivelog destination to '/u01/backup';
還原全部備份歸檔:
RMAN> restore archivelog all;
歸檔日志范圍恢復:
RMAN> restore archivelog from sequence 8 until sequence 12;
RMAN> restore archivelog sequence between 8 and 12;
從低sequence開始恢復:
RMAN> restore archivelog from sequence 5;
RMAN> restore archivelog low sequence 5;
從高sequnece截止恢復:
RMAN> restore archivelog until sequence 110;
RMAN> restore archivelog high sequence 108;
按時間恢復:
RMAN> restore archivelog from time 'sysdate-7';
關于“如何使用nub恢復數據庫”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。