12c adg添加数据文件报错处理ORA-01111
发表于:2024-11-25 作者:千家信息网编辑
千家信息网最后更新 2024年11月25日,一、描述12c ADGrhel 7.0二、现象、处理过程1.主库添加数据文件,备库报错。Beginning Standby Crash Recovery.Serial Media Recovery s
千家信息网最后更新 2024年11月25日12c adg添加数据文件报错处理ORA-01111
一、描述12c ADGrhel 7.0
二、现象、处理过程1.主库添加数据文件,备库报错。Beginning Standby Crash Recovery.Serial Media Recovery startedManaged Standby Recovery starting Real Time ApplyStandby Crash Recovery aborted due to error 1111.Errors in file /u01/app/oracle/diag/rdbms/orcldg/orcldg/trace/orcldg_ora_2067.trc:ORA-01111: name for data file 7 is unknown - rename to correct fileORA-01110: data file 7: '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00007'ORA-01157: cannot identify/lock data file 7 - see DBWR trace fileORA-01111: name for data file 7 is unknown - rename to correct fileORA-01110: data file 7: '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00007'Completed Standby Crash Recovery.Errors in file /u01/app/oracle/diag/rdbms/orcldg/orcldg/trace/orcldg_ora_2067.trc:ORA-10458: standby database requires recoveryORA-01157: cannot identify/lock data file 7 - see DBWR trace fileORA-01111: name for data file 7 is unknown - rename to correct fileORA-01110: data file 7: '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00007'ORA-10458 signalled during: ALTER DATABASE OPEN READ ONLY /* db agent *//* {0:0:2} */...2.备库查看数据文件SQL> col name for a60SQL> select file#,name from v$datafile order by file#; FILE# NAME---------- ------------------------------------------------------------ 1 +DATADG/ORCLDG/DATAFILE/system.258.954626559 2 +DATADG/ORCLDG/DATAFILE/roidba.387.963323519 3 +DATADG/ORCLDG/DATAFILE/sysaux.259.954626615 4 +DATADG/ORCLDG/DATAFILE/undotbs1.260.954626701 5 +DATADG/ORCLDG/DATAFILE/roidba.388.963323313 6 +DATADG/ORCLDG/DATAFILE/users.261.954626717 7 /u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED000077 rows selected.3.重新创建新的数据文件SQL> alter database create datafile '/u01/app/oracle/product/12.1.0/dbhome_1/dbs/UNNAMED00007' as '+datadg';Database altered.4.备库查看数据文件SQL> select file#,name from v$datafile order by file#; FILE# NAME---------- ------------------------------------------------------------ 1 +DATADG/ORCLDG/DATAFILE/system.258.954626559 2 +DATADG/ORCLDG/DATAFILE/roidba.387.963323519 3 +DATADG/ORCLDG/DATAFILE/sysaux.259.954626615 4 +DATADG/ORCLDG/DATAFILE/undotbs1.260.954626701 5 +DATADG/ORCLDG/DATAFILE/roidba.388.963323313 6 +DATADG/ORCLDG/DATAFILE/users.261.954626717 7 +DATADG/ORCLDG/DATAFILE/roidba.376.9633497297 rows selected.SQL> SQL> ! ls -l /u01/app/oracle/product/12.1.0/dbhome_1/dbs/total 11448-rw-r----- 1 oracle asmadmin 1024 Dec 14 11:22 archlog_1_83_961866198_585bafa7.arc-rw-r----- 1 oracle asmadmin 48640 Dec 14 11:22 archlog_1_84_961866198_585bafa7.arc-rw-rw---- 1 oracle oinstall 1544 Dec 21 21:00 hc_orcldg.dat-rw-r--r-- 1 oracle oinstall 2992 Feb 3 2012 init.ora-rw-r--r-- 1 oracle oinstall 41 Sep 13 22:08 initorcldg.ora-rw-r----- 1 oracle oinstall 24 Sep 13 22:02 lkORCLDG-rw-r----- 1 oracle asmadmin 11649024 Dec 17 11:53 snapcf_orcldg.f-rw-r----- 1 oracle oinstall 3584 Sep 13 22:02 spfileorcldg.ora5.备库查看dg信息SQL> select message from v$dataguard_status;MESSAGE--------------------------------------------------------------------------------WARNING: STANDBY_FILE_MANAGEMENT initialization parameter isARC0: Archival startedARC1: Archival startedARC2: Archival startedARC1: Becoming the 'no FAL' ARCHARC2: Becoming the heartbeat ARCHARC2: Becoming the active heartbeat ARCHARC3: Archival startedManaged Standby Recovery starting Real Time ApplyPrimary database is in MAXIMUM PERFORMANCE modeRFS[1]: Assigned to RFS process (PID:3014)MESSAGE--------------------------------------------------------------------------------RFS[2]: Assigned to RFS process (PID:3008)RFS[3]: Assigned to RFS process (PID:3021)RFS[4]: Assigned to RFS process (PID:3024)ARC1: Beginning to archive thread 1 sequence 261 (8320210-8320689)ARC0: Beginning to archive thread 1 sequence 258 (8194341-8318764)ARC1: Completed archiving thread 1 sequence 261 (0-0)ARC0: Completed archiving thread 1 sequence 258 (0-0)Attempt to start background Managed Standby Recovery processMRP0: Background Managed Standby Recovery process startedManaged Standby Recovery starting Real Time ApplyMRP0: Background Media Recovery terminated with error 1111MESSAGE--------------------------------------------------------------------------------Managed Standby Recovery not using Real Time ApplyMRP0: Background Media Recovery process shutdownAttempt to start background Managed Standby Recovery processMRP0: Background Managed Standby Recovery process startedManaged Standby Recovery starting Real Time ApplyMedia Recovery Log +DATADG/arch/log_1_258_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_259_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_260_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_261_961866198_585bafa7.arcMedia Recovery Waiting for thread 1 sequence 262 (in transit)32 rows selected.6.主库切归档,备库继续查看日志MESSAGE--------------------------------------------------------------------------------WARNING: STANDBY_FILE_MANAGEMENT initialization parameter isARC0: Archival startedARC1: Archival startedARC2: Archival startedARC1: Becoming the 'no FAL' ARCHARC2: Becoming the heartbeat ARCHARC2: Becoming the active heartbeat ARCHARC3: Archival startedManaged Standby Recovery starting Real Time ApplyPrimary database is in MAXIMUM PERFORMANCE modeRFS[1]: Assigned to RFS process (PID:3014)MESSAGE--------------------------------------------------------------------------------RFS[2]: Assigned to RFS process (PID:3008)RFS[3]: Assigned to RFS process (PID:3021)RFS[4]: Assigned to RFS process (PID:3024)ARC1: Beginning to archive thread 1 sequence 261 (8320210-8320689)ARC0: Beginning to archive thread 1 sequence 258 (8194341-8318764)ARC1: Completed archiving thread 1 sequence 261 (0-0)ARC0: Completed archiving thread 1 sequence 258 (0-0)Attempt to start background Managed Standby Recovery processMRP0: Background Managed Standby Recovery process startedManaged Standby Recovery starting Real Time ApplyMRP0: Background Media Recovery terminated with error 1111MESSAGE--------------------------------------------------------------------------------Managed Standby Recovery not using Real Time ApplyMRP0: Background Media Recovery process shutdownAttempt to start background Managed Standby Recovery processMRP0: Background Managed Standby Recovery process startedManaged Standby Recovery starting Real Time ApplyMedia Recovery Log +DATADG/arch/log_1_258_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_259_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_260_961866198_585bafa7.arcMedia Recovery Log +DATADG/arch/log_1_261_961866198_585bafa7.arcMedia Recovery Waiting for thread 1 sequence 262 (in transit)ARC3: Beginning to archive thread 1 sequence 262 (8320689-8322685)MESSAGE--------------------------------------------------------------------------------ARC3: Completed archiving thread 1 sequence 262 (0-0)Media Recovery Waiting for thread 1 sequence 263 (in transit)35 rows selected.SQL>
三、小结1.ALTER DATABASE ... CREATE DATAFILE--官方说明Creates a new empty data file in place of an old one--useful to re-create a data file that was lost with no backup.2.StandbyFileManagement 需要参数设置为autoDGMGRL> edit database orcl set property StandbyFileManagement=auto;Property "standbyfilemanagement" updatedDGMGRL> edit database orcldg set property StandbyFileManagement=auto;Property "standbyfilemanagement" updatedDGMGRL>
数据
文件
处理
信息
参数
官方
小结
日志
现象
过程
库切
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
肇庆手机软件开发公司
联想服务器状态指示灯图解
访问的数据库被拒绝
如何打好网络安全主动仗
网络技术能否转行
网络安全导向在哪里
服务器复制文件到容器里
网络安全选择题wpa2
数据库投影操作相同元组是否删除
武汉市服务器搬迁公司价格
安卓平板数据库
网络安全手抄报简图视频
网络货运平台网络安全会议总结
学霸图书馆数据库
换电站服务器
如何做好网络安全工作教师
网络技术网络工程师培训
网络安全法实施是什么时间
电脑软件开发要数学学历吗
腾讯云服务器ip映射本地电脑
热门笔记本电脑软件开发
平谷区数据网络技术一体化
信息管理系统软件开发需求分析
软件定义网络技术课后习题答案
登录客户端显示服务器错误
大数据和数据库学习
网络安全有专项资金
运维管理软件开发中心
设置可信任dhcp服务器
大连三个火枪手科技网络技术