QUOTE:
最初由 biti_rainy 发布
current scn 是 系统当前所产生的最大 scn ,可能是当前未结束事务所产生的scn。 在9i 的 dbms_flashback.get_system_number 可以得到这个值,这个值应该是大于等于 x$ktuxe SCN (这个view 记录的是 当前数据库结束事务的最大scn)
You're right. I forgot about dbms_flashback.get_system_change_number.
I thought I could find out how Oracle got this number internally. I set SQL trace and see Oracle probably got this from one of idl_xxx$ tables, piece column. That "famous" piece column is of type UNDEFINED. I never figured out how to select from that column directly.
Before 9i, asktom tells us we can insert userenv('COMMITSCN') into a table and check its value. (Can't directly select it, got ORA-01725).
Yong Huang