DG歸檔傳輸報 ORA-16191
整理文件時,發現生產端和DG端歸檔日誌沒有同步
檢查生產端:
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PRIMARY
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
18
SQL> select dest_name,status,error from v$archive_dest where dest_id=1 or dest_id=2;
DEST_NAME STATUS ERROR
------------------------------ ---------
----------------------------------------------------------------------------------------------------
LOG_ARCHIVE_DEST_1 VALID
LOG_ARCHIVE_DEST_2 ERROR ORA-16191: Primary log shipping client not logged on standby
SQL> show parameter log_archive_dest_2
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_2 string SERVICE=standby arch ASYNC VAL
ID_FOR=(ONLINE_LOGFILES,PRIMAR
Y_ROLE) DB_UNIQUE_NAME=orcl
SQL> show parameter log_archive_dest_state_2
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_dest_state_2 string ENABLE
SQL> show parameter remote_login_passwordfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile string EXCLUSIVE
經查,引數配置均沒問題
檢查DG端;
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
13
SQL> select process,pid,status from v$managed_standby;
PROCESS PID STATUS
--------- ---------- ------------
ARCH 2400 CONNECTED
ARCH 2402 CONNECTED
ARCH 2404 CONNECTED
ARCH 2406 CONNECTED
未發現RFS程式
查alert日誌
[oracle@primary trace]$ tail -f alert_orcl.log |more
returning error ORA-16191
------------------------------------------------------------
Wed Aug 05 16:43:54 2015
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
------------------------------------------------------------
remote_login_passwordfile引數配置,經查沒問題
問題估計在密碼檔案這塊,當初搭建DG時,在主備兩端透過 orapwd file=orapworcl password=oracle 生成
現將DG端密碼檔案刪掉,從生產端scp密碼檔案到DG端,問題解決
[oracle@standby dbs]$ rm -rf orapworcl
[oracle@primary dbs]$ scp orapworcl oracle@192.168.186.88:/u01/app/base/product/11.2.0/db_1/dbs/
oracle@192.168.186.88's password:
orapworcl
100% 1536 1.5KB/s 00:00
驗證生產端:
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PRIMARY
SQL> alter system set log_archive_dest_state_2 = DEFER scope=both;
System altered.
SQL> alter system set log_archive_dest_state_2 = ENABLE scope=both;
System altered.
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
20
SQL> select dest_name,status,error from v$archive_dest where dest_id=1 or dest_id=2;
DEST_NAME STATUS ERROR
------------------------------ ---------
----------------------------------------------------------------------------------------------------
LOG_ARCHIVE_DEST_1 VALID
LOG_ARCHIVE_DEST_2 VALID
驗證DG端:
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
20
SQL> select process,pid,status from v$managed_standby;
PROCESS PID STATUS
--------- ---------- ------------
ARCH 2400 CONNECTED
ARCH 2402 CONNECTED
ARCH 2404 CONNECTED
ARCH 2406 CONNECTED
RFS 2611 IDLE
RFS 2613 IDLE
RFS 2615 IDLE
7 rows selected.
RFS程式正常,歸檔日誌已經同步
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30310891/viewspace-1762280/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- dg歸檔沒有傳輸到備庫
- ADG歸檔不傳輸
- DG 日誌傳輸監控
- Oracle dg歸檔同步失敗Oracle
- DG 主庫丟失歸檔
- oracle DG 日誌傳輸小結Oracle
- DG歸檔日誌缺失恢復
- 物理DG刪除歸檔測試
- 刪除DG歸檔保留5個
- oracle dg 歸檔日誌恢復情況Oracle
- dg 主庫丟失歸檔 解決方案
- 歸檔報錯
- DG歸檔日誌斷檔時間過長如何處理(DG全庫恢復)
- 通過中轉機及ssh rsync 傳輸歸檔檔案進行同步
- Oracle_dg歸檔丟失問題處理Oracle
- DG歸檔自動刪除 & _log_deletion_policy
- rac+dg環境刪除歸檔日誌
- Oracle 10g DG 主庫丟失歸檔Oracle 10g
- dg中備庫歸檔目錄滿了,導致不能接收主庫歸檔檔案
- 什麼是極速檔案傳輸,極速檔案傳輸如何進行大檔案傳輸
- 前端傳輸檔案到後端報錯問題前端後端
- webservice傳輸檔案Web
- scp 傳輸檔案
- sftp 傳輸檔案FTP
- 鐳速傳輸:如何快速傳輸大檔案?
- dg丟失歸檔,使用rman增量備份恢復
- 利用增量備份恢復gap歸檔丟失DG
- Oracle DG standby刪除歸檔的判斷指令碼Oracle指令碼
- 設定 _LOG_ARCHIVE_CALLOUT='LOCAL_FIRST=TRUE' 後是傳輸歸檔 ?Hive
- Oracle DG ORA-16191: Primary log shipping client not logged on standbyOracleclient
- 大檔案如何傳輸,大檔案的傳輸方式有哪些?
- 鐳速傳輸淺談TLS 和檔案傳輸TLS
- 鐳速傳輸:安全檔案傳輸的意義
- 【多檔案自平衡雲傳輸】使用展示 —— 檔案傳輸系統
- 檔案傳輸協議的五種安全檔案傳輸替代方案協議
- 邏輯dg刪除主庫過期歸檔日誌
- rac環境下修改歸檔路徑,並設定遠端傳輸屬性
- Linux 檔案傳輸Linux