Results 1 to 7 of 7

Thread: ORA-00054 - Resource busy and requires nowait

  1. #1
    Join Date
    Sep 2006
    Location
    Harold Hill, essex
    Posts
    4

    ORA-00054 - Resource busy and requires nowait

    When I run an analyze on one of our schemas , code below:
    BEGIN DBMS_STATS.gather_schema_stats (ownname => 'ISSLIVE', cascade =>true,estimate_percent => dbms_stats.auto_sample_size); END;

    *
    ERROR at line 1:
    ORA-00054: resource busy and acquire with NOWAIT specified


    This job is scheduled to run at 1am and does not coincide with another job. Any reason why I keep getting this? The same code runs without errors in other databases.

    Any suggestions please.

  2. #2
    Join Date
    Nov 2010
    Posts
    5
    Hi,

    is it also when you run it manually ?

    what does the last_analyze column in user_tables says ? did it starts with the statistics-creation ?

    is it possible to analyze single tables with gather_table_stats ?
    when it's possible, create a self genrating script for all tables in the schema and then you will see where the failure appears.

  3. #3
    Join Date
    Nov 2002
    Location
    New Jersey, USA
    Posts
    3,932
    Sounds like one of a table in the schema is locked. Have you tried running it at different time?

  4. #4
    Join Date
    Sep 2006
    Location
    Harold Hill, essex
    Posts
    4
    Hi

    I don't get this error when I run it manually.
    The last_analyzed column for all the tables are not uniform i.e there are different dates suggesting the analyze did not complete.

    I have tried changing the scheduled time but it still reports the same error. I kick the job off at 1am but there is a hot backup scheduled at 4am. I will bring the analyze job forward to 10pm tonight and see if this resolves it.

    I will feedback tomorrow morning.

    Thank you both for taking a look.

    Regards

  5. #5
    Join Date
    Sep 2006
    Location
    Harold Hill, essex
    Posts
    4
    I got the same error again but this was successful when I ran it manually this morning.

  6. #6
    Join Date
    Nov 2010
    Posts
    5
    Okay, you're sure that there's no other job running at the same time ?

    Do you have disabled the automatic stats-job in this instance ?

  7. #7
    Join Date
    Sep 2006
    Location
    Harold Hill, essex
    Posts
    4
    Hi Chris

    I eat my words - I just found out that there is scheduled job for a materialised view refresh at 10pm. I was just checking the nt scheduled jobs but this job is scheduled using the dbms_scheduler. I have brought the analyzed job forward now.

    Thank you for your help.

    Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •