Home > Ask the Oracle Experts > Questions & Answers > Error trying to rebuild index after cancelled transaction
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Error trying to rebuild index after cancelled transaction

Brian Peasland EXPERT RESPONSE FROM: Brian Peasland

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site
>
QUESTION POSED ON: 10 December 2002
One of the transactions took a longer time than normal, so the user terminated the session (ctrl+alt+del). Now the table has a ROW-X lock. The following are the details of the lock:
 OS User	:	rosemarie
 OS PID	:	396:482
 Oracle User	:	ROSEM
 Oracle ID	:	27
 Lock Type	:	DML
 Lock Held	:	Row-X (SX)
 Lock Requested	:	None
 Status	:	Not Blocking
 Object Owner	:	TOTALPLANT
 Object Name	:	CUS_PRODUCTS
We get the following errors on rebuilding an index on this table:
 
 alter index CUS_PRODUCT_IDX1 rebuild tablespace
 TBSIDX_001
 *
 ERROR at line 1:
 ORA-00054: resource busy and acquire with NOWAIT
 specified
I thank you in advance for any help on this.

>
EXPERT RESPONSE

When the transaction was cancelled, the work that the transaction had done up to that point needed to be rolled back. The longer your transaction ran before cancelling, the longer it will most likely take to roll back completely. Until the transaction has rolled back, a DDL command like ALTER INDEX REBUILD will not be able to obtain the lock that it needs to complete. And this type of command won't wait for the lock to be released either. This is what the ORA-54 error message is telling you. By the time you get this response, your long running transaction should have rolled back. So your ALTER INDEX REBUILD statement should work just fine.

For More Information


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice

HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts