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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- rac庫與單機physical standby 之間的switchover
- 使用RMAN duplicate 建立standby資料庫(RAC或單機)資料庫
- Oracle 12c RAC: MGMTDBOracle
- Oracle DG ORA-16191: Primary log shipping client not logged on standbyOracleclient
- oracle 12c 支援級聯 standby dataguardOracle
- Oracle10g RAC配置standbyOracle
- 單機安裝Oracle RAC (zt)Oracle
- 在Oracle 10g下單機Physical StandbyOracle 10g
- 配置 Oracle 10g RAC primary + RAC physical standby dataguardOracle 10g
- 配置 Oracle 10g RAC primary + RAC logical standbyOracle 10g
- Oracle10g_RAC_Standby_MAA 3.0Oracle
- Oracle 12c Rac Set Archive ModeOracleHive
- Oracle 12C RAC DataGuard實戰Oracle
- 深入理解Oracle RAC 12COracle
- 邏輯 rac standby和物理 rac standby的switchover 和 failoverAI
- oracle 動態語句中的returning用法Oracle
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- 搭建windows到linux的oracle 12c physical standby備庫WindowsLinuxOracle
- Networker恢復oracle rac到單機Oracle
- oracle 10g rac轉成單機Oracle 10g
- ORA-16191: Primary log shipping client not logged on standbyclient
- Oracle 12c rac ocr和votedisk管理Oracle
- Trigger引起的active dataguard 報error ORA-16191Error
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- Oracle 12C RMAN Duplicating the Whole RAC CDB to local RAC CDBOracle
- Oracle RAC+DG 調整redo/standby log fileOracle
- Oracle 11g RAC Data Guard 物理standby 建立Oracle
- oracle 10g rac轉成單機5Oracle 10g
- oracle 10g rac轉成單機4Oracle 10g
- oracle 10g rac轉成單機3Oracle 10g
- oracle 10g rac轉成單機2Oracle 10g
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(一)Oracle
- oracle 12c rac 詳細部署教程(二)Oracle
- RedHat6.5 安裝Oracle 12c RACRedhatOracle
- Config server pool in oracle 12c racServerOracle
- Oracle RAC Standby 恢復歸檔numuber錯亂Oracle