溫馨提示×

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

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

12c RMAN備份腳本,ORA-00245

發(fā)布時(shí)間:2020-07-06 22:41:27 來源:網(wǎng)絡(luò) 閱讀:828 作者:roidba 欄目:關(guān)系型數(shù)據(jù)庫

12c rac

報(bào)錯(cuò)如下:

channel d3: backup set complete, elapsed time: 00:00:08
RMAN-03009: failure of backup command on d4 channel at 12/07/2017 15:08:46
ORA-00245: control file backup failed; in Oracle RAC, target might not be on shared storage
continuing other job steps, job failed will not be re-run
channel d2: finished piece 1 at 07-DEC-2017 15:09:41
piece handle=/u01/bak/db_fullbk_2_1_962118518.rmn tag=BACKUP_FULL comment=NONE
channel d2: backup set complete, elapsed time: 00:01:04
channel d1: finished piece 1 at 07-DEC-2017 15:10:02
piece handle=/u01/bak/db_fullbk_1_1_962118518.rmn tag=BACKUP_FULL comment=NONE
channel d1: backup set complete, elapsed time: 00:01:24
released channel: d1
released channel: d2
released channel: d3
released channel: d4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================

RMAN-03009: failure of backup command on d4 channel at 12/07/2017 15:08:46
ORA-00245: control file backup failed; in Oracle RAC, target might not be on shared storage

解決:

CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+datadg/snapcf_orcl1.f';

奉上一個(gè)備份腳本僅供參考

#!/bin/sh
#backup full  database and archivelog
#filename:/home/oracle/rk_rman.sh
#oracle user execute:sh /home/oracle/rk_rman.sh >./backup.log 2>&1 &
#authored by:roidba
####export ORACLE_SID=xxxx
rman target / <<EOF
run { 
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+datadg/snapcf_orcl1.f';
allocate channel d1 type disk;
allocate channel d2 type disk;
allocate channel d3 type disk;
allocate channel d4 type disk;
backup as compressed backupset database format '/u01/bak/db_fullbk_%s_%p_%t.rmn' tag='backup_full' include current controlfile;
backup as compressed backupset archivelog from time 'sysdate - 1/12' format '/u01/bak/archive_%s_%p_%t.arc';
backup current controlfile tag='backup_contorlfile' format='/u01/bak/ctl_%s_%p_%t';
backup spfile tag='backup_spfile' format='/u01/bak/spfile_%s_%p_%t';
release channel d2;
release channel d1;
release channel d3;
release channel d4;
}
exit;
EOF
向AI問一下細(xì)節(jié)

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

AI