ORA-40210 time-out occ…
来源:互联网 发布:淘宝账户能注销吗 编辑:程序博客网 时间:2024/06/05 08:00
***Checked for relevance on 14-Aug-2012***
Problem Description
-------------------
or dropping a the same (DROP PACKAGE ...) causes the application tohang
(ie: SQL*Plus hangs after submitting the statement). EventuallyORA-4021 errors
occur after the timeout (usually 5 minutes).
Error:
Text:
-----------------------------------------------------------------------------
Cause:
Action: Retry the operation later.
Solution Description
--------------------
V$ACCESS view.
SELECT * FROM v$access WHERE object = '';
Where is the package name (usually in alluppercase).
returned, then the package is already locked and cannot be droppeduntil the
lock is released.
locked. You can then use this to find out which session hasobtained the lock.
this happens, the lock will not be releaseimmediately.
clean up the lock might take some time. The fastest way to clean upthe lock
is to recycle the database instance.
issuing the CREATE OR REPLACE or DROP statment, you will need to dofurther
analysis see where the hang is occuring. A starting point is tohave a
look in v$session_wait, see the referenced NOTE.61552.1 for how toanalyze hang
situations in general
Solution Explanation
--------------------
Consider the following example:
Session 1:
create or replace procedure lockit(secs in number) as
shuttime date;
begin
end;
/
show err
begin
-- wait 10 minutes
end;
/
Session 2:
create or replace procedure lockit as
begin
end;
/
Result: hang and eventually (the timeout is 5 minutes):
create or replace procedure lockit as
*
ERROR at line 1:
ORA-04021: timeout occurred while waiting to lock object LOCKIT
Session 3:
connect
col owner for a10
col object for a15
select * from v$access where object = 'LOCKIT';
Result:
---------- ---------- ---------------------------------------
select sid, event from v$session_wait;
Result:
--------------------------------------------------------------------------
...
In the above result, the blocking sid 9 waits for nothing whilesession 12, the
hanging session, is waiting for event library cache pin.
References
----------
Note.169139.1
Note:1071378.6
NOTE.61552.1
Additional Search Words
-----------------------
hang CREATE OR REPLACE PACKAGE BODY DROP recreate PL/SQL plsqlPROCEDURE
FUNCTION
- ORA-40210 time-out occ…
- OPP time out 问题
- 如何处理ORA-27102: out of memory…
- Reading time : Cognitive Radio :…
- resource is out of sync with t…
- ORA-16014,接着 …
- Error: ORA-1505…
- ORA-03137: TTC …
- ORA-00700: soft internal error, …
- C++ typeid: find out type in rea…
- mysql:Commands out of…
- How to get Time Separator in Jav…
- Maximum execution time…
- Update Progress(Time o…
- 关于Time Drift Detecte…
- ORA-02778 : Name given for the l…
- Common Trouble Solution--FRA OUT…
- Lesson 33 Out of&…
- 异步调用解决winform窗体假死
- WARNING Inbound Connec…
- Oracle等待事件: resmgr:cpu quant…
- OpenSSL工具生成根证书与应用证书
- 关于SQLSERVER SQL性能优化
- ORA-40210 time-out occ…
- 使用Catalog命令注册RMAN备份集
- 面试题------全排列的非递归和递归实现(含重复元素)
- ORA-12709: error while…
- 由于 ORA-20100: 错误:&…
- RMAN-08591: WARNING: i…
- Android 错误汇总
- Device Checks for&nbsp…
- hdu 5974 A Simple Math Problem