ORA-00245:control file backup failed;targetis likely on local file system

parknkjun發表於2016-04-07
在RAC資料庫其中一個例項建立standby controlfile失敗,報如下錯誤:
SQL> alter database create standby controlfile as '/home/oracle/standby01.ctl';
*
ERROR at line 1:
ORA-00245:control file backup failed;targetis likely on local file system
該錯誤是由於11gR2 RAC在備份控制時,每個例項都要能夠寫snapshot controlfile,並不是因為建立在本地或都NFS導致
解決方法是:
1、可以建立在ASM磁碟組,再將standby control cp至local file system
2、CONFIGURE SNAPSHOT CONTROLFILE NAME clear;
RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME clear;
old RMAN configuration parameters:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/jzh1.f';
RMAN configuration parameters are successfully reset to default value
以下是正確配置:
RMAN> show all;
RMAN configuration parameters for database with db_unique_name JZH are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_jzh1.f'; # default

如果你的環境以上配置正確,仍報錯,也可以CONFIGURE SNAPSHOT CONTROLFILE NAME clear一次,絕對建立standby controlfile成功,本人曾遇到過!



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10271187/viewspace-2076536/,如需轉載,請註明出處,否則將追究法律責任。

相關文章