dg create datafile auto failed 排除处理
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 排除处理的更多相关文章
- 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 ...
- vsftp关于"550 create directory operation failed"问题解决
前提: 昨天晚上配置好了vsftp, 但登陆后,除了浏览,什么也干不了.(如新建文件/文件夹, 删除文件, 重命名等都不可操作) 都是弹出 "550 create directory ope ...
- 550 Create directory operation failed
往Linux系统中上传文件时候,我们经常会使用FTP连接Linux,也经常会使用mkdir命令来创建目录.最近发现用mkdir创建目录时提示550 Create directory operation ...
- Linux虚拟主机通过FTP软件创建目录时提示550 Create Directory Operation Failed
更新时间:2017-06-07 13:26:11 分享: 问题描述 通过FTP软件连接Linux虚拟主机,在尝试创建新目录时,服务器返回错误提示:550 Create Directory Oper ...
- RMAN restore fails with ORA-01180: can not create datafile 1
最近在验证.测试备份有效性时,遇到了"ORA-01180: can not create datafile 1"这个错误,顺便结合metalink的官方文档"RMAN ...
- 使用create datafile... as ...迁移数据文件到裸设备
下面是一个测试过程 1.首先创建裸设备:root@ultra66 # cd /opt/app/oradata/test root@ultra66 # lscontrol01.c ...
- 【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 ...
- linux vsftpd 550 create directory operation failed解决方法
今天配置好了vsftp, 但登陆后,除了浏览,什么也干不了.(如新建文件/文件夹, 删除文件, 重命名等都不可操作) 都是弹出 "550 create directory operation ...
- 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安装并授权完成后,站点初始化时显示 ...
随机推荐
- eclipse性能调优的一次记录
最近因为学习原因,eclipse中插件越来越多,造成eclipse一次次假死,着实很影响工作效率和心情,有时正是兴起,但是造成短片很令人生气,如果eclipse卡顿或者假死,在电脑配置较不错的情况下, ...
- 多线程编程<四>
1 /** 2 * 守护线程daemon['diːmən] 3 * @author Administrator 4 * 5 */ 6 public class DaemonDemo { 7 publi ...
- JavaWeb之数据库连接池
时间:2016-12-2 23:56 --DBCP连接池连接池参数(所有连接池参数都有默认值): 初始大小 最小空闲连接数 增量 最大空闲连接数 最大连接数 最长等 ...
- MySQL基础——常用命令
一.连接MySQL 1.启动mysql首先在打开cmd窗口,输入mysql -uroot -p ,然后空格进入MySQL控制台,MySQL的提示符是: mysql>. mysql -uroot ...
- 将 VS2017下开发的程序, 部署到其他电脑上运行
关键步骤:设置Release,如下图 如果无法直接执行,则安装ALI213-Microsoft.Visual.C++.2017.Redistributable.Package.x86.x64
- 一、部署sqlserver
1.下载并挂载sqlserver镜像 2.填写秘钥:6GPYM-VHN83-PHDM2-Q9T2R-KBV83 3.默认下一步 4.勾选需要的功能 5.默认下一步 6.默认下一步 等待安装完成即可. ...
- IOS 集成 Bilibili IJKPlayer播放器,播放rtmp视频流
因为公司项目需要,我一个连iPhone都没用过的人竟然跑去开发iOS APP.近一段时间一直忙于赶项目,到今天差不多了,所以记录一下当时遇到的各种坑,先从ios 集成 ijkplayer播放器说起! ...
- Mybatis(一)——HelloWorld
本人的博客一向保持"傻瓜式"的风格. 循序渐进学Mybatis,先konw how,再konw why.先整体,再细节! 本文不讲难懂的概念,先通过一个案例,希望读者跟着本文一步一 ...
- java设计模式—单例模式(包含单例的破坏)
什么是单例模式? 保证一个了类仅有一个实例,并提供一个访问它的全局访问点. 单例模式的应用场景? 网站的计数器,一般也是采用单例模式实现,否则难以同步: Web应用的配置对象的读取,一般也应用单例模式 ...
- Djangoform组件——ModelForm的基本使用
from django.contrib import admin from django.urls import path from app01 import views urlpatterns = ...