I have a situation where a developer's code does the following:
1. Declare temp table
2. Insert data into temp table (no commit).
3. Using common table expressions and lots of joins, a long running query is run.
Now the part I'm not sure about. Several hours into the long running query, I get a SQL0965C transaction full msg pointing to this process. This process is only running a select statement at this point. My question is would this process be pointed to by db2 as the culprit, even though it only had a small number of inserts before the select statement, but didn't do a commit for about 2 hours? If this is now the case, why would I get a SQL0965C on a process performing a select statement (a long running query). I would expect to run out of temp space in this case.
DB21085I Instance "db2inst3" uses "64" bits and DB2 code release "SQL09053"
with level identifier "06040107".
Informational tokens are "DB2 v9.5.0.3", "special_22945", "U818976_22945", and
Fix Pack "3".
Product is installed at "/cs/IBM/db2/V9.5".
Thanks