Skip to Main Content

Oracle Database Discussions

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!

enq tm contention on online shrinking

AlleTAug 14 2012 — edited Aug 16 2012
Hi,
I am on 10.2.0.4. I can't clearly understand what's going on in this situation.

I have a table T with an index T_IDX.

Session 1: alter index T_IDX shrink space
Session 2: insert into T select * from ...
Session 3: update T set ....

When I execute these actions I see session 2 performing I/O while sessions 2 and 3 wait on enq - TM contention.

i understand that session 2 is blocked by session 1 as it has to access the newly inserted blocks of the index. But why the update is blocked? It does not access the newly inserted rows as they are not committed.

If I stop the shrinking the locks will disappear.

Any help appreciated

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2012
Added on Aug 14 2012
5 comments
468 views