473,473 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ora04021:timeout occurred while waiting to lock object ...

hi,
when i run this sql,i got this error
SQL> grant all on raw_ptptn_data to unitem_role;
grant all on raw_ptptn_data to unitem_role
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
SHAHRUL.RAW_PTPTN_DATA

I try few times, but failed.

I had check my shared_pool_size and java_pool_size, 80 meg
respectively.

when i check v$lock, i got this:
SQL> select * from v$lock;

ADDR KADDR SID TY ID1 ID2 LMODE REQUEST
CTIME BLOCK
-------- -------- --------- -- --------- --------- --------- ---------
--------- ---------
5633A26C 5633A27C 2 MR 202 0 4 0
3317 0
5633A0A4 5633A0B4 2 MR 201 0 4 0
4753256 0
5633A058 5633A068 2 MR 18 0 4 0
4753256 0
5633A00C 5633A01C 2 MR 17 0 4 0
4753256 0
56339FC0 56339FD0 2 MR 16 0 4 0
4753256 0
56339F74 56339F84 2 MR 15 0 4 0
4753256 0
56339F28 56339F38 2 MR 14 0 4 0
4753256 0
56339EDC 56339EEC 2 MR 13 0 4 0
4753256 0
56339E90 56339EA0 2 MR 12 0 4 0
4753256 0
56339E44 56339E54 2 MR 11 0 4 0
4753256 0
56339DF8 56339E08 2 MR 10 0 4 0
4753256 0
56339DAC 56339DBC 2 MR 9 0 4 0
4753256 0
56339D60 56339D70 2 MR 8 0 4 0
4753256 0
56339D14 56339D24 2 MR 7 0 4 0
4753256 0
56339CC8 56339CD8 2 MR 6 0 4 0
4753256 0
56339C7C 56339C8C 2 MR 5 0 4 0
4753256 0
56339C30 56339C40 2 MR 4 0 4 0
4753256 0
56339BE4 56339BF4 2 MR 3 0 4 0
4753256 0
56339B98 56339BA8 2 MR 2 0 4 0
4753256 0
56339B4C 56339B5C 2 MR 1 0 4 0
4753256 0
56339A68 56339A78 3 RT 1 0 6 0
4753259 0

ADDR KADDR SID TY ID1 ID2 LMODE REQUEST
CTIME BLOCK
-------- -------- --------- -- --------- --------- --------- ---------
--------- ---------
56339938 56339948 4 XR 4 0 1 0
4753261 0
56339AB4 56339AC4 5 TS 2 1 3 0
4753253 0
I dun know how to read.

no row return from V$locked_object.
please advise!TQ
regards,
tracy
Jul 19 '05 #1
1 34785
tr********@yahoo.com.hk (tracy) wrote in message news:<5c**************************@posting.google. com>...
hi,
when i run this sql,i got this error
SQL> grant all on raw_ptptn_data to unitem_role;
grant all on raw_ptptn_data to unitem_role
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object
SHAHRUL.RAW_PTPTN_DATA
...
no row return from V$locked_object.


Hi, tracy,

Check dba_ddl_locks or dba_lock_internal. Tom Kyte's book talks about
dba_ddl_locks. Or check x$kgllk. A look at v$session_wait for library
cache locks waits and matching the library object handle with
x$kglobj.KGLHDADR can also tell you the session that holds the locks.

v$lock and v$locked_object only shows enqueue locks, not library cache
locks.

If you post your message to comp.databases.oracle.server, you'll get
an answer faster.

Yong Huang
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: tracy | last post by:
hi, when i run this sql,i got this error SQLgrant all on raw_ptptn_data to unitem_role; grant all on raw_ptptn_data to unitem_role * ERROR at line 1: ORA-04021: timeout occurred while waiting...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.