kayhan yüksel
kayhan yüksel

Reputation: 378

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

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?

Upvotes: 0

Views: 1739

Answers (1)

kayhan yüksel
kayhan yüksel

Reputation: 378

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.

Upvotes: 2

Related Questions