Trigger引起的active dataguard 報error ORA-16191
最近在用duplicate target做備庫時,在應用日誌時報如下錯誤,
FAL[server, ARC3]: FALarchive failed, see trace file.
ARCH: FAL archive failed.Archiver continuing
ORACLE Instance kgdb -Archival Error. Archiver continuing.
Thu Jul 16 11:12:26 2018
Thread 1 advanced to logsequence 5754 (LGWR switch)
Current log# 2 seq# 5754 mem# 0:/u01/11g/oradata/erpdb/redo02.log
Thu Jul 16 11:12:26 2018
Archived Log entry 9957 addedfor thread 1 sequence 5753 ID 0xefbf45c1 dest 1:
Thu Jul 16 11:12:27 2018
Error 1017 received loggingon to the standby
------------------------------------------------------------
Check that the primary andstandby are using a password file
and remote_login_passwordfileis set to SHARED or EXCLUSIVE,
and that the SYS password issame in the password files.
returning error ORA-16191
1)根據報錯檢視remote_login_passwordfile引數,此引數使用的是預設值,不會引起此問題的產生。
歸檔程式報如下:
Waiting for NSA2 [pid 2333]to initialize itself
krsu_start_ns: time appearsto have jumped forwards
Initial buffer sizes: read1024K, overflow 832K, change 805K
*** 2018-07-11 09:25:35.313
Log read is SYNCHRONOUSthough disk_asynch_io is enabled!
Log read is SYNCHRONOUSthough disk_asynch_io is enabled!
*** 2018-07-14 06:28:58.861
Log read is SYNCHRONOUSthough disk_asynch_io is enabled!
無異常報錯。
2)重新重建備庫的密碼檔案:
orapwd file=orapwerpdbpassword=sys ignorecase=y force=y
重新duplicate時同樣產生如上錯誤。
3)重新檢視主庫的警告資訊
只發現如下一個錯誤
errorsin file /u01/11g/diag/rdbms/erpdb/erpdb/trace/kgdb_ora_32350.trc:
ORA-00604:error occurred at recursive SQL level 1
ORA-01422:exact fetch returns more than requested number of rows。
直覺和trigger有關,沒有辦法檢視所有資料庫的trigger並與他們dba確認,發現有一個trigger嫌疑比較大:
TRIGGER SYS.trg_audit_log
AFTER LOGON ON DATABASE
declare
v_program_name varchar2(200);
v_username varchar2(100);
v_ip_address varchar2(18);
begin
selectusername,program,SYS_CONTEXT('USERENV','IP_ADDRESS')
intov_username,v_program_name,v_ip_address
from v$session where AUDSID =SYS_CONTEXT('USERENV', 'SESSIONID');
);
if v_program_name = 'plsqldev.exe' and upper(v_username) in ('')
then
RAISE_APPLICATION_ERROR(-20003,'You arenot allowed to connect to the dat
abase');
end if;
根據錯誤資訊,根據經驗把triggerdisable
alter tiggers sys.TRG_A_LOG DISABLE ;
重新執行duplicate,應用日誌成功。
查相關文件,唯一文件如下:
ORA-16191 ORA-01017 and ORA-16000 shipping the logs to Standby database (文件 ID 2129339.1)
文件解決方案
1.Disable the trigger.
2.Set the below parameter in the Standby database and restart:
_system_trig_enabled=false
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10201716/viewspace-2709151/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11g Active DataGuard初探
- Oracle 11g Active DataguardOracle
- Oracle11gR2 Active DataGuardOracle
- 11g新特性--active dataguard
- 為Active DataGuard的備庫生成statspack報告並實現定時傳送
- Oracle active dataguard ORA-01555Oracle
- oracle11g dataguard完全手冊--failover &active dataguard(完)OracleAI
- oracle 11.2.0.1 rac 的 active dataguard的啟動步驟Oracle
- Oracle 11g Active Dataguard Switchover實驗Oracle
- 【DataGuard】11g 新特性:Active Data Guard
- Oracle 11g rac 的 active dataguard的啟動步驟Oracle
- ORACLE Active dataguard 一個latch: row cache objects BUGOracleObject
- Oracle 12C RAC的單機Standby returning error ORA-16191OracleError
- DG歸檔傳輸報 ORA-16191
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- mysqldump: Error: Binlogging on server not activeMySqlErrorServer
- 通過 rman duplicate 配置Oracle 11g Active DataguardOracle
- Oracle 11gR2 Active DataGuard配置Step By Step(一)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(二)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(三)Oracle
- 由於域名解析引起的dataguard傳輸日誌故障
- oracle 11g active dataguard switch over 對ogg的影響Oracle
- 監控備庫效能,為Active DataGuard的備庫生成statspack報告並實現定時傳送
- 【DataGuard】Oracle 11g DataGuard 新特性之 Active Standby:Real-Time Apply+QueryOracleAPP
- [Dataguard]ORA-16191: Primary log shipping client not logged on standby問題解決client
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- Oracle 11g Data Guard (physical standby - active dataguard) [final]Oracle
- Oracle資料庫由dataguard備庫引起的log file sync等待Oracle資料庫
- sqlnet.ora檔案引起的TNS-00583對dataguard的影響SQL
- 使用RMAN DUPLICATE...FROM ACTIVE DATABASE命令來建立DataGuard物理備庫Database
- Oracle11g active dataguard 是否適合於大資料量操作的系統Oracle大資料
- GoldenGate 不支援從oracle 11g的 active dataguard 目的端進行extractGoOracle
- Sublime修復錯誤【xcrun: error: invalid active developer path… 】ErrorDeveloper
- aix下11gR1下raw racdb搭建asm active dataguard時要注意AIASM
- Oracle11g RAC (ASM) 及Active Dataguard開啟與關閉 [final]OracleASM
- 最簡單的11g Active DataGuard(ADG)搭建配置過程(專案步驟)
- 11g物理standby能夠同時提供恢復及查詢(Active Dataguard)的原理是 ?
- 硬碟開機報錯是什麼原因引起的硬碟