关于 flashback_transaction_query 中的start_scn为0
发布时间:2020-12-15 17:56:30 所属栏目:百科 来源:网络整理
导读:flashback_transaction_query 中的start_scn为0 这个现象为什么会出现,0代表什么意思啊,有timestamp,但没有scn,这样很不方便定位啊,毕竟同一时间发生的事太多了。 以下是现象 SQL select q.start_scn,q.start_timestamp,q.commit_scn,q.commit_timestam
flashback_transaction_query 中的start_scn为0 这个现象为什么会出现,0代表什么意思啊,有timestamp,但没有scn,这样很不方便定位啊,毕竟同一时间发生的事太多了。 以下是现象 SQL> select q.start_scn,q.start_timestamp,q.commit_scn,q.commit_timestamp 2 from flashback_transaction_query q where logon_user='BJKW_NCC' 3 ; START_SCN START_TIMESTAMP COMMIT_SCN COMMIT_TIMESTAMP ---------- -------------------------------------------------- ---------- -------------------------------------------------- 0 2010-5-12 15:03:32 8504458945 2010-5-12 15:01:23 0 2010-5-12 15:03:32 8504458945 2010-5-12 15:01:23 0 2010-5-12 15:03:32 8504458945 2010-5-12 15:01:23 8504455780 2010-5-12 13:54:46 8504455782 2010-5-12 13:54:49 8504455780 2010-5-12 13:54:46 8504455782 2010-5-12 13:54:49 0 2010-5-12 14:53:47 8504458580 2010-5-12 14:52:47 0 2010-5-12 14:53:47 8504458580 2010-5-12 14:52:47 7 rows selected 这个解决方法,还可以 用 select timestamp_to_scn(to_timestamp('2009-10-23 14:17:04','yyyy-mm-dd hh24:mi:ss')) from dual; 可以转换时间与scn,用这个函数。
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |