一套Oracle11g 11.2.0.4 DG环境,主备不同步,日志无法传输到备库,主库提示错误: ORA-16191: Primary log shipping client not logged on standby
二、检查主库
1.检查主库归档目录状态
1 2 3 4 5 6
SQL> set linesize 500 pagesize 500 SQL> select status,error,synchronized,gap_status from v$archive_dest_status where dest_id=2;
STATUS ERROR SYN GAP_STATUS --------- ----------------------------------------------------------------- --- ------------------------ ERROR ORA-16191: Primary log shipping client not logged on standby NO RESOLVABLE GAP
2.检查主库告警日志
1 2 3 4 5 6 7 8 9
$ tail -200f alert_gdszyyj.log
Thu Jul 10 09:15:22 2025 Error 1017 received logging on to the standby ------------------------------------------------------------ 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
三、原因
在Oracle9i/10g/11g Data guard环境下,使用alter user sys identified by xxx 修改sys帐号密码,主库的密码更新不会自动同步至备库。