oracle streams - how to get last successfully applied scn for crashed apply?
-
31-10-2019 - |
Question
I have a downstream Streams replication set up between Oracle 9i (source) and Oracle 11g (destination). The process is still in developlment stage, so the whole setup is not stable yet.
Sometimes my apply procedure at destination database fails. Say, with a error like this:
APPLY_NAME STATUS RULE_SET_NAME ERROR_MESSAGE
------------------------------ -------- ------------------------------ ----------------------------------------
DWH_APPLY_SUN ABORTED RULESET_APPLY_LCR_SUN ORA-26808: Apply process AS0K died unexp
ectedly.
ORA-25455: evaluation error for rule set
: STRMADMIN.RULESET_APPLY_LCR_SUN, evalu
ation context: SYS.STREAMS$_EVALUATION_C
ONTEXT
ORA-00600: internal error code, argument
s: [knlqany2lcr235], [22629], [ORA-22629
: OCIAnyData is null
], [], [], [], [], [], [], [], [], []
I need to know the last source database SCN it was able to apply before failing.
DBA_APPLY.MAX_APPLIED_MESSAGE_NUMBER
shows me something only in case apply process is stopped normally.
Any ideas?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange