Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Finding the last committed transaction using auditdb

25 views
Skip to first unread message

Steve

unread,
Apr 7, 2022, 1:34:03 AM4/7/22
to
Hi folks

Is my understanding correct that auditdb will only show committed transactions?

That is, it will not show transactions in the journal which are yet to be committed? For example, transactions which begin in one journal and end in a subsequent journal.

Trying to understand how I find the last committed transaction in case of a failover.

Thanks
Steve

Roy Hann

unread,
Apr 7, 2022, 8:57:37 AM4/7/22
to
Steve wrote:

> Hi folks
>
> Is my understanding correct that auditdb will only show committed
> transactions?

That is its default behaviour, yes.

> That is, it will not show transactions in the journal which are yet to
> be committed? For example, transactions which begin in one journal and
> end in a subsequent journal.
>
> Trying to understand how I find the last committed transaction in case
> of a failover.

If you have replicated iiacp.log as well as the journals iiacp.log will
show you when the archiver last ran. (It is possible the archiver has
been configured to run at timed intervals though (cp_timer), so you may
need to read the log carefully to discover when it last found something
to journal.)

Alternatively if the timestamp on the journal file is preserved you can
tell when it was last written.

You can then run auditdb with the -b flag specifying a time just before
the last archive cycle. You will probably only need to go back a
few seconds.

Roy


0 new messages