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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle dataguard報錯:Error 1017 received logging on to the standbyOracleError
- mysqldump: Error: Binlogging on server not activeMySqlErrorServer
- [20221227]a mutating table error without a trigger!.txtError
- Oracle 12C RAC的單機Standby returning error ORA-16191OracleError
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)ErrorDeveloper
- mac xcrun: error: active developer path 解決方法MacErrorDeveloper
- Oracle資料庫由dataguard備庫引起的log file sync等待Oracle資料庫
- Oracle 19C CBD Active DataGuard Standby passwd file 注意事項 ORA-01017Oracle
- ORA-00600: internal error code, arguments: [kzsrsea] DataGuard環境的異常Error
- Mysql TriggerMySql
- spring.profiles.active=@profiles.active@的含義Spring
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- Test Oracle triggerOracle
- SqlServer 2005 TriggerSQLServer
- jenkins trigger by timeJenkins
- [Active Learning] Multi-Criteria-based Active Learning
- 【DATAGUARD】Oracle Dataguard nologging 塊修復Oracle
- 【Dataguard】DataGuard運維注意事項運維
- 【Dataguard】Oracle多租戶環境對Dataguard的影響Oracle
- 硬碟開機報錯是什麼原因引起的硬碟
- Oracle trigger問題Oracle
- Oracle DataGuard FAL[client, ARC2]: Error 16191 connecting to 問題處理過程記錄OracleclientError
- Oracle 11.2.0.4 physical dataguard和snapshot dataguard切換Oracle
- 【DATAGUARD】Oracle Dataguard體系架構詳解Oracle架構
- 【DATAGUARD】Dataguard遠端同步配置最佳實踐
- Active Record Associations
- 資料檔案Resize引起的ORA-03297報錯
- 禁止oracle表的觸發器triggerOracle觸發器
- trigger+lob+ora-22275
- WPF TryFindResource typeof Setter Trigger
- [擴充套件] hieu-le active 判斷導航元素的 active 狀態套件
- 【DATAGUARD】Oracle19c dataguard新特性及部署Oracle
- CXF 在WAS上報Unmarshalling Error的問題Error
- 【Azure API 管理】解決API Management新增AAD Group時遇見的 Failed to query Azure Active Directory graph due to error 錯誤APIAIError
- PHAsset fetchAssetsInAssetCollection 報 malloc_errorError
- ORA-01031 CREATE TRIGGER ON DATABASEDatabase
- ubuntu下pig報錯ERROR 2999: Unexpected internal error. Failed to create DataStorage的解決UbuntuErrorAIAST
- 【DATAGUARD】Oracle Dataguard物理備庫切換最佳實踐(sqlplus)OracleSQL