闪回版本查询

JULIA@aux Dec 25 2013 22:42:35> col phone format 99999999999999
JULIA@aux Dec 25 2013 22:42:46> /

NAME                     PHONE
------------------------------ ---------------
julia1                   18575531877
julia                   18575531878
julia2                   18575531879


JULIA@aux Dec 25 2013 22:40:32> SELECT versions_startscn, versions_starttime,versions_endscn, versions_endtime,versions_xid, versions_operation,name, phone FROM  juliatest
  2  VERSIONS BETWEEN TIMESTAMP
  3  TO_TIMESTAMP('2013-12-25 01:11:00', 'YYYY-MM-DD HH24:MI:SS')
  4  AND TO_TIMESTAMP('2013-12-25 22:40:00', 'YYYY-MM-DD HH24:MI:SS')
  5  WHERE name = 'julia';

VERSIONS_STARTSCN VERSIONS_STARTTIME         VERSIONS_ENDSCN VERSIONS_ENDTIME              VERSIONS_XID       V NAME                      PHONE
----------------- ------------------------------ --------------- ---------------------------------------- ---------------- - ------------------------------ ---------------
     32743176 25-DEC-13 10.38.29 PM                                   0A00140038400000 I julia                18575531878
     32743136 25-DEC-13 10.37.28 PM                                   03001F0010410000 D julia                18575531876
     32743136 25-DEC-13 10.37.28 PM                                   03001F0010410000 D julia                18575531876
     32680098 25-DEC-13 01.37.34 AM         32743136 25-DEC-13 10.37.28 PM              02000800CA400000 U julia                18575531876
     32680098 25-DEC-13 01.37.34 AM         32743136 25-DEC-13 10.37.28 PM              02000800CA400000 U julia                18575531876

Pseudocolumn NameDescription

VERSIONS_STARTSCN

VERSIONS_STARTTIME

Starting System Change Number (SCN) or TIMESTAMP when the row version was created. This pseudocolumn identifies the time when the data first had the values reflected in the row version. Use this pseudocolumn to identify the past target time for Oracle Flashback Table or Oracle Flashback Query.

If this pseudocolumn is NULL, then the row version was created before start.

VERSIONS_ENDSCN

VERSIONS_ENDTIME

SCN or TIMESTAMP when the row version expired.

If this pseudocolumn is NULL, then either the row version was current at the time of the query or the row corresponds to a DELETE operation.

VERSIONS_XID

Identifier of the transaction that created the row version.

VERSIONS_OPERATION

Operation performed by the transaction: I for insertion, D for deletion, or U for update. The version is that of the row that was inserted, deleted, or updated; that is, the row after an INSERT operation, the row before a DELETE operation, or the row affected by an UPDATE operation.

For user updates of an index key, Oracle Flashback Version Query might treat an UPDATE operation as two operations, DELETE plus INSERT, represented as two version rows with a D followed by an I VERSIONS_OPERATION.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值