Feel like I'm the blind leading the blind but here goes..
A third party has some sql stored procs in their Oracle DB querying both Oracle tables and DB2 tables thru a dblink.
In their dev database instance they have no problems running the SPs (multiple procs within one unit of work BEGIN/END). But when trying to run in a different Oracle db instance they are having issues with "ORA2049:timeout: distributed transaction waiting for lock".
Now there seems to be some misunderstandings regarding the commit processing requirements when only doing sql selects. Suggestions made that the procs need to issue commit before and after select statements...
I'm way out of my depth and it shows, but the people doing this seem to know less than I. I'm sat here looking at their job on our as400 doing nothing and they are sitting there waiting for their timeout. Anyone able to shine a light on what might be wrong?
A third party has some sql stored procs in their Oracle DB querying both Oracle tables and DB2 tables thru a dblink.
In their dev database instance they have no problems running the SPs (multiple procs within one unit of work BEGIN/END). But when trying to run in a different Oracle db instance they are having issues with "ORA2049:timeout: distributed transaction waiting for lock".
Now there seems to be some misunderstandings regarding the commit processing requirements when only doing sql selects. Suggestions made that the procs need to issue commit before and after select statements...
I'm way out of my depth and it shows, but the people doing this seem to know less than I. I'm sat here looking at their job on our as400 doing nothing and they are sitting there waiting for their timeout. Anyone able to shine a light on what might be wrong?
Comment