原本有一臺linux服務器安裝oracle單實體,版本是11.2.0.4,用作主庫,后來在另外一臺linux服務器上安裝了資料庫軟體,版本也是11.2.0.4,用作從庫,搭建完成后,復制了主庫的密碼檔案到從庫,然后在主庫上以rman的方式復制主庫實體到從庫,能夠正常獲取到主庫的歸檔日志,查詢gv$database看到主庫的切換狀態是 session active,從庫的切換狀態是 NOT ALLOWED,從庫能夠正常應用主庫的歸檔日志,從庫的RFS行程能夠正常啟動,主庫的LNS行程也能正常啟動,但是運行一段時間之后,主庫會突然出現如下的報錯日志:
Tue Feb 19 14:17:54 2019
******************************************************************
LGWR: Setting 'active' archival for destination LOG_ARCHIVE_DEST_2
******************************************************************
LNS: Standby redo logfile selected for thread 1 sequence 93292 for destination LOG_ARCHIVE_DEST_2
Tue Feb 19 14:17:59 2019
Archived Log entry 4655 added for thread 1 sequence 93291 ID 0x2fe72ffb dest 1:
Tue Feb 19 14:18:00 2019
Error 1017 received logging on to the standby
然后主庫的切換狀態失敗:FAILED DESTINATION,sys的密碼都試過了,從主庫可以以sys密碼登錄到從庫,從庫也可以以相同的sys密碼登錄主庫,tnsping也沒有問題,請各位大佬幫忙分析一下,為什么突然sys密碼就不能用了?
uj5u.com熱心網友回復:
追加主庫的另外一段alert日志: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
------------------------------------------------------------
FAL[server, ARC0]: FAL archive failed, see trace file.
ARCH: FAL archive failed. Archiver continuing
ORACLE Instance bidb - Archival Error. Archiver continuing.
Tue Feb 19 14:18:16 2019
Error 1017 received logging on to the standby
uj5u.com熱心網友回復:
主庫和從庫實體名字一樣嗎uj5u.com熱心網友回復:
如果實體名字不一樣,需要修改密碼檔案。cd $ORACLE_HOME/dbs
mv orapw(sid主) orapw(sid從)
uj5u.com熱心網友回復:
實體名不一樣,檔案名已經修改成了 orapw(sid主) orapw(sid從)uj5u.com熱心網友回復:
那這密碼可以登錄了嗎?uj5u.com熱心網友回復:
基本上可以確定不是密碼的問題,我用相同的密碼從主庫登錄到從庫,從從庫也可以登錄到主庫,而且關鍵是剛剛建立dg時,主庫的日志是可以傳到從庫的,只是在運行了一段時間之后(有長有短,長的3 4天,短的幾個小時),就會報如下錯誤: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
uj5u.com熱心網友回復:
還是密碼檔案的問題吧?uj5u.com熱心網友回復:
已經解決,不是密碼檔案的問題,是主庫使用了登錄觸發器,然后從庫復制了主庫,也有了登錄觸發器,從庫是以read-olny模式啟動的,使用觸發器就會報登錄錯誤,此時主庫再去登陸從庫,就會報密碼錯誤,但是更具體的解釋就不知道了,可能是oracle的bug,也可能是還有什么地方需要配置的,謝謝你的回答轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/51000.html
標籤:基礎和管理
上一篇:Oracle EnterpriseManager性能概要視圖錯誤
下一篇:資料庫值如何替換
