oracle密碼文件後綴名導致Data Guard不能傳送日誌

DG遠程傳送日誌出現問題,primary手動切換日誌,standby沒有接收到遠端送過來的日誌。

手工歸檔結束後,沒有出現任何錯誤提示,檢查alert文件:

 

Sql代碼 複製代碼
  1. Sun Aug  1 23:18:12 2010   
  2. Errors in file /opt/app/oracle/admin/orcl/bdump/orcl_arc0_32525.trc:   
  3. ORA-16191: Primary log shipping client not logged on standby   
  4. Sun Aug  1 23:18:12 2010   
  5. Starting background process QMNC   
  6. Sun Aug  1 23:18:12 2010   
  7. FAL[server, ARC0]: Error 16191 creating remote archivelog file 'ORCL_DG'  
  8. FAL[server, ARC0]: FAL archive failed, see trace file.   
  9. Sun Aug  1 23:18:12 2010   
  10. Errors in file /opt/app/oracle/admin/orcl/bdump/orcl_arc0_32525.trc:   
  11. ORA-16055: FAL request rejected   
  12. ARCH: FAL archive failed. Archiver continuing  
Sun Aug  1 23:18:12 2010
Errors in file /opt/app/oracle/admin/orcl/bdump/orcl_arc0_32525.trc:
ORA-16191: Primary log shipping client not logged on standby
Sun Aug  1 23:18:12 2010
Starting background process QMNC
Sun Aug  1 23:18:12 2010
FAL[server, ARC0]: Error 16191 creating remote archivelog file 'ORCL_DG'
FAL[server, ARC0]: FAL archive failed, see trace file.
Sun Aug  1 23:18:12 2010
Errors in file /opt/app/oracle/admin/orcl/bdump/orcl_arc0_32525.trc:
ORA-16055: FAL request rejected
ARCH: FAL archive failed. Archiver continuing

 

 

 

檢查後臺進程跟蹤文件orcl_arc0_32525.trc

Java代碼 複製代碼
  1. Error 16191 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'ORCL_DG'  
  2. Error 16191 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'ORCL_DG'  
  3. ORA-16191: Primary log shipping client not logged on standby   
  4. *** 2010-08-01 23:31:56.277 58941 kcrr.c   
  5. kcrrfail: dest:2 err:16191 force:0 blast:1  
  6. kcrrwkx: unknown error:16191  
  7. ORA-16055: FAL request rejected   
  8. ARCH: Connecting to console port...   
  9. ARCH: Connecting to console port...   
  10. kcrrwkx: nothing to do (end)   
  11. *** 2010-08-01 23:32:17.142  
  12. kcrrwkx: nothing to do (end)   
  13. *** 2010-08-01 23:33:17.169  
  14. kcrrwkx: nothing to do (end)   
  15. *** 2010-08-01 23:34:17.197  
  16. Redo shipping client performing standby login   
  17. ORA-01017: invalid username/password; logon denied   
  18. OCI_DBVER attribute value retrieval failed error=1017  
  19. *** 2010-08-01 23:34:17.213 60679 kcrr.c   
  20. Error 1017 received logging on to the standby   
  21. ------------------------------------------------------------   
  22. Check that the primary and standby are using a password file   
  23. and remote_login_passwordfile is set to SHARED or EXCLUSIVE,   
  24. and that the SYS password is same in the password files.   
  25.       returning error ORA-16191  
  26. It may be necessary to define the DB_ALLOWED_LOGON_VERSION   
  27. initialization parameter to the value "10".  Check the   
  28. manual for information on this initialization parameter.  
Error 16191 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'ORCL_DG'
Error 16191 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'ORCL_DG'
ORA-16191: Primary log shipping client not logged on standby
*** 2010-08-01 23:31:56.277 58941 kcrr.c
kcrrfail: dest:2 err:16191 force:0 blast:1
kcrrwkx: unknown error:16191
ORA-16055: FAL request rejected
ARCH: Connecting to console port...
ARCH: Connecting to console port...
kcrrwkx: nothing to do (end)
*** 2010-08-01 23:32:17.142
kcrrwkx: nothing to do (end)
*** 2010-08-01 23:33:17.169
kcrrwkx: nothing to do (end)
*** 2010-08-01 23:34:17.197
Redo shipping client performing standby login
ORA-01017: invalid username/password; logon denied
OCI_DBVER attribute value retrieval failed error=1017
*** 2010-08-01 23:34:17.213 60679 kcrr.c
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
It may be necessary to define the DB_ALLOWED_LOGON_VERSION
initialization parameter to the value "10".  Check the
manual for information on this initialization parameter.

 

 

按照提示依次(invalid username/password,ALLOWED_LOGON_VERSION
,remote_login_passwordfile)做了檢查,都沒有問題。

 

最後發現是密碼文件有.ora後綴導致的。應該是orcle不人性的一個地方或者一個bug吧。

 

主備庫上分別重建下密碼文件,一切正常了:

Java代碼 複製代碼
  1. [oracle@master bdump]$ rm $ORACLE_HOME/dbs/orapwORCL.ora   
  2. [oracle@master bdump]$ orapwd file=$ORACLE_HOME/dbs/orapwORCL password=xxxxxx entries=30   
[oracle@master bdump]$ rm $ORACLE_HOME/dbs/orapwORCL.ora
[oracle@master bdump]$ orapwd file=$ORACLE_HOME/dbs/orapwORCL password=xxxxxx entries=30 
發佈了12 篇原創文章 · 獲贊 7 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章