Database Administration (MOSC)

MOSC Banner

How to Retrieve the Current SCN

edited Nov 10, 2008 5:24PM in Database Administration (MOSC) 2 commentsAnswered
Hi Expert 

Under an Oracle session in Oracle10g, I want to retrieve the SCN value for each transaction or request.

For a logical transaction involving any row change or row lock, it implies the start of a logical transaction. It is possible to retrieve the current SCN value from V$TRANSACTION view.

But for a request purely involving SQL statements only, it cannot refer to V$TRANSACTION view.

Will a unique SCN be assigned for SQL statement execution? If yes, how to get the SCN value?

If a session continually execute several SQL statements, does it use the same SCN while SQL execution?

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