Oracle - Last slow commands in database
There are a lot of ways to monitor Oracle Database.
With the select below you can list the SQL, time, and other informations of your slowly transactions.
With the select below you can list the SQL, time, and other informations of your slowly transactions.
select v.SQL_TEXT,
v.PARSING_SCHEMA_NAME,
v.FIRST_LOAD_TIME,
v.DISK_READS,
v.ROWS_PROCESSED,
v.ELAPSED_TIME,
v.service
from v$sql v
where
to_date(v.FIRST_LOAD_TIME,'YYYY-MM-DD
hh24:mi:ss')>ADD_MONTHS(trunc(sysdate,'MM'),-2)
and PARSING_SCHEMA_NAME not in ('SYS',
'SYSTEM');
Comments
Post a Comment