Home > ORA-XXX, SQL Tuning, TroubleShooting > ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired

Today, I try to change a invisible index to visible, I get the following messages

“ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired”. Before 11g, we can only retry and retry until get the resource.

In 11gR, we can change the session to wait for the resource lock by the command below

SQL> ALTER SESSION SET ddl_lock_timeout=40;<- this means that try to lock resource s until ddl_lock_timeout ( 40 sec)

Session altered.

SQL> alter index cmsnews.DATAFEED_NEWS_CONTR_INDEX2 visible;
alter index cmsnews.DATAFEED_NEWS_CONTR_INDEX2 visible
*
ERROR at line 1:
ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired ( after 40 second, still can’t lock the resources)

SQL> / <– retry again, it is ok

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: