oracle-查询delete日志

SELECT c.username,
         a.program,
         b.sql_text,
         b.command_type,
         a.sample_time
    FROM dba_hist_active_sess_history a
         JOIN dba_hist_sqltext b
            ON a.sql_id = b.sql_id
         JOIN dba_users c
            ON a.user_id = c.user_id
   WHERE     a.sample_time BETWEEN SYSDATE - 5 AND SYSDATE
         AND b.command_type IN (7, 85)
ORDER BY a.sample_time DESC;
select * from v$logfile;
select * from v$sql where sql_text like 'delete%';
select  *  from   v$sqlarea  order  by  first_load_time   desc   ;

猜你喜欢

转载自minyongcheng.iteye.com/blog/2388344