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

Thread: ORA-01591: lock held by in-doubt distributed transaction

  1. #1
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865

    ORA-01591: lock held by in-doubt distributed transaction

    Hi All,

    Got a mail from one of the developers that he is getting "ORA-01591: lock held by in-doubt distributed transaction 10.45.34659" error.

    The query he is running is just a simple update query connecting directly to the schema.

    update set =3134 where =1020 I have verified in dba_2pc_pending view and force rollback the transaction with the above ID and the issue is resolved.

    I am trying to understand why the simple update query is showing in distributed transactions? Appreciate your inputs.

    Thanks,
    Last edited by vnktummala; 10-20-2009 at 08:43 AM.
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  2. #2
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    I am sorry, looks like some thing mess-up with my post. Please don't mind.

    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  3. #3
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    ORA-01501 tells affected query found a locked resource - in this case I assume the updated table. Resource was locked by a dead distributed transaction.

    The simple "update" query did not cause the distributed transaction issue - it just happened to bump into a locked table.
    Last edited by PAVB; 10-20-2009 at 08:50 AM.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

  4. #4
    Join Date
    Mar 2006
    Location
    Charlotte, NC
    Posts
    865
    Thanks PAVB.

    Yes, I see some transactions in dba_2pc_table and rolled back those transactions to release the lock. I am trying to find from which dblink / machine those transactions are distributing. If you have some thing on your finger tips please share.

    Thanks,
    Vijay Tummala

    Try hard to get what you like OR you will be forced to like what you get.

  5. 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