oracle dg库因为standby_file_management参数导致应用停止
Posted monkey6
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle dg库因为standby_file_management参数导致应用停止相关的知识,希望对你有一定的参考价值。
DG库的standby_file_management=manual,主库添加文件的时候,备库无法自动创建对应的文件而报错
File #154 added to control file as ‘UNNAMED00154‘ because the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL
The file should be manually created to continue.
Errors with log /archlog/xxxxxx/1_366104_861895616.dbf
MRP0: Background Media Recovery terminated with error 1274
Errors in file /oracle/diag/rdbms/standby_xxxxxx/xxxxxx/trace/xxxxxx_pr00_19400.trc:
ORA-01274: cannot add datafile ‘/data/xxxxxx/data02.dbf‘ - file could not be created
Wed Apr 15 19:40:55 2020
Recovery interrupted!
在DG库standby_file_management=manual的情况下,备库会在控制文件中将新生成的文件自动命名为$ORACLE_HOME/dbs/XXXfile#
解决方法:
alter database recover managed standby database cancel;
alter database create datafile ‘/oracle/11204/dbs/UNNAMED00154‘ as ‘/data/xxxxxx/data02.dbf‘;
alter system set standby_file_management=auto;
alter databaese recover managed standby database diconnect;
以上是关于oracle dg库因为standby_file_management参数导致应用停止的主要内容,如果未能解决你的问题,请参考以下文章
oracle9204(9i)_dg(data guard)_重命名主库数据文件_指南_转摘官档
oracle dg备库实例mounted-standby状态
Oracle 12c DG备库Alert报错ORA-01110
asm单机dg dbca报错ORA-01031 CRS-2676,rman restore主库控制文件报错ORA-15081