473,411 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

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 34780
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.