OGG缺失日志导致进程中断
有时候ogg出现中断,日志里会提示如下错误信息:
ERROR OGG-00868 Oracle GoldenGate Capture for Oracle, eprisk.prm: Error code 1291, error message: ORA-01291: 缺失日志文件
(Missing Log File WAITING FOR REDO: FILE NA, THREAD 2, SEQUENCE 290359, SCN 0x0000002c59bd0176. Read Position SCN: 44.1505736448 (190484297472))
在这种情况下,是因为日志出现了gap,但好消息是通常我们都有这些归档日志的备份。
OGG通过dba_registered_archived_log
里提到的logfile来进行redo日志的挖掘,因此我们需要确定出基于SCN号所需要的所有归档日志(参考 ‘Minimum Archive Log Necessary to Restart Integrated Extract’ - in the Streams’ Healthcheck report output (Note 1448324.1))。
- 查询抽取进程的当前中断时的APPLIED_SCN