经常有客户报错ORA-0245

1.11.2 rac环境, rman存在snap控制文件路径,默认是文件系统[非共享,导致备份控制文件报错]

解决方法:将snap路径配置到ASM磁盘组共享路径【nfs共享路径也行】;

2.遭遇bug 配置snap路径已经是asm共享目录,但是asm目录下没有snap文件,且无法创建成功!

解决方法: snap_名称写错误,应该是小写的snapcf_<Db_unique_name>.f

1.大部分是snap路径非共享存储

ORA-: In RAC environment from 11.2 onwards Backup Or Snapshot controlfile needs to be in shared location (Doc ID 1472171.1)
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. . In RAC environment controlfile autobackup fails with ora- Autobackup of controlfile in RMAN is failing with error:
RMAN-: ===========================================================
RMAN-: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-: ===========================================================
RMAN-: failure of Control File and SPFILE Autobackup command on
ORA_DISK_1 channel at // ::
ORA-: control file backup operation failed . In RAC environment, backup controlfile to non shared location fails SQL> ALTER DATABASE BACKUP CONTROLFILE TO '/path/control.bk' REUSE
*
ERROR at line :
ORA-: control file backup operation failed
. In RAC environment backing up standby controlfile to non shared location fails SQL> alter database create standby controlfile as '/path/renostdbycntrl.ctl'; alter database create standby controlfile as
'/path/renostdbycntrl.ctl'
*
ERROR at line :
ORA-: control file backup operation failed . In RAC environment copy current controlfile to '${DB_BACKUP_DIR}/rac_tnctv_control.bak'; channel ch1: starting datafile copy
copying current control file
RMAN-: ===========================================================
RMAN-: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-: ===========================================================
RMAN-: failure of backup command on // :: channel at ch1
ORA-: control file backup operation failed
. In RAC environment, Rman backup fails if snapshot controlfile is not in shared location. RMAN-: ========================================================
RMAN-: ============ ERROR MESSAGE STACK FOLLOWS =============
RMAN-: =========================================================
RMAN-: failure of resync command on default channel at // ::
ORA-: control file backup operation failed
. In RAC environment, with NO RMAN activity, but controlfile autobackup is being created by database structure change. I.e.,
adding datafiles or a resize of datafiles with autoextend. Alert.log shows: -- ::10.244000 +:
Errors in file /path/db_name_m000_24118.trc:
ORA-: operation failed, retry possible
ORA-: failed to create file "/path/c-3364950485-20161230-00.cf"
ORA-: file create error, unable to create file
SVR4 Error: : No such file or directory
Additional information:

解决方法

. Check the snapshot controlfile location:
RMAN> show snapshot controlfile name;
. 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';

2.遇到已经配置ASM共享存储路径,但是还是自动备份报错!

注意观察snap_xxx名称及大小写问题!

RMAN Backup Fails with ORA- Having Duplicate Snapshot Controlfile Location Configured (Doc ID 2408922.1)
RMAN backup fails with error: ORA-: control file backup failed; target is likely on a local file system,
though the location of snapshot control file is configured to a shared storage and if its a ASM storage the corresponding diskgroups are mounted. CAUSE
When snapshot controlfile location is duplicated and has the directory or snapshot control file name in mixed
(both upper and lower) cases the bug is hit leading to errors ORA-: control file backup failed; target
is likely on a local file system.
RMAN&gt; show all;
using target database control file instead of recovery catalog
...
#Snapshot CF's directory name in mixed cases and duplicated
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '<path>/SNAP/snapcf_<db_unique_name>.f';
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '<path>/snap/snapcf_<db_unique_name>.f';
or
#Snapshot CF name in mixed cases and duplicated
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '<path>/snapcf_<db_unique_name>.f';
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '<path>/snapcf_<Db_unique_name>.f' SOLUTION
RMAN> show all;
RMAN> configure snapshot controlfile name clear;
RMAN> configure snapshot controlfile name to '<path>_<<db_uniqe_name>>.cf';
RMAN> show all;

解决方法

.观察是否都是小写,调整到都是小写,不要大小写混用;
.观察snap_xxx 名称是否为db_unique_name 修改为db unique name名称!!!

