DG遠程傳送日誌出現問題,primary手動切換日誌,standby沒有接收到遠端送過來的日誌。
手工歸檔結束後,沒有出現任何錯誤提示,檢查alert文件:
- 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
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
- 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.
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吧。
主備庫上分別重建下密碼文件,一切正常了:
- [oracle@master bdump]$ rm $ORACLE_HOME/dbs/orapwORCL.ora
- [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