alter database add standby logfile group 11 'F:\app\Administrator\oradata\orcl\DG\standby11.log' size 50M; alter database add standby logfile group 12 'F:\app\Administrator\oradata\orcl\DG\standby12.log' size 50M; alter database add standby logfile group 13 'F:\app\Administrator\oradata\orcl\DG\standby13.log' size 50M; alter database add standby logfile group 14 'F:\app\Administrator\oradata\orcl\DG\standby14.log' size 50M;
alter system set log_archive_dest_1='LOCATION=F:\arch\orcl valid_for=(all_logfiles,primary_role) db_unique_name=orcl' scope=spfile; alter system set log_archive_dest_2='SERVICE=orcldg lgwr sync valid_for=(online_logfile,primary_role) db_unique_name=orcldg';
2.18 配置 FAL_SERVER
1
alter system set FAL_SERVER='orcldg';
2.19 Data Guard 配置里的另外一个库的名字
1
alter system set log_archive_config = 'dg_config=(orcl,orcldg)';
startup nomount alter database mount standby database;
2.26 启动 redo 应用
1 2
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;