Page 1 of 1

The execution of the query will not be atomic

Posted: Wed Apr 16, 2014 12:19 pm
by anu123
I am trying to perform Delete statement on DB2 (on mainframe).

Job Design.

Dataset -> Xfmr -> DB2 CONNECTOR

I am deleting based on PK ID. I am getting a message as mentioned below.

The execution of the query will not be atomic because the database server does not support atomic operations for non-insert queries

The job is taking forever and not deleting any records. How can I solve the issue.

Posted: Wed Apr 16, 2014 12:32 pm
by chulett
I would suggest talking to your DBA. Here is an explanation of that error.

Re: The execution of the query will not be atomic

Posted: Wed May 14, 2014 7:21 am
by anu123
It is solved as there is FK relationship on the table to itself and it is entering loop. That FK is not indexed. But after indexing it it is resolved.