GoldenGate, Streams and Distributed Database (MOSC)

MOSC Banner

Downstream mining database archivelog management based on DBA_REGISTERED_ARCHIVED_LOG.purgeable colu

edited Dec 7, 2019 4:02AM in GoldenGate, Streams and Distributed Database (MOSC) 2 commentsAnswered

I have multiple downstream extract for different databases, The source archivelogs are kept out of FRA.

we see the DBA_REGISTERED_ARCHIVED_LOG.purgeable  is not being papulated to "YES", that is failing our purging of archivelogs.

I use following SQL to find out the archivelogs to be deleted.

select trim(r.name)

        FROM DBA_REGISTERED_ARCHIVED_LOG r, DBA_CAPTURE c

        WHERE r.CONSUMER_NAME = c.CAPTURE_NAME

        and r.source_database = c.source_database

        and r.next_scn < (select  min(required_checkpoint_scn) as MINSCN

         from dba_capture D where capture_type='DOWNSTREAM' and D.source_database=C.source_database

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center