How to Get Current SCN for Oracle 10g 11g Database? DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER and V$database

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
There are two ways to get the current scn (System Change Number) for an oracle database.
Method 1
Select current_scn from v$database;
e.g. SQL>  select CURRENT_SCN from v$database;

      CURRENT_SCN
-----------------
   11626841778008
Method 2  
Using DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER function
SQL> select DBMS_FLASHBACK.GET_SYSTEM_CHANGE_NUMBER  from dual;

GET_SYSTEM_CHANGE_NUMBER
------------------------
          11626841778005

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer