ORA-00245:control file backup failed;targetis likely on local file system
在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成功,本人曾遇到過!
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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00245: control file backup failed; target is likely on a local file systemAI
- ORA-00245: control file backup operation failedAI
- 【ORACLE】ORA-00245: control file backup operation failedOracleAI
- recover database using backup control fileDatabase
- remount of /system failed: Read-only file system原因及解決REMAI
- Google File System原理Go
- 【oracle】ORA-01580 error creating control backup fileOracleError
- Resource is out of sync with the file system
- Raw Device vs File Systemdev
- control file parallel writeParallel
- ORA-27054: NFS file system where the file is created or resides is ......NFSIDE
- Move datafile:From File System to ASMASM
- Move datafile:From ASM to File SystemASM
- Oracle ACFS ( ASM Cluster File System )OracleASM
- HP -Data Protector Restore file systemREST
- 控制檔案-control file
- control file(控制檔案)
- ORA-27054: NFS file system where the file is created or resides is not mountedNFSIDE
- I/O上的等待事件 —— control file sequential read/control file parallel write事件Parallel
- ftp 報錯 550 Failed to open fileFTPAI
- oracle重建control file的操作Oracle
- a control file contains informationAIORM
- control file parallel write等待事件Parallel事件
- 《The Google File System》論文研讀Go
- 【HDFS】HADOOP DISTRIBUTED FILE SYSTEMHadoop
- Eclipse:Resource is out of sync with the file systemEclipse
- aix file system, io 最佳化AI
- GFS (RedHat Global File System) 介紹Redhat
- yum-GPG key retrieval failed: No such file or directoryAI
- VMware vmdk錯誤: Failed to lock the file.AI
- SCRIPT TO GENERATE SQL*LOADER CONTROL FILESQL
- 重建控制檔案 recreate control file
- control file parallel write事件小記Parallel事件
- control file sequential read等待事件事件
- Database Clone by rebuilding control file.DatabaseRebuild
- oracle檔案管理之 control fileOracle
- 《Google File System》讀書筆記(1)Go筆記
- Catalog archivelog from file system to Asmdg;HiveASM