Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> how to unlock a object?

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: how to unlock a object?
 vikhardba  Posted: Nov 28, 2007 02:49:17 PM

 Total Post: 85
 Joined: Apr, 2007






 Hi All,

owner=A and table=abc
user unable to access a 'abc' object because it is locked . . may be due to following command:

lock table abc in exclusive mode;

How to i unlock the above mentioned object?


 Murtuja
Posted: Nov 28, 2007 11:34:18 PM  

 Total Post: 814
 Joined: Jan, 2006






 
The lock is released:

When the unit of work ends, unless the unit of work is ended by a COMMIT HOLD or ROLLBACK HOLD
When the first SQL program in the program stack ends, unless CLOSQLCSR(*ENDJOB) or CLOSQLCSR(*ENDACTGRP) was specified on the CRTSQLxxx command
When the activation group ends
When the connection is changed using a CONNECT (Type 1) statement
When the connection associated with the lock is disconnected using the DISCONNECT statement
When the connection is in the release-pending state and a successful COMMIT occurs


You can end the transaction by commit or rollback and also you can kill the session locking your table.


 MOH_DBA
Posted: Nov 29, 2007 12:46:40 PM  

 Total Post: 124
 Joined: Nov, 2007






 
You Can simply issue rollback or commit, statement.

 vikhardba
Posted: Dec 04, 2007 11:38:46 PM  

 Total Post: 85
 Joined: Apr, 2007






 
Thanks for the response. However, without disconnecting/killing the session, i would like to unlock the table.

NOTE: Even if commit or rollback, the object is locked. Now what?

 MOH_DBA
Posted: Dec 06, 2007 07:08:15 AM  

 Total Post: 124
 Joined: Nov, 2007






 
I use oracle 10g release 2 and i test it and the lock was released.

any lock that happended to any object, the first movement you must do to issue a commit or rollback then kill session. the commit and rollback show worked, it work with me.

check if the lock is not from another session you miss.

 vikhardba
Posted: Dec 11, 2007 04:10:54 AM  

 Total Post: 85
 Joined: Apr, 2007






 
Thanks for your response.

 MOH_DBA
Posted: Dec 11, 2007 03:17:18 PM  

 Total Post: 124
 Joined: Nov, 2007






 
I hope i resolve your problem that it is what i care most.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi242
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software