ORA-0245
经常有客户报错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> 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的更多相关文章
- ORA-12541:TNS:no listener 客户端tnsnames.ora配置,以及服务端listener.ora配置
需求:客户端(192.168.25.1)需要访问服务端(192.168.7.215)的Oracle库ORCL. 步骤一:配置客户端tnsnames.ora 步骤二:配置服务端listener.ora ...
- Oracle的tnsnames.ora配置(PLSQL Developer)
首先打开tnsnames.ora的存放目录,一般为D:\app\Administrator\product\11.2.0\client_1\network\admin,就看安装具体位置了. 步骤阅读 ...
- Oracle RAC客户端tnsnames.ora相关配置及测试
1.Oracle RAC服务端/etc/hosts部分内容如下 2.查看服务端的local_listener和remote_listener参数 3.客户端tnsnames.ora配置参考 3.1 1 ...
- oracle的sqlnet.ora,tnsnames.ora,listener.ora三个配置文件
总结: 1 .三个配置文件都是放在$ORACLE_HOME\network\admin目录下. 2 .sqlnet.ora确定解析方式 3 .listener.ora上设SID_NAME,通常用于JD ...
- oracle客户端安装配置 tnsnames.ora文件
Oracle客户端tnsnames.ora连接配置 Oracle90的在C:\Oracle\ora90\network\ADMIN下面 Oracel10g的在D:\oracle\product\10. ...
- 修改tnsnames.ora文件中配置内容中的连接别名后,连接超时解决办法
1.tnsnames.ora文件中配置内容中的连接别名:由upaydb修改为IP地址 2.连接超时 定位原因: PLSQL登录界面的数据库列表就是读的tnsname.ora中连接的别名,这个文件中连接 ...
- 安装了多个Oracle11g的客户端,哪个客户端的tnsnames.ora会起作用?
如果我们由于需要安装了多个Oracle的client,哪个客户端的tnsnames.ora会起作用呢? 答案是: 在安装好clinent端后,安装程序会把client的bin目录放到path里面,pa ...
- PLSQL登录数据库 报ORA -12154的诡异问题
https://q.cnblogs.com/q/89420/ 现象: 1.机器上先后安装了oracle两个版本的client.在装第一个client后,plsql可以顺利连接数据库a并登录. 2.安装 ...
- tnsnames.ora配置注意(连接新的数据库)
文件地址D:\app\think\product\11.2.0\instantclient_11_2\network\admin\tnsnames.ora# tnsnames.ora Network ...
- listener.ora/sqlnet.ora/tnsnames.ora配置文件详解
oracle网络配置 三个配置文件 listener.ora.sqlnet.ora.tnsnames.ora ,都是放在$ORACLE_HOME/network/admin目录下. 英文说明: The ...
随机推荐
- 拿 C# 搞函数式编程 - 3
前言 今天和某个人聊天聊到了 C# 的 LINQ,发现我认识的 LINQ 似乎和大多数人认识的 LINQ 不太一样,怎么个不一样法呢?其实 LINQ 也可以用来搞函数式编程. 当然,并不是说写几个 l ...
- 深入Redis命令的执行过程
深入Redis命令的执行过程 Redis 服务器: Redis 服务器实现与多个客户端的连接,并处理这些客户端发送过来的请求,同时保存客户端执行命令所产生的数据到数据库中.Redis 服务器依靠资源管 ...
- jupyter notebook 中同时添加Python2和3,在conda下配置R语言运行的环境
1.第一步,安装Python2的环境 首先,在安装anaconda的时候先选择一个Python安装,我先安装的是Python3 然后,在anaconda Prompt下创建Python2环境 现在,还 ...
- 给rm命令加保险
众所周知,脑残可以学习,但是手残没法治.相信每一位喜欢用终端操作电脑的同学都曾手误使用 rm 命令把不该删除的文件删了.然而,使用 rm 删除的文件是不会进去回收站的. 所以,最好的方法就是我们自定义 ...
- 使用 keras 和 tfjs 构建血细胞分类模型
欢迎大家关注我们的网站和系列教程:http://www.tensorflownews.com/,学习更多的机器学习.深度学习的知识!
- Ceph学习笔记(2)- CRUSH数据分布算法
前言: 分布式存储系统需要让数据均匀的分布在集群中的物理设备上,同时在新设备加入,旧设备退出之后让数据重新达到平衡状态尤为重要.新设备加入后,数据要从不同的老设备中迁移过来.老设备退出后,数据迁移 ...
- Sublimeの虚拟环境(Venv)设置
这里主要介绍,在使用 Python 虚拟环境(Venv)时,SublimeText 该怎么设置 为什么使用虚拟环境(Venv) 因为,我有洁癖! 我就是喜欢看到,pip list 命令下什么 Pack ...
- 下面总结一些在HTML中经常使用到的快捷键
使用的编辑器是VS code: 首先是很基础的: ctrl+s :保存: ctrl+a : 全选: ctrl+c , ctrl+c , ctrl+v : 剪切,复制,粘贴: ctrl+z ,ct ...
- MATLAB 排序、拟合
一.数据排序整合 1.随机生成的数,从小到大排序 clear rand('seed',1)%设置随机种子,确保随机数一样 edge_range=unifrnd (1, 10, 1, 10) edge_ ...
- RecyclerView 的简单使用
自从 Android 5.0 之后,google 推出了一个 RecyclerView 控件,他是 support-v7 包中的新组件,是一个强大的滑动组件,与经典的 ListView 相比,同样拥有 ...