Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AWR report : enq: TM - contention

886282Dec 23 2013 — edited Dec 23 2013

Version: Oracle 10g

Hi I got a awr report with the below top 5 timed events , and I found that enq: TM-contention is happening on tables , but I want to know exactly which are those perticular tables in the

awr report that are giving this avg wait times in the below report.

Top 5 Timed Events

EventWaitsTime(s)Avg Wait(ms)% Total Call TimeWait Class
enq: TM - contention39,056114,6302,93584.4Application
CPU time18,54513.7
db file sequential read682,8347721.6User I/O
log file parallel write54,6363587.3System I/O
log file sync35,1672728.2Commit

When I try to find out in the schema that which are the tables does not have the index on the foreign keys then I found lot many tables,

with the below query around 1400 records, hence first I want to know which is the main culpript in my awr report which I took when the issue of slowness happend from DBA.

SELECT * FROM (

SELECT c.table_name, cc.column_name, cc.position column_position

FROM   user_constraints c, user_cons_columns cc

WHERE  c.constraint_name = cc.constraint_name

AND    c.constraint_type = 'R'

MINUS

SELECT i.table_name, ic.column_name, ic.column_position

FROM   user_indexes i, user_ind_columns ic

WHERE  i.index_name = ic.index_name

)

ORDER BY table_name, column_position;

I am little new to understanding awr report , please help me out.

This post has been answered by Jonathan Lewis on Dec 23 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 20 2014
Added on Dec 23 2013
1 comment
975 views