x

System Change Numbers (SCN) on 9i, 10g

I want to know how to get the SCN numbers in Oracle 9i and 10g. Please let me know if you have the answer.

more ▼

asked Dec 21, 2009 at 08:51 AM in Default

OracleApprender gravatar image

OracleApprender
771 71 73 75

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

The current SCN can be retrieved by querying the V$DATABASE view.

more ▼

answered Dec 21, 2009 at 10:58 AM

HillbillyToad gravatar image

HillbillyToad
1k 2

Do you have any idea to get the same in the query format ?
Dec 21, 2009 at 12:16 PM OracleApprender
Thank you for your quick response
Dec 21, 2009 at 12:17 PM OracleApprender
you mean like 'SELECT * FROM V$DATABASE'?
Dec 21, 2009 at 12:35 PM HillbillyToad
Yes. I want it in SELECT query format.
Dec 21, 2009 at 01:49 PM OracleApprender
(comments are locked)
10|1200 characters needed characters left

Answer for this question is :

select sys.dbms_flashback.get_system_change_number from dual;

more ▼

answered Dec 22, 2009 at 07:01 AM

OracleApprender gravatar image

OracleApprender
771 71 73 75

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x737
x378

asked: Dec 21, 2009 at 08:51 AM

Seen: 2122 times

Last Updated: Dec 22, 2009 at 11:32 AM