Oracle:DG error ORA-16191錯誤

告警日誌出現大量的:
[oracle@primary trace]$ tail -f alert_orcl.log
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

看到這樣的告警,感受是主備庫的sys密碼不一致致使的,因此:
當初搭建DG時,在主備兩端經過 orapwd file=orapworcl password=oracle 生成
現將DG端密碼文件刪掉,從生產端scp密碼文件到DG端,問題解決
[oracle@standby dbs]$ rm -rf orapworcl
[oracle@primary dbs]$ scp orapworcl oracle@192.168.186.88:/u01/app/base/product/11.2.0/db_1/dbs/
oracle@192.168.186.88's password:
orapworcl 100% 1536 1.5KB/s 00:00
驗證生產端:
SQL> select database_role from v$database;

DATABASE_ROLE

PRIMARY

SQL> alter system set log_archive_dest_state_2 = DEFER scope=both;

System altered.

SQL> alter system set log_archive_dest_state_2 = ENABLE scope=both;

System altered.

SQL> select max(sequence#) from v$archived_log;

MAX(SEQUENCE#)

20

SQL> select dest_name,status,error from v$archive_dest where dest_id=1 or dest_id=2;

DEST_NAME STATUS ERROR
---------
LOG_ARCHIVE_DEST_1 VALID
LOG_ARCHIVE_DEST_2 VALID

驗證DG端:
SQL> select database_role from v$database;

DATABASE_ROLE

PHYSICAL STANDBY

SQL> select max(sequence#) from v$archived_log;

MAX(SEQUENCE#)

20

SQL> select process,pid,status from v$managed_standby;

PROCESS PID STATUS
---------
ARCH 2400 CONNECTED
ARCH 2402 CONNECTED
ARCH 2404 CONNECTED
ARCH 2406 CONNECTED
RFS 2611 IDLE
RFS 2613 IDLE
RFS 2615 IDLE

7 rows selected.
RFS進程正常,歸檔日誌已經同步oracle

相關文章
相關標籤/搜索