DB2 has "Error during transaction or heuristic processing" SQL0998N Reason Code = "15". Subcode = "". SQLSTATE=58005

Hi all,

I am working on a DB2 project and running into this problem. When I run quite a complicated query with joins, I have this exception "Not in a transaction ERROR [58005] [IBM][DB2/NT] SQL0998N  Error occurred during transaction or heuristic processing.  Reason Code = "15". Subcode = "".  SQLSTATE=58005"
I tried to increase the MSDTC timeout time to maximum (3600) as recommended by IBM, but it didnt help. Did any one have idea or solution for this, please give me a hand. Really appreciated.
jjdahlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

momi_sabagCommented:
which version are you using?
0
jjdahlAuthor Commented:
Hi Momi_sabag

I am using version 9

Thanks for your comment
0
momi_sabagCommented:
can you post here the complicated query?
0
Why Diversity in Tech Matter

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference ithrough the Colors of STEM program.

jjdahlAuthor Commented:
Hi momi_sabag,

As company policy, I cannot post the query. However, it is made by inner/left outer join of around 10 tables. Also, I have some fields that are itself sub queries made by other few tables joinning.
SELECT A.a, B.b, C.c ,
(SELECT X.x,Y.y FROM X inner join Y on...where X.a = A.a),
(Select M.m from M inner join on N... where M.c = C.c),...
FROM A INNER JOIN B on ...
INNER JOIN C on ...
INNER JOIN D on ....

I hope this give you some ideas about my query. If I get rid of those sub queries, most likely the error will not happen, so the timeout time reason as IBM DB2's handbook makes sense. But it couldnt help to solve the problem either.

Thanks for any comment.

0
momi_sabagCommented:
well, i guess you better contact ibm then
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jjdahlAuthor Commented:
momi_sabag,

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DB2

From novice to tech pro — start learning today.