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.
updateset
=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.
10-20-2009, 08:42 AM #2I 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.
10-20-2009, 08:46 AM #3ORA-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.
10-20-2009, 08:58 AM #4Thanks 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.
Click Here to Expand Forum to Full Width