Oracle 12C RAC的單機Standby returning error ORA-16191
寒風凌厲大雪節氣的週末凍得出不了門,坐在家中喝熱茶,突然接到朋友從公司打來的電話:為Oracle 12C RAC主庫安裝好的單機standby DB日誌無法和主庫同步報錯ORA-16191
DB版本:Oracle 12.1.0.2 RAC+ single DB (PS:這版本其實不穩定啦)
檢查alert.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
------------------------------------------------------------
FAL[client, USER]: Error 16191 connecting to CMMDB for fetching gap sequence
Sun Dec 09 11:42:34 2018
Errors in file /u01/app/oracle/diag/rdbms/cmmdbs/CMMDB/trace/CMMDB_pr00_18146.trc:
ORA-16191: Primary log shipping client not logged on standby
Sun Dec 09 11:42:44 2018
FAL[client]: Failed to request gap sequence
GAP - thread 2 sequence 788218-788218
DBID 3690862883 branch 928463524
FAL[client]: All defined FAL servers have been attempted.
分析:
此問題通常和remote_login_passwordfile引數,密碼檔案,sys賬號是否有lock等相關
診斷:
1. 檢查remote_login_passwordfile主備庫中均設定為EXCLUSIVE,說明與此無關
2. 檢查sys賬號沒有被lock,說明與此無關
3. 檢查密碼檔案,朋友說:standby中是使用orapwd命令建立。這裡問題就來了 ,12C聯機文件及 文件 ID 1984091.1 中明確指出密碼檔案需求從主庫RAC中pwcopy到備庫。注,12.1以後版本中密碼檔案是所有節點共享的存放在ASM中
If the SSL authentication requirements are not met, then each database must use a remote login password file. In an Oracle Data Guard configuration, all physical and snapshot standby databases must use a copy of the password file from the primary database, and that copy must be refreshed whenever an administrative privilege (
SYSDG
,
SYSOPER
,
SYSDBA
, and so on) is granted or revoked, and after the password of any user with administrative privileges is changed.
If you have stored the password file in an Oracle ASM disk group at the standby database, then you must copy the updated password file from the primary database to the Oracle ASM location at the standby database. See
for information about the ASMCMD
pwcopy
command used to copy an Oracle ASM or database instance password file to a specified location. See
for information about using the
srvctl
utility to modify a database configuration.
處理:
登入RAC主庫重新pwcopy至備庫
1>檢視密碼檔案的地方:
ASMCMD> pwget --dbuniquename CMMDB
+DATA/CMMDB/PASSWORD pwdcmmdb.276.928463387
2>從ASM中將密碼檔案複製到本地OS
ASMCMD> pwcopy --dbuniquename CMMDB +DATA/CMMDB/PASSWORD/pwdcmmdb.276.928463387 /tmp/orapcmmdb
copying +DATA/CMMDB/PASSWORD/pwdcmmdb.276.928463387 -> /tmp/orapcmmdb
ASMCMD-9456: password file should be located on an ASM disk group
3> 從主庫 本地OS scp到備庫
重啟備庫後,主備庫同步redo正常。
至此,問題解決,好了繼續喝茶。。
附: 文件 ID 1984091.1
|
|
12c: Data Guard Physical Standby - Managing password files in a RAC Physical Standby (文件 ID 1984091.1) |
|
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2284681/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- Oracle RAC+DG 調整redo/standby log fileOracle
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- Oracle 12c rac ocr和votedisk管理Oracle
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- Networker恢復oracle rac到單機Oracle
- Trigger引起的active dataguard 報error ORA-16191Error
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(二)Oracle
- oracle 12c rac 詳細部署教程(一)Oracle
- Oracle的快照standbyOracle
- ORACLE 12C RAC 部署應用包準備Oracle
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- ORACLE 12C RAC 生產環境搭建介紹Oracle
- Oracle 12c RAC構築之二:共享磁碟配置Oracle
- Oracle搭建rac到單庫的adgOracle
- oracle 19c&21c 單機/RAC手工清理Oracle
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- 單例項Primary快速搭建Standby RAC參考手冊(19.16 ADG)單例
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)Oracle
- oracle 12C RAC 12.1.0.2 叢集日誌(cluster log)目錄Oracle
- Oracle 12c RAC CSSD程式無法啟動real time模式OracleCSS模式
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- oracle RACOracle
- ORACLE 11.2.0.4 rac for linux 鏈路宕導致的單節點異常當機OracleLinux
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- Oracle RAC Cache Fusion 系列十七:Oracle RAC DRMOracle
- RAC恢復到單機
- 主庫到standby報錯解決:Error 12154 received logging on to the standby ORA-12154Error
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- 私有IP丟失造成Oracle 12C RAC叢集節點不能啟動Oracle
- oracle 12c RAC安裝,例項不能多節點同時啟動Oracle
- 12C RAC 修改監聽埠
- Oracle RAC CacheFusion 系列十五:Oracle RAC CRServer Part TwoOracleServer
- ORACLE RAC clusterwareOracle