1.Environment:
11.2.0.4 dg

2.Symptoms:
告警描述:Wed Sep 22 14:29:15 2021
Errors in file /data/app/oracle/diag/rdbms/dgsmsdb/dgsmsdb/trace/dgsmsdb_pr00_23607.trc:
ORA-01119: error in creating database file '+data'
ORA-17502: ksfdcre:4 Failed to create file +data
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
File #60 added to control file as 'UNNAMED00060'.
Originally created as:
'+DATA/smsdb/datafile/sms_tbsp.2513.1083940131'
Recovery was unable to create the file as:
'+data'
MRP0: Background Media Recovery terminated with error 1274
Errors in file /data/app/oracle/diag/rdbms/dgsmsdb/dgsmsdb/trace/dgsmsdb_pr00_23607.trc:
ORA-01274: cannot add datafile '+DATA/smsdb/datafile/sms_tbsp.2513.1083940131' - file could not be created
Managed Standby Recovery not using Real Time Apply
Recovery interrupted!
Recovered data files to a consistent state at change 184

3.Changes:
主库添加数据文件。
首先确认备库是否自动创建数据文件
然后查看是否是omf管理
最后查看convert参数

NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
db_file_name_convert string +DATA/dbsms, /piccdata/oradata

4.Cause
数据库通过dg的switchover方式迁移后,由于新的主库的数据文件路径发生了变化,原来的备库的convert参数依旧是原来的配置,导致dg的文件无法正确创建。

5.Solution
alter system set standby_file_management=MANUAL scope=both;
alter database create datafile '/data/app/oracle/product/11.2.0/db_1/dbs/UNNAMED00010' as '/piccdg/oradata/dgsmis/smiscrm_tbs.299.1018797201';
alter system set standby_file_management=AUTO scope=both;

可以修改Db_create_file_dest使用omf来避免这个问题。
此外,如果修改convert参数,需要重启库。遇到了备库数据文件路径分散在两个路径下,重启库提示如下报错。手工swtich 后起库
Errors in file /data/app/oracle/diag/rdbms/dgsms/dgsms/trace/dgsms_dbw0_10583.trc:
ORA-01157: cannot identify/lock data file 9 - see DBWR trace file
ORA-01110: data file 9: '+DATA/dbsms/sms_ts4.dbf'
ORA-17503: ksfdopn:2 Failed to open file +DATA/dbsms/sms_ts4.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /data/app/oracle/diag/rdbms/dgsms/dgsms/trace/dgsms_dbw0_10583.trc:
ORA-01157: cannot identify/lock data file 10 - see DBWR trace file
ORA-01110: data file 10: '+DATA/dbsms/sms_ts5.dbf'
ORA-17503: ksfdopn:2 Failed to open file +DATA/dbsms/sms_ts5.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /data/app/oracle/diag/rdbms/dgsms/dgsms/trace/dgsms_dbw0_10583.trc:
ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
ORA-01110: data file 11: '+DATA/dbsms/sms_ts6.dbf'
ORA-17503: ksfdopn:2 Failed to open file +DATA/dbsms/sms_ts6.dbf
ORA-15001: diskgroup "DATA" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /data/app/oracle/diag/rdbms/dgsms/dgsms/trace/dgsms_dbw0_10583.trc:
ORA-01157: cannot identify/lock data file 12 - see DBWR trace file
ORA-01110: data file 12: '+DATA/dbsms/sms_ts7.dbf'

6.References
Steps to create a new standby from an existing ADG standby (Doc ID 2305009.1)
Step by Step Guide on Creating Physical Standby Using RMAN DUPLICATE...FROM ACTIVE DATABASE (Doc ID 1075908.1)
Usage and Limitation of db_file_name_convert and log_file_name_convert (Doc ID 1367014.1)
On Standby Datafiles are Going Into Wrong Diskgroup ( Db_file_name_convert, Db_create_file_dest ) (Doc ID 1408666.1) https://docs.oracle.com/cd/E18283_01/server.112/e17022/scenarios.htm
http://blog.itpub.net/31397003/viewspace-2149519/
https://www.cnblogs.com/jyzhao/p/7459415.html

拓展:关于temp文件

Physical Standby Database Reported Corrupted Datafiles in Temporary Tablespace (Doc ID 1290412.1)

set linesize 200
col NAME for a90
select FILE# ,NAME from v$datafile;
25 /data/oradata/ump_05.dbf
26 /data/oradata/undotbs02.dbf
27 /data/oradata/yxt2ai_data2.db
28 /data/oradata/yxt2ai_data3.db
29 /data/oradata/sms_ts16.dbf
30 /data/oradata/sms_ts17.dbf
31 /data/oradata/sms_ts18.dbf
32 /data/oradata/ump_06.dbf
33 /data/oradata/datafile/sms_tbsp.985.1016276421
34 /data/oradata/datafile/ump_ts.580.1023362685
35 /data/oradata/datafile/ump_ts.897.1023362785
36 /data/oradata/datafile/ump_ts.983.1023362821
37 /data/oradata/datafile/yxt2ai_data.894.1023362887

