SQL> col current_scn format 9999999999999 SQL> select current_scn from v$database; CURRENT_SCN -------------- 6525378448555 SQL> col GET_SYSTEM_CHANGE_NUMBER format 9999999999999 SQL> select dbms_flashback.get_system_change_number from dual; GET_SYSTEM_CHANGE_NUMBER ------------------------ 6525378448442Oracle officially recommends tht if your goal is to obtain an SCN from within an application, then you should use the dbms_flashback.get_system_change_number function.
Minimalistic Oracle contains a collection of practical examples from my encounters with Oracle technologies. When relevant, I also write about other technologies, like Linux or PostgreSQL. Many of the posts starts with "how to" since they derive directly from my own personal experience. My goal is to provide simple examples, so that they can be easily adapted to other situations.
Friday, December 6, 2013
Two different ways to retreive the current System Change Number
Use either of the following methods:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment