您的位置:首页 > 数据库 > Oracle

oracle dg模式下部署cdc遇到的log_archive_dest的问题

2017-06-23 17:49 1021 查看
在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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: