查询test表DML操作的最后时间的语句:
select max(ora_rowscn),to_char(scn_to_timestamp(max(ora_rowscn)),'yyyy-mm-dd hh24:mi:ss') from test; 查询test表DDL操作的最后时间的语句:
select TO_CHAR(LAST_DDL_TIME,'YYYY-MM-DD HH24:MI:SS') FROM dba_objects where object_name='ACT_COMMISSION';