backup archivelog all delete input;第二: restore archivelog 的各種選項(xiàng)0.根據(jù)rac線程restore archivelog from logseq 6160..."/>
溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

restore archivelog 的用法

發(fā)布時(shí)間:2020-08-13 10:14:09 來(lái)源:網(wǎng)絡(luò) 閱讀:19610 作者:omnipotent_X 欄目:大數(shù)據(jù)

1.備份所有歸檔日志文件

RMAN> backup archivelog all delete input;

第二: restore archivelog 的各種選項(xiàng)

0.根據(jù)rac線程restore archivelog from logseq 6160 thread 2;

1.restore archivelog all  恢復(fù)全部歸檔日志文件

RMAN> restore archivelog all;

2.只恢復(fù) 5到8這四個(gè)歸檔日志文件

RMAN> restore archivelog from logseq 5 until logseq 8;

3.恢復(fù)從第5個(gè)歸檔日志起

RMAN> restore archivelog from logseq 5;

4.恢復(fù)7天內(nèi)的歸檔日志

RMAN> restore archivelog from time 'sysdate-7';

5. sequence between 寫(xiě)法

RMAN> restore archivelog sequence between 1 and 3;

6.恢復(fù)到哪個(gè)日志文件為止

RMAN> restore archivelog until logseq 3;

6.從第五個(gè)日志開(kāi)始恢復(fù)

RMAN> restore archivelog low logseq 5;

7.到第5個(gè)日志為止

RMAN> restore archivelog high logseq 5;

如果想改變恢復(fù)到另外路徑下 則可用下面語(yǔ)句

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.根據(jù)時(shí)間查看需要的備份集:

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')";

恢復(fù)指定時(shí)間段

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> }


向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI