Database Administration (MOSC)

MOSC Banner

Odd behaviour of queries over database link with dbms_flashback in logon trigger

edited Oct 13, 2010 2:25AM in Database Administration (MOSC) 7 commentsAnswered
We have a setup such that users have a choice of seeing live data, or data as at end of business day the previous day. For the historic data, this is achieved using a logon trigger, which checks whether the connection is to a particular service.
If it is, then we use dbms_flashback.enable_at_time to set the session to query at the appropriate date/time.
This is all in the same database (undo retention is set to >1 day to allow it)

This works fine, except for certain operations over a database link to the system.

E.g. where "direct" is a link to the "live" data (i.e. no flashback enable), "flashback" is a link to the service which triggers flashback (in this case to 4-Oct-2010 00:00)

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