DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: ora-00054????

  1. #1
    Join Date
    Oct 2006
    Posts
    11

    Angry ora-00054????

    hi do anybody know where is mistake ???
    the procedure has problem with truncate table

    ora - 00054: resource busy and acquire with NOWAIT specified
    ora - 06512 at "POVAPSYS.HMAN_P_REFRESH", line 6
    ora - 06512 at "POVAPSYS.POVAPSYS", line 6
    ora - 06512 at line 1


    this is my procedure....

    AS
    BEGIN
    execute immediate 'TRUNCATE TABLE hman_t_max';
    INSERT INTO hman_t_max SELECT * FROM hman_v_max;
    COMMIT;

    END;

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    you cant truncate it if someone is using it

  3. #3
    Join Date
    Oct 2006
    Posts
    11

    Question how to solve it

    hi yes it could be that someone else use it but how to solve this problem i read that i can use delete instead of truncate, or is there some possibility lock table before truncate it and then unlock it??

  4. #4
    Join Date
    Nov 2001
    Location
    UK
    Posts
    152
    Delete is a lot slower than truncate and wouldn't work any better if someone is holding update locks on the table. The only real option is to identify who is locking the table and kill their session.

Posting Permissions

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


Click Here to Expand Forum to Full Width