oracle dataguard 密碼文件錯誤排查


環境主庫rac 11.2 備庫單機11.2:
現象:主庫雙節點其中一個日誌節點文件可以傳到備庫,另外一個節點報密碼文件錯誤:
 
 2019-03-22 10:25:30.445000 +08:00
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
------------------------------------------------------------
PING[ARC2]: Heartbeat failed to connect to standby 'app'. Error is 16191.
2019-03-22 10:25:32.519000 +08:00

查看主庫密碼是否區分大小寫:
SQL> show parameter sec_case_sensitive_logon

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
sec_case_sensitive_logon         boolean     TRUE

因此手動重建密碼文件,注意指定ignorecase=y 忽略密碼驗證時區分大小寫:
orapwd file=orapsid password=password#123 entries=10 force=y ignorecase=y

重建後同步正常,密碼文件錯誤消失,如果不指定ignorecase=y,任然報同樣的錯誤。
oracle 11g默認情況下,密碼文件如果不指定ignorecase的話,會區分大小寫,如果指定ignorecase=y,則Oracle會忽略密碼驗證時密碼的大小寫。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章