dg create datafile auto failed 排除处理的更多相关文章

  1. RMAN restore fails with ORA-01180: can not create datafile 1 (文档 ID 1265151.1)

    http://blog.itpub.net/26655292/viewspace-2131269/ ########Q&A issue1:ORA-01180: can not create d ...

  2. vsftp关于"550 create directory operation failed"问题解决

    前提: 昨天晚上配置好了vsftp, 但登陆后,除了浏览,什么也干不了.(如新建文件/文件夹, 删除文件, 重命名等都不可操作) 都是弹出 "550 create directory ope ...

  3. 550 Create directory operation failed

    往Linux系统中上传文件时候,我们经常会使用FTP连接Linux,也经常会使用mkdir命令来创建目录.最近发现用mkdir创建目录时提示550 Create directory operation ...

  4. Linux虚拟主机通过FTP软件创建目录时提示550 Create Directory Operation Failed

    更新时间:2017-06-07 13:26:11   分享: 问题描述 通过FTP软件连接Linux虚拟主机,在尝试创建新目录时,服务器返回错误提示:550 Create Directory Oper ...

  5. RMAN restore fails with ORA-01180: can not create datafile 1

      最近在验证.测试备份有效性时,遇到了"ORA-01180: can not create datafile 1"这个错误,顺便结合metalink的官方文档"RMAN ...

  6. 使用create datafile... as ...迁移数据文件到裸设备

    下面是一个测试过程 1.首先创建裸设备:root@ultra66 # cd /opt/app/oradata/test             root@ultra66 # lscontrol01.c ...

  7. 【err】开启Persistence-M模式-Check failed: err == CUBLAS_STATUS_SUCCESS (1 vs. 0) : Create cublas handle failed

    前言 安装好CUDA.CUDNN.NVIDIA driver之后,使用mxnet框架的时候出现该错误,本文记录该问题的解决方法. 环境 ubuntu 16.04 MxNet Cuda9.0 Nvidi ...

  8. linux vsftpd 550 create directory operation failed解决方法

    今天配置好了vsftp, 但登陆后,除了浏览,什么也干不了.(如新建文件/文件夹, 删除文件, 重命名等都不可操作) 都是弹出 "550 create directory operation ...

  9. ArcGIS for Server新建站点异常,Failed to create the site.Failed to configure the server machine'XXXX',Server machine'XXXX' is not a local server machine.

      系统环境:操作系统Win7 64位,装在虚拟机VM中,ArcGIS for Server 10.2.1 问题描述:ArcGIS for Server 10.2.1安装并授权完成后,站点初始化时显示 ...

随机推荐

  1. Consul 入门-初识

    背景 现状:单体架构逐渐被微服务架构所替代,原本两个功能模被拆分成了两个服务.原本两个模块块间的通信只需要函数调用就能够实现,现在却做不到了,因为它们不在同一个进程中,甚至两个服务都可能部署到不同的机 ...

  2. 多个mysql同时运行

    一.准备 mysql下载地址 https://dev.mysql.com/downloads/mysql/ 1.下载 2.解压缩 3.创建my.ini [Client] port = 3307 [my ...

  3. 性能测试工具JMeter 基础(五)—— 测试元件: 测试计划

    测试计划的定义: 测试计划是测试脚本的容器,定义了要执行什么.怎么执行对测试做总体的设置,且都是从线程组开始执行 在测试计划中可自定义用户变量(User Defined Variables),可通过A ...

  4. SQL语句之高级使用

    1.select top select top  用于规定要返回的数据的数目 注意:并非所有的数据库系统都支持 SELECT TOP 语句. MySQL 支持 LIMIT 语句来选取指定的条数数据, ...

  5. noip模拟48

    A. Lighthouse 很明显的容斥题,组合式与上上场 \(t2\) 一模一样 注意判环时长度为 \(n\) 的环是合法的 B. Miner 题意实际上是要求偶拉路 对于一个有多个奇数点的联通块, ...

  6. ysoserial CommonsColletions5分析

    我们知道,AnnotationInvocationHandler类在JDK8u71版本以后,官方对readobject进行了改写. 所以要挖掘出一条能替代的类BadAttributeValueExpE ...

  7. angularjs $http.get 和 $http.post 传递参数

    $http.get请求数据的格式 $http.get(URL,{ params: { "id":id } }) .success(function(response, status ...

  8. minio & gitlab runner

    Docker安装Minio存储服务器详解 # mkdir -p /data/minio # docker pull nexus3:8089/minio/minio # docker run -p 90 ...

  9. 中心对称数 II

    中心对称数 II 1.题目描述 中心对称数是指一个数字在旋转了 180 度之后看起来依旧相同的数字(或者上下颠倒地看). 找到所有长度为 n 的中心对称数. 示例 : 输入: n = 2 输出: [& ...

  10. CodeForce-803B Distances to Zero(贪心DP)

    Distances to Zero CodeForces - 803B 题意:给定一个数列 a0, a1, ..., an - 1.对于数列中的每一项都要求出与该项最近的0与该项的距离.保证数列中有至 ...