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!

oracle locks

653696Feb 5 2012 — edited Feb 5 2012
I have gone thruough oracle documentation(http://docs.oracle.com/cd/B10500_01/server.920/a96524/c21cnsis.htm#2641) regarding the lock mechanism and have understood that
Select * from hr.locations for update;
should acquire RS table lock and X row lock on hr.locations.

But When I execute the below statement to check it:
Select Session_id SID,lock_type,mode_held from dba_locks where session_id =147;
I am getting the below output:
SID     Lock_type    mode_held
147	AE	        Share
147	DML          	Row-X (SX)
147	Transaction	Exclusive
i.e it is acquiring Row exclusive lock.

Please clarify my doubt and also I wasnt able to understand about AE lock_type.

VERSION:Oracle Database 11g Enterprise Edition Release 11.1.0.7.0

Thanks

Edited by: user650693 on 05-Feb-2012 12:01
This post has been answered by Jonathan Lewis on Feb 5 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 4 2012
Added on Feb 5 2012
4 comments
722 views