oracle query recently executed SQL statement

View the first 50 records of the sql statement executed by the oracle user (currently, oracle10g is running the query normally, for reference only)

select sql_text,last_load_time from v$sql t where ROWNUM <= 50 order by last_load_time desc;

SELECT * FROM V$SQLAREA T WHERE ROWNUM <= 50 ORDER BY T.LAST_ACTIVE_TIME DESC;

Guess you like

Origin blog.csdn.net/u014698745/article/details/94965104