Hi,
In my Development database, there is a SYS related query that is taking huge amount of time. It slows down the entire database. It is this sql:
SELECT TO_CHAR (CURRENT_TIMESTAMP AT TIME ZONE 'GMT',
'YYYY-MM-DD HH24:MI:SS TZD')
AS curr_timestamp,
COUNT (db_user) AS failed_count
FROM sys.dba_common_audit_trail
WHERE action BETWEEN 100 AND 102
AND returncode != 0
AND extended_timestamp >=
CURRENT_TIMESTAMP - TO_DSINTERVAL ('0 0:30:00');
The AWR report shows that it is run by this Module: Oracle Enterprise Manager.Metric Engine
It took 73,980.28 seconds for a single execution!! I can't even run a count on this table; sys.dba_common_audit_trail
I am not aware of what can cause this issue and will be thankful for suggestion on it.
Thanks,
OrauserN