Unix Technical Forum

DB2 Performance Issue

This is a discussion on DB2 Performance Issue within the DB2 forums, part of the Database Server Software category; --> During the execution a sql query, DB2 generates a temporary file in the temp table space which is over ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 04:21 PM
T.C. Sheng
 
Posts: n/a
Default DB2 Performance Issue

During the execution a sql query, DB2 generates a temporary file in
the temp table space which is over 6Gig. Does anyone know how to
reduce the size of this temporary file? It is possible to reduce its
size by tuning the database configurations?

T.C. Sheng
TCSHENG@SYSVIEW.COM.TW
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 04:21 PM
Philip Nelson
 
Posts: n/a
Default Re: DB2 Performance Issue

On Tue, 09 Dec 2003 03:09:17 -0800, T.C. Sheng wrote:

> During the execution a sql query, DB2 generates a temporary file in
> the temp table space which is over 6Gig. Does anyone know how to
> reduce the size of this temporary file? It is possible to reduce its
> size by tuning the database configurations?
>
> T.C. Sheng
> TCSHENG@SYSVIEW.COM.TW


More likely by tuning the database or rewriting the query.

But we'd need more info - suggest the query SQL and table and index
definitions from describe (the index ones with column details) and the
number of rows in the tables.

Phil


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 04:21 PM
AK
 
Posts: n/a
Default Re: DB2 Performance Issue

T.C. Sheng,

if you post DDL, the query and the plan, you might get some useful advice.
This could be a cross join, for example.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-26-2008, 04:22 PM
T.C. Sheng
 
Posts: n/a
Default Re: DB2 Performance Issue

Philip Nelson <gulfvuk@yahoo.co.uk> wrote in message news:<pan.2003.12.09.12.27.43.600321@yahoo.co.uk>. ..
> On Tue, 09 Dec 2003 03:09:17 -0800, T.C. Sheng wrote:
>
> > During the execution a sql query, DB2 generates a temporary file in
> > the temp table space which is over 6Gig. Does anyone know how to
> > reduce the size of this temporary file? It is possible to reduce its
> > size by tuning the database configurations?
> >
> > T.C. Sheng
> > TCSHENG@SYSVIEW.COM.TW

>
> More likely by tuning the database or rewriting the query.
>
> But we'd need more info - suggest the query SQL and table and index
> definitions from describe (the index ones with column details) and the
> number of rows in the tables.
>
> Phil


This query joins four tables in which three of these tables contain
2.5 million rows and the fourth has 12 million rows. Each table has
only one index base on a single primary key column. Actually, this
query is not complex in any sense, just the result is very large. I
was told that by increase the sort heap might help reduce the size of
the temp file. But, I am not sure how to determine a the sort heap
size "scientifically"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com