ORA-245: In RAC environment from 11.2 onwards Backup Or Snapshot controlfile needs to be in shared l

转载 2015年07月08日 08:49:41
To BottomTo Bottom

26-Jun-2014 ALERT
Rate this document Email link to this document Open document in new window Printable Page

In this Document

Description
  Occurrence
  Symptoms
  Workaround
  Patches
  History
  References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1.0 and later
Information in this document applies to any platform.
This issue is only applicable to RAC database.

From 11gR2 onwards, the controlfile backup happens without holding the controlfile enqueue. For non-RAC database, this doesn't change anything. But for RAC database, due to the changes made to the controlfile backup mechanism in 11gR2, any instance in the cluster may write to the snapshot controlfile. Due to this snapshot controlfile need to be visible to all instances. 

The snapshot controlfile MUST be accessible by all nodes of a RAC database, if the snapshot controlfile does not reside on a shared device error will be raised at the time of RMAN backup while taking snapshot of controlfile. 

This applies to backing up controlfile using sqlplus / having autobackup of controlfile configured on non
shared location.

ORA-245 error message description
----------------------------------------
00245, 00000, "control file backup operation failed"
*Cause: Failed to create a control file backup because some process
signaled an error during backup creation.
*Action: Check alert files for further information. This usually happens
because some process could not access the backup file during
backup creation. Any process of any instance that starts a
read/write control file transaction must have an access to the
backup control file during backup creation.

DESCRIPTION

1. In RAC environment controlfile autobackup fails with ora-0245

Autobackup of controlfile in RMAN is failing with error:
RMAN-571: ===========================================================
RMAN-569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-571: ===========================================================
RMAN-3009: failure of Control File and SPFILE Autobackup command on 
ORA_DISK_1 channel at 10/27/2010 12:13:31
ORA-245: control file backup operation failed

 

2. In RAC environment, backup controlfile to non shared location fails

SQL> ALTER DATABASE BACKUP CONTROLFILE TO '/home/rac1122/test/control.bk' REUSE
*
ERROR at line 1:
ORA-245: control file backup operation failed

 

3. In RAC environment backing up standby controlfile to non shared location fails

SQL> alter database create standby controlfile as '/home/oracle/renostdbycntrl.ctl';

alter database create standby controlfile as 
'/home/oracle/renostdbycntrl.ctl'
*
ERROR at line 1:
ORA-245: control file backup operation failed

 

4. In RAC environment copy current controlfile to '${DB_BACKUP_DIR}/rac_tnctv_control.bak';

channel ch1: starting datafile copy
copying current control file
RMAN-571: ===========================================================
RMAN-569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-571: ===========================================================
RMAN-3009: failure of backup command on 10/07/2011 11:36:42 channel at ch1
ORA-245: control file backup operation failed

 

5. In RAC environment, Rman backup fails if snapshot controlfile is not in shared location.

 RMAN-00571: ========================================================
RMAN-00569: ============ ERROR MESSAGE STACK FOLLOWS =============
RMAN-00571: =========================================================
RMAN-03009: failure of resync command on default channel at 03/13/2012 10:19:41
ORA-00245: control file backup operation failed

OCCURRENCE

Only affect Real application Cluster (RAC ), 11.2 specific.

SYMPTOMS

In RAC environment any form of controlfile backup may fail with ORA-0245 if the location of the Snapshot Controlfile is not a shared location.

The backup of the controlfile actualy makes a backup of the SNAPSHOT controlfile. The Snapshot controlfile is created when the controlfile is about to be backed up.

The Snapshot controlfile is a read-consistent copy of the controlfile.

 

WORKAROUND

SOLUTION:

This is a RAC specific 'configuration' issue and the correct configuration is as described below

It is changed behaviour which requires that the snapshot controlfile in a RAC environment, is on a shared location. 

1. Check the snapshot controlfile location:

 

RMAN> show snapshot controlfile name;

2. Configure the snapshot controlfile to a shared disk:

RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '<shared_disk>/snapcf_<DBNAME>.f';

Or in case of ASM use

RMAN> CONFIGURE SNAPSHOT CONTROLFILE NAME TO '+<DiskGroup>/snapcf_<DBNAME>.f';

PATCHES

 NA

HISTORY

 02-07-2012 created and Published alert

REFERENCES


BUG:12311429 - ALTER DATABASE BACKUP CONTROLFILE FAILS WITH ORA-245
BUG:13085539 - ORA-245 OCCURS DURING RMAN COPY CORRENT CONTROLFILE.
BUG:13780443 - CONTROLFILE BACKUP MUST RESIDE ON SHARED DEVICE WITH RAC DATABASE
NOTE:265623.1 - RESYNC CATALOG fails with ORA-15045

BUG:10263733 - SNAPSHOT CONTROLFILE USED BY RMAN MUST RESIDE ON SHARED DEVICE FOR RAC DATABASE
BUG:10252378 - CONTROLFILE AUTOBACKUP FAILS WITH ORA-00245: CONTROL FILE BACKUP OPERATION FAILE

相关文章推荐

11.2 RAC: In "crsctl stat res -t" State Details May Be Missing or Incorrect [ID 1086563.1]

Applies to: Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and l...

经典错误重现->Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to

经常碰到这种错误,错误代码如下: Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in o...

How to rename ASM instances in RAC or clustered environment

  之前做的一个实验:       RAC 修改 ASM实例名的步骤       http://blog.csdn.net/tianlesoftware/archive/2011/03/25/6275...

11.2rac中,snapshot controlfile位置一定要改到共享目录下

11.2rac中,snapshot controlfile位置一定要改到共享目录下,否则在rman备份时,会遇到(不是每次都遇到)如下错误: [oracle@hosta logs]$ more ba...

ORA-15061 reported while doing a file operation with 11.1 or 11.2 ASM after PSU applied in database

ORA-15061 reported while doing a file operation with 11.1 or 11.2 ASM after PSU applied in database ...

ORA-01610: recovery using the BACKUP CONTROLFILE option must be done

一:版本信息 操作系统版本 AIX 6109 数据库版本  11.2.0.3(PSU5)   二:错误描述   同事在做数据库恢复演练的时候recover databas...

Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in ord

eclipse启动时报错:a java runtime environment (jre) or java development kit (jdk) must be available in ord...

【selenium2基于Python】如何解决'geckodriver' executable needs to be in PATH.

本贴是专门用来记录学习期间遇到的问题以及解决办法的,用来帮助其他学习者,并且为自己以后解决问题累积精神力量。 内容可能比较杂,随手记,遇到一个,解决一个,就记录一个,希望对大家有点点帮助。如何解决’...

ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

今天在发出全备份命令rman>backup database 时出现了以上错误 Cause: You tried to copy or backup a file that was not clos...
  • yywzgh
  • yywzgh
  • 2012年06月06日 23:28
  • 629

Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or

在使用cocoapod导入swift第三方时出现这样的问题: Pods written in Swift can only be integrated as frameworks; add use_...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:ORA-245: In RAC environment from 11.2 onwards Backup Or Snapshot controlfile needs to be in shared l
举报原因:
原因补充:

(最多只允许输入30个字)