您好,登錄后才能下訂單哦!
1.備份所有歸檔日志文件
RMAN> backup archivelog all delete input;
第二: restore archivelog 的各種選項
0.根據rac線程restore archivelog from logseq 6160 thread 2;
1.restore archivelog all 恢復全部歸檔日志文件
RMAN> restore archivelog all;
2.只恢復 5到8這四個歸檔日志文件
RMAN> restore archivelog from logseq 5 until logseq 8;
3.恢復從第5個歸檔日志起
RMAN> restore archivelog from logseq 5;
4.恢復7天內的歸檔日志
RMAN> restore archivelog from time 'sysdate-7';
5. sequence between 寫法
RMAN> restore archivelog sequence between 1 and 3;
6.恢復到哪個日志文件為止
RMAN> restore archivelog until logseq 3;
6.從第五個日志開始恢復
RMAN> restore archivelog low logseq 5;
7.到第5個日志為止
RMAN> restore archivelog high logseq 5;
如果想改變恢復到另外路徑下 則可用下面語句
set archivelog destination to 'd:\backup';
RMAN> run
2> {allocate channel ci type disk;
3> set archivelog destination to 'd:\backup';
4> restore archivelog all;
5> release channel ci;
6> }
8.根據時間查看需要的備份集:
ERPDB1@/orabak>rman target /
RMAN> list backup of archivelog time between "to_date('2009-06-24 08:00:00','yyyy-mm-dd hh34:mi:ss')" and "to_date('2009-06-24 13:00','yyyy-mm-dd hh34:mi:ss')";
恢復指定時間段
RMAN> run {
2> set archivelog destination to
'/orabak/testarch';
3> SQL 'ALTER SESSION SET
NLS_DATE_FORMAT="YYYY-MM-DD:HH24:MI:SS"';
4> restore archivelog time between '2009-06-24
09:00:00' and '2009-06-24 12:10:00';
5> }
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。