If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > ORA-04021 timeout occurred while waiting to lock object

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-20-02, 05:05
sethu sethu is offline
Registered User
 
Join Date: Feb 2002
Posts: 17
ORA-04021 timeout occurred while waiting to lock object

When executing the oracle procedure which calls a java function I am getting an error ORA-04021 timeout occurred while waiting to lock object .

How to release the lock forcibly to execute the trigger.


Need Help.
Reply With Quote
  #2 (permalink)  
Old 02-20-02, 07:08
astropp astropp is offline
Registered User
 
Join Date: Jan 2002
Location: italy
Posts: 39
You may try to query the view V$ACCESS and see if someone is using the object where you get the lock.

Then you may try to wait them to end their work or KILL them if you own the rights.

another option you can test is to
alter system flush shared_pool

this command clears all the shared pool, so its content needs to be re-created (a performance issue.)

let me know if this works,

astropp
__________________
astropp
Reply With Quote
  #3 (permalink)  
Old 02-20-02, 23:06
sethu sethu is offline
Registered User
 
Join Date: Feb 2002
Posts: 17
Hi Astropp..

..it doesn't Work...Still trying for any other solution...



Regds
Sethu
Reply With Quote
  #4 (permalink)  
Old 02-22-02, 09:39
aviion aviion is offline
Registered User
 
Join Date: Nov 2001
Posts: 25
Do u know which object is being locked, are u trying to
obtain an exclusive lock on a table inside the procedure.
Procedures are pinned in SGA and then a lock is obtained on it
so that it cannot be modified during execution.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On