在dg的模式下,配置异步的cdc,在主库上配置staging的位置的时候,使用下面的额配置
alter system set log_archive_dest_4=’service=stagingdb lgwr async optional noregister reopen=5 valid_for=(online_logfile,primary_role)’;
提示ORA-16052: DB_UNIQUE_NAME attribute is required.
因为参数log_archive_config已经配置dg_config,所以在配置log_archive_dest_n的时候需要指定db_unique_name,但是如果加了db_unique_name,会提示
ORA-16053: DB_UNIQUE_NAME stagingdb is not in the Data Guard Configuration
需要在log_archive_config的dg_config中将这个db_unique_name配置进入,
在配置好上面的情况下,日志依然无法传入staging库,主库上的alert日志中提示:
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
在staging库上alert user sys identified by 这种方式重新设置口令后依然不起作用,最后拷贝主库的口令文件到staging库,重命名。
现在的配置就是staging库伪装成改了从库,所以需要主库和staging库上的dg_config配置完全一致,否则在主库上使用
select dest_name,status,error,target,process from v$archive_dest where substr(dest_name,-1) in (3,4);命令查看的时候,提示下面的错误
ERROR ORA-16047: DGID mismatch between destination setting and target STANDBY LGWR
database
最后
以上就是瘦瘦早晨最近收集整理的关于oracle dg模式下部署cdc遇到的log_archive_dest的问题的全部内容,更多相关oracle内容请搜索靠谱客的其他文章。
发表评论 取消回复