Oracle GoldenGate extract recovery (Missing archivelogs)
Issue description:
The issue occurs when archive logs that are needed by Oracle GoldenGate extract gets deleted. For example this can happen when purging old archive logs using RMAN with “force” option.
RMAN is integrated with OGG so under normal circumstances RMAN never deletes an archive log that is required by OGG extract.
But with “force” option it does delete archive logs required by OGG extract. Although it is certainly not the best practice to use “force” option while purging old archive logs,
however accident do happen. This post illustrates the steps needed to recover from such situation.
Example:
The error in the Oracle GoldenGate extract report file looks similar to the following example
ERROR OGG-00868 Error code 1291, error message: ORA-01291: missing logfile
(Missing Log File WAITING FOR DICTIONARY REDO. Read Position SCN: 0.46921993 (46921993)).
1) Find out the archive logs (and the range) that the extract is complaining about. Let’s say the extract is complaining about SCN number 46921993.
Find out which archive log that SCN number belongs to.