-
hi,
One of my processes,(Daily updation) is taking unusally long time. I checked up in the v$objects_locked. I got the object id on which there is a lock.
I have got the object name(all_objects), It's the same table on which updation happens.
Question is.: how do i know whether this lock is a lock put by any other processes or it's the lock obtained by the table itself for the purpose of DML.
Badrinath
-
Hi,
Yes when u perform any DML action ,Oracle puts 2 types of lock on the object .One at the row level which is a exclusive lock and one at the table level which is a share lock.If another user has put an exclusive lock on the table then ur process has to wait until the lock is released.If u kill the user session which is holding the lock then u can access the object.If u want any further help please be free to write to me at rohitsn@altavista.com
Regards,
Rohit Nirkhe,Oracle DBA,OCP
-
HOw do I know which user/session or process has put a exclusive lock on the object, of my interest.
Badrinath