If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DSNDB07 sort space extents

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-03-05, 23:13
chas_dba chas_dba is offline
Registered User
 
Join Date: Sep 2003
Posts: 33
DSNDB07 sort space extents

We are Z/0s DB2 7.1 shop.
For a special purpose i need to extract an output which calls for a join of more than 6 to 7 tables in a batch job. Because for different cluster indexes in the join and some order by clauses, the query going a big sort. We are getting -904 continuously on SORT 4k spaces. Till we get our system people to increase the space is there a way to augment the 4k spaces by providing SORKWK01..n DD cards in the job. Any other suggestions are welcome.

ofcource .. beaking the query into parts is my final resort.
Any help in this is appreciated.

Thanks for the post marcus. Well, the select set is not more than 300 bytes.
ORDER BY clause is required for the purpose of reporting.
__________________
bs

Last edited by chas_dba; 12-04-05 at 22:09.
Reply With Quote
  #2 (permalink)  
Old 12-03-05, 23:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can add sortwork in the JCL for utilities like reorg, etc, but in jobs that execute regular SQL statements that need to create system temporary tables.

Also, if you are joining a lot of tables and the resulting row (or an intermediate row) is greater than 4000 bytes, DB2 may need to create temporary tables with a page size 8K or larger, and you system would need to be configured to support that.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 12-03-05 at 23:31.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On