determine the latest COMMIT operation for the row
来源:互联网 发布:淘宝一周流量分布图 编辑:程序博客网 时间:2024/06/05 12:14
In 10g there is a new pseudocolumn of any table that is not fixed or external. It represents the SCN of the most recent change to a given row, that is, the latest COMMIT operation for the row. For example:
SELECT ora_rowscn, last_name, salary
FROM employees
WHERE employee_id = 7788;
ORA_ROWSCN NAME SALARY
---------- ---- ------
202553 Fudd 3000
The latest COMMIT operation for the row took place at approximately SCN 202553. You can use function SCN_TO_TIMESTAMP to convert a SCN, like ORA_ROWSCN, to the corresponding TIMESTAMP value.
SQL> create table table_test(id number, name varchar2(50));
Table created.
SQL> set time on
16:26:06 SQL> insert into table_test values (1, 'name1');
1 row created.
16:26:27 SQL> commit;
Commit complete.
16:26:30 SQL> insert into table_test values (2, 'name2');
1 row created.
16:26:37 SQL> commit;
Commit complete.
16:26:39 SQL> insert into table_test values (3, 'name3');
1 row created.
16:26:47 SQL> commit;
Commit complete.
16:26:48 SQL> select max(scn_to_timestamp(ora_rowscn)) from table_test;
MAX(SCN_TO_TIMESTAMP(ORA_ROWSCN))
---------------------------------------------------------------------------
23-OCT-08 04.26.47.000000000 PM
16:27:38 SQL>
- determine the latest COMMIT operation for the row
- The latest updating resource for kali-rolling
- Jad - the latest version
- Cheat-Test released the latest modification for Sun 310-200
- How to get the latest FFmpeg binaries for Windows
- Log 分析:Due to heavy load, the latest workflow operation has been queued...
- Work around by " Due to heavy load, the latest workflow operation has been queued. "
- UVA11800 Determine the Shape
- checkio (Determine the order)
- UVA11800 - Determine the Shape
- the Determine in June
- TFS2010问题:unable to determine the workspace for this solution
- The latest CISCO 642-444
- the latest arrival date javascript
- ADT to the latest version
- ERROR 1118 : Row size too large. The maximum row size for the used table type
- How to Determine the Cipher Suite for the Server and Client
- Caused by: java.sql.SQLException: Couldn't perform the operation commit
- 操作系统网络I/O
- opencv学习-0-介绍.doc
- UNIX域函数
- 设置VM虚拟机系统的分辨率
- IE、FireFox、Opera三种浏览器Document对象的方法对比
- determine the latest COMMIT operation for the row
- 答疑时间
- 生活的意义
- 用java免费发送短信
- 编码方式与实现方式
- 网上的公开的webservice
- 学习的平台
- Android将TAB选项卡放在屏幕底部
- IE6 中 window.location.href 不能跳转