Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

SherrieKAug 15 2013 — edited Aug 20 2013

In development, there are two MVs that sometimes tromp on each other.  One MV is actively in development, the other is scheduled to refresh hourly.  The hourly refresh is used in the MV in development. 

When the scheduled MV refreshes successfully, it's in less than a minute.  If there is contention, I see enq: JI - contention  as a wait event.  It waits for hours before failing with the ORA-54 error. 

What I'd like is when the scheduled MV kicks off, if there is contention, fail right now.  I'm confused because I thought the default was NOWAIT, which would mean just that - don't wait.  I tried using DDL_LOCK_TIMEOUT but that's not what I want, and it doesn't make a difference.

This MV has these characteristics:

COMPRESS FOR DIRECT_LOAD OPERATIONS

NOPARALLEL

BUILD IMMEDIATE

REFRESH FORCE ON DEMAND

WITH PRIMARY KEY

ENABLE QUERY REWRITE

Does anyone know of a way to make this error immediately if it can't refresh?

Sherrie

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2013
Added on Aug 15 2013
3 comments
1,117 views