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 ...
随机推荐
- sql-lib闯关61-65
第六十一关 和六十关基本一样,就是变成了单引号和双括号,这好像是第一次遇见双括号 爆数据库名 ?id=1'))and extractvalue(1, concat(0x5c, (select da ...
- 使用wrd2vec构建推荐系统
概览 完整的代码可以从这里下载: https://github.com/prateekjoshi565/recommendation_system/blob/master/recommender_2. ...
- 【python系统学习11】循环语句里的F4
循环语句里的F4 深入了解下四个新语句,分别是:continue.break.pass.else以及他们搭配for.while循环等语句时,所产生的化学反应. else 由于continue.brea ...
- Go相关面试题目总结(日常更新)
1.go的深拷贝与浅拷贝 深拷贝 会赋值全部的内容 内容一样但是地址不一样 修改任何一个后地址不一样 内容也会一样 changeName(h1)对象传到函数里面也是深拷贝 b := a 这是深拷贝 会 ...
- C 最大公约数&最小公倍数
1.最大公约数 链接 如果有一个自然数a能被自然数b整除,则称a为b的倍数,b为a的约数.几个自然数公有的约数,叫做这几个自然数的公约数.公约数中最大的一个公约数,称为这几个自然数的最大公约数. 1 ...
- ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
原因:动态链接库丢失或路径找不到 解决:执行下列命令即可 wget -q -O /tmp/libpng12.deb http://mirrors.kernel.org/ubuntu/pool/main ...
- Python语法元素分析
缩进 1个缩进 = 4个空格 用以在Python中标明代码的层次关系 缩进是Python语言中表明程序框架的唯一手段 注释 注释:程序员在代码中加入的说明信息,不被计算机执行 注释的两种方法: 单行注 ...
- IO 流
------------恢复内容开始------------ 一.流的简介 输入流:把硬盘中的数据读取到内存中 输出流:把内存中的数据读取到硬盘中 1字符=2字节 1字节=8位 1.2顶级父类 二. ...
- 使用gulp搭建一个传统的多页面前端项目的开发环境
1.简介 使用gulp搭建一个传统的多页面前端项目的开发环境 支持pug scss es6编译支持 支持开发环境和打包生成sourceMap 支持文件变动自动刷新浏览器,css是热更新(css改动无需 ...
- 第一讲:Git分区,配置与日志
前言 曾经听到过这样一句话:不会git就不要敲代码了.细细品味确实有其中的道理,可能是当事人代码被强行覆盖后的叹息吧! 因此,为了避免这种情况,接下来我们就一起来好好学习git的相关知识吧!不怕你不会 ...