查看oracle用户执行的sql语句历史记录
https://www.2cto.com/database/201107/97901.html
select * from v$sqlarea t where t.PARSING_SCHEMA_NAME in ('用户名') order by t.LAST_ACTIVE_TIME desc
用户名需要大写
select * from v$sqlarea t order by t.LAST_ACTIVE_TIME desc
注意 :执行此语句等等一些相关的语句 必须具有DBA 的权限 虽然这条语句很普通 但是需要的时候很管用 能够及时查出一个人执行sql语句情况
其实查出语句跟时间就够了
select dbms_lob.substr(SQL_FULLTEXT), last_active_time from v$sqlarea t
where t.PARSING_SCHEMA_NAME = 'TEST1' and module = 'ticket.exe' order by t.LAST_ACTIVE_TIME desc
浙公网安备 33010602011771号