Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Query consumes 100G of temporary tablespace

Hi,

Twice this week our AIX DB2 server has hit transient full file system which I've traced most recently to a query that starts this way (or at least what's reported).

 with ctx(ctx_uuid) as (select CONTEXT_UUID from REPOSITORY.CONTEXT_MEMBERS where MEMBER_UUID in('_8lNyYNwSEd2pIJ5QVwgQGg', '_E-k30VfXEd6KGeozX9EKiQ')  union  values ('_E-k30VfXEd6KGeozX9EKiQ')) select t1.ITEM_ID, t1.CONTEXT_ID, t1.MODIFIED, t1.STATE_ID, SUM(t1.ID), t1.INTERNAL_STATE, t1.INTERNAL_RESOLUTION, t1.RESOLUTION_DATE,

The temporary tablespace is mentioned in the DB2 diagnostic log.  This condition is a rare occurrence most often triggered by a poor query (e.g. a join of tables w poor or no join criteria along with order by).  The total sql is several hundred characters long, Time of occurrence 17:20 pm so it's not likely to have been the dw stuff. 

Anyone out there recognize this SQL ?



0 votes



One answer

Permanent link
Ok,  I tracked the contributor via those UUID and turns out he was trying to create BIRT report that should have returned 11 items but obviously the query was a bit loose ! =:-o


1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Oct 23 '12, 9:19 a.m.

Question was seen: 5,962 times

Last updated: Oct 26 '12, 10:22 a.m.

Confirmation Cancel Confirm