其他分享
首页 > 其他分享> > 【dg】最大性能lgwr sync配置no valid type处理

【dg】最大性能lgwr sync配置no valid type处理

作者:互联网

未配置standby_log

SQL> select count(*) from v$standby_log;

  COUNT(*)
----------
         0

 

初始配置

alter system set log_archive_dest_2='SERVICE=ora10g lgwr sync  VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ora10g'   scope=both;
alter system set log_archive_dest_2='SERVICE=orcllgwr sync  VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=orcl'   scope=both;

检查是否正确配置

select dest_name,status,error from v$archive_dest where dest_id in (1,2);

提示dest_name=2 no valid type

修改配置
alter system set log_archive_dest_2='SERVICE=ora10g lgwr sync affirm  DB_UNIQUE_NAME=ora10g'   scope=both;
alter system set log_archive_dest_2='SERVICE=orcllgwr sync affirm   DB_UNIQUE_NAME=orcl'   scope=both;
 

再检查select dest_name,status,error from v$archive_dest where dest_id in (1,2);都ok

 

 

 

 

标签:set,log,SERVICE,no,dest,dg,lgwr,sync,archive
来源: https://blog.csdn.net/viviliving/article/details/93594608