Oracle技術(shù)分享 日志報錯ORA-00245
ORA-00245: control file backup failed; target is likely on a local file system
日志如下:
Thu Feb 18 01:59:48 2016
Errors in
file/u01/PSPROD/oracle/diag/rdbms/psprod/PSPROD1/trace/PSPROD1_ora_45856.trc:
ORA-00245: control file backup failed;target is likely on a local file system
Tue Feb 16 01:59:02 2016
Errors in
file/u01/PSPROD/oracle/diag/rdbms/psprod/PSPROD1/trace/PSPROD1_ora_88792.trc:
ORA-00245: control file backup failed;target is likely on a local file system
分析:
本報錯出現(xiàn)于oracle 11.2.0.1.0及以后的版本中,應(yīng)用于所有平臺
僅僅RAC環(huán)境會發(fā)生,非rac環(huán)境不需要考慮這個問題,因為11Gr2控制文件備份機制的改變,集群中的任何實例都要可以寫入快照文件。當(dāng)然這個文件也就要對所有實例可見,所以這個快照文件要設(shè)置在共享設(shè)備上(asm磁盤組)。
我們現(xiàn)在看一下本機設(shè)置:
RMAN> show all;
RMAN configuration parameters for databasewith db_unique_name PSPROD are:
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICETYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FORDEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED;
CONFIGURE ENCRYPTION FOR DATABASE OFF; #default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; #default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' ASOF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TONONE; # default
CONFIGURE SNAPSHOTCONTROLFILE NAME TO '
/u01/PSPROD/oracle/product/11.2.0.4/dbs/snapcf_PSPROD1.f';# default
RMAN>
由上可見本機是默認(rèn)的未進行修改過
因此會報245的錯誤
這里注意下本機報錯為ORA-00245,但也可能報ora-245 所以在mos上搜索的時候最好報錯內(nèi)容也搜索下,否則可能找不到
解決辦法:
修改rman備份配置,將控制文件快照定向到共享磁盤組
RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+
DATA_ERP/PSPROD/snapcf_PSPROD1.f';
詳見官方文檔 ID 1472171.1