ORA-0245的更多相关文章

  1. ORA-12541:TNS:no listener 客户端tnsnames.ora配置,以及服务端listener.ora配置

    需求:客户端(192.168.25.1)需要访问服务端(192.168.7.215)的Oracle库ORCL. 步骤一:配置客户端tnsnames.ora 步骤二:配置服务端listener.ora ...

  2. Oracle的tnsnames.ora配置(PLSQL Developer)

    首先打开tnsnames.ora的存放目录,一般为D:\app\Administrator\product\11.2.0\client_1\network\admin,就看安装具体位置了. 步骤阅读 ...

  3. Oracle RAC客户端tnsnames.ora相关配置及测试

    1.Oracle RAC服务端/etc/hosts部分内容如下 2.查看服务端的local_listener和remote_listener参数 3.客户端tnsnames.ora配置参考 3.1 1 ...

  4. oracle的sqlnet.ora,tnsnames.ora,listener.ora三个配置文件

    总结: 1 .三个配置文件都是放在$ORACLE_HOME\network\admin目录下. 2 .sqlnet.ora确定解析方式 3 .listener.ora上设SID_NAME,通常用于JD ...

  5. oracle客户端安装配置 tnsnames.ora文件

    Oracle客户端tnsnames.ora连接配置 Oracle90的在C:\Oracle\ora90\network\ADMIN下面 Oracel10g的在D:\oracle\product\10. ...

  6. 修改tnsnames.ora文件中配置内容中的连接别名后,连接超时解决办法

    1.tnsnames.ora文件中配置内容中的连接别名:由upaydb修改为IP地址 2.连接超时 定位原因: PLSQL登录界面的数据库列表就是读的tnsname.ora中连接的别名,这个文件中连接 ...

  7. 安装了多个Oracle11g的客户端,哪个客户端的tnsnames.ora会起作用?

    如果我们由于需要安装了多个Oracle的client,哪个客户端的tnsnames.ora会起作用呢? 答案是: 在安装好clinent端后,安装程序会把client的bin目录放到path里面,pa ...

  8. PLSQL登录数据库 报ORA -12154的诡异问题

    https://q.cnblogs.com/q/89420/ 现象: 1.机器上先后安装了oracle两个版本的client.在装第一个client后,plsql可以顺利连接数据库a并登录. 2.安装 ...

  9. tnsnames.ora配置注意(连接新的数据库)

    文件地址D:\app\think\product\11.2.0\instantclient_11_2\network\admin\tnsnames.ora# tnsnames.ora Network ...

  10. listener.ora/sqlnet.ora/tnsnames.ora配置文件详解

    oracle网络配置 三个配置文件 listener.ora.sqlnet.ora.tnsnames.ora ,都是放在$ORACLE_HOME/network/admin目录下. 英文说明: The ...

随机推荐

  1. sweep line-The Skyline Problem

    2020-01-10 17:51:05 问题描述: 问题求解: 本题是经典的sweep line问题. 对于sweep line问题我们需要考虑的只有两点: 1. 延水平方向 / 时间方向 :时间队列 ...

  2. springboot创建

    1.点击File----->New----->Project...  2.输入MAVEN,组名.包名等相关参数  3.选择SpringBoot版本,选择项目需要依赖的相关骨架包  4.设置 ...

  3. Arcgis中制作热力图

    摘要 使用核函数根据点或折线 (polyline) 要素计算每单位面积的量值以将各个点或折线 (polyline) 拟合为光滑锥状表面. 插图

  4. windows10远程桌面,出现“出现身份验证错误 要求的函数不受支持...”等错误解决方法

    windows家庭普通版,更新补丁后无法远程连接windows server2012,出现以下报错: 解决方法: 1.win + R打开运行,输入 regedit,回车进入注册表 2.找到以下路径 \ ...

  5. GitHub 运用实战入门,奶妈级教学

    ## 前言: 我不会用*官方*的语言告诉你Git 是什么,对此我表示深深得歉意--在我看来像CSDN.博客园.掘金等博客交流平台就是小的“GitHub”,只不过在这里更多的是一些零零散散的笔记或者文章 ...

  6. java程序:转化金额

    在处理财务账款时,需要将转账金额写成大写的.也就是说,如果要转账123456.00元,则需要写成“壹拾贰万叁仟肆佰伍拾陆元整”.所以常常需要通过程序控制自动进行转换.本实例实现了小写金额到大写金额的转 ...

  7. Spring ApplicationContext 容器

    Spring ApplicationContext 容器 Application Context 是 BeanFactory 的子接口,也被成为 Spring 上下文. Application Con ...

  8. STM32F103ZET6 GPIO的使用

    1.GPIO简介 STM32F103ZET6有多个GPIO组,如GPIOA.GPIOB.GPIOC...等等.每个GPIO组具有16个IO口. GPIO组的寄存器都是类似的,每个GPIO组都有2个32 ...

  9. app测试的一些较为重要的测试点

    安装测试 从不同的手机所自带的不同的版本的软件商城里面下载抖音并安装查看是否成功 安装后是否能正常运行安装后的文件和文件夹是否写到了指定的目录里 安装过程中取消安装,安装的文件是否在指定的目录里 安装 ...

  10. 【php】php操作MySQL数据库

    一.操作步骤: 1. 连接MySQL数据库并判断是否连接成功2. 选择数据库3. 设置字符集4. 准备SQL语句5. 向MySQL服务发送SQL语句6. 解析处理结果集7. 释放结果集,关闭数据库连接 ...