ORA-01591 - oracle delete data from remote sql server table

风格不统一 提交于 2019-12-11 16:57:39

问题


Using a heterogenous connection from Oracle 11gr2 to Sql Server 2005, we are trying to fetch data. While fetching in a loop, if we don't commit after inserting the data to Oracle, and try to delete the data at Sql Server this error occurs :

ORA-01591: kilit belirsiz dağıtılmış 3.10.5910 işlemi tarafından tutuluyor

This problem keeps on going until re-creating the table. We would be very happy to hear if any logical, humanistic approach exists?


回答1:


the real answer is at http://download.oracle.com/docs/cd/B14117_01/server.101/b10739/ds_txnman.htm, connecting as sys , doing FORCE COMMIT 'tranid' etc. is explained there. But in my case, it didn't work. As a dirty resolution I truncated the table , if there was no data waiting to be commited and that locks the delete operation, there wouldn't be any - temporarly- problem , I thought. TRUNCATE TMP_CUSTOMER is my - dirty - solution to this. Please do not hesitate to answer because it is a temp solution, also some good advice on distr. transactions would be good too.



来源:https://stackoverflow.com/questions/4752984/ora-01591-oracle-delete-data-from-remote-sql-server-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!