Can Oracle's default object lock timeout be changed?

为君一笑 提交于 2019-12-06 02:16:33

问题


> ALTER PACKAGE blah COMPILE;
(wait about 10 minutes)
> ORA-04021: timeout occurred while waiting to lock object

I understand why I get the timeout error (the package is in use).

Does anyone know if there's a way to change the default 10 minute wait interval? Can this be configured at a database / session / statement level?

Thanks


回答1:


there is a DDL_LOCK_TIMEOUT parameter since 11gR1 :

DDL_LOCK_TIMEOUT specifies a time limit for how long DDL statements will wait in a DML lock queue. The default value of zero indicates a status of NOWAIT. The maximum value of 1,000,000 seconds will result in the DDL statement waiting forever to acquire a DML lock.

I'm not sure you can change the default timeout in the previous releases.



来源:https://stackoverflow.com/questions/1398685/can-oracles-default-object-lock-timeout-be-changed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!