dataguard 报错

本文介绍了解决Oracle Dataguard环境中因手动管理文件而导致的问题的方法。通过手动添加新数据文件到备用数据库,并调整参数设置来实现自动管理。
File #3 added to control file as 'UNNAMED00003' because
the parameter STANDBY_FILE_MANAGEMENT is set to MANUAL

The file should be manually created to continue.


由于主备库的stabdby file采用的手工管理,所以在主库创建新的表空间时,备库发生错误,改为自动管理


根据情况,由于此次发生错误时,刚上生产,主库不能动,所以重新搭建了dataguard,时间较短,不影响主库




Solution 10 Add the new datafiles to the standby database manually.

1) Please take a hot backup of new datafiles from the primary database. 

2) Create a new standby controlfile from the primary database by

SQL>alter database create standby controlfile as '/tmp/controlf.ctl';


If datafiles are on ASM, please follow the note below and you could ignore the rest of steps: 

Note 734862.1 Step By Step Guide On How To Recreate Standby Control File 
When Datafiles Are On ASM And Using Oracle Managed Files

Or you could modify the wrong datafile name in the standby controlfile by alter database rename command. For example,

SQL> ALTER DATABASE RENAME FILE '' to '';


3) If the new datafile location on the primary is different from the standby, please make sure 
db_file_name_convert init parameter is set on the standby database. 

Note 47325.1 Init.ora Parameter "DB_FILE_NAME_CONVERT" Reference Note

If db_file_name_convert init parameter has already been set, then you could ignore this step.


4) Cancel the managed recovery

 

SQL>alter database recover managed standby database cancel; 

5) set standby_file_management=manual on the standby database and shutdown the standby database.

SQL>alter system set standby_file_management=manual sid='*'; 
SQL>shutdown immediate; 


 
6) Copy the hot backup of the new datafiles and the new standby controlfile to the standby. 
Please make sure the controlfiles are located in the right location with right names 
according to the init parameter control_files. Please make sure the copied datafiles are 
located in the right location as well according to name from v$datafile. 

7) startup the standby database in mount mode and set standby_file_management=auto.

SQL>startup mount; 
SQL>alter system set standby_file_management=auto sid='*';

 
8) Start the managed recovery.

SQL>alter database recover managed standby database disconnect;

......


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值