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 > Reorg restart at sort

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-07, 14:58
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
Reorg restart at sort

Hi,

DB2 V7 on z/OS

1. I have a reorg tablespace job with shrlevel NONE that failed in sort with an E37 on the SORTOUT file. All files were coded with MOD,KEEP,KEEP and allocated and cataloged in a previous step.

To restart with a RESTART(PHASE), SORTOUT file needs to have more space. I suppose it is ok to delete the old SORTOUT file and create a new one with more space i.e. no of rows * no of indexes * (longest key +9)

2. And if the E37 happens on SYSUT1, I suppose the same process as above is valid here also.

Could somebody please confirm this restart process is ok? Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 05-06-07, 15:30
umayer umayer is offline
Registered User
 
Join Date: Dec 2005
Posts: 273
consider using the REBUILD INDEX utility instead of restarting the REORG TABLESPACE if it fails in the SORT phase.
Reply With Quote
  #3 (permalink)  
Old 05-06-07, 15:44
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
I initially thought so. But it is a fairly large table with a few million rows. Rebuild index would have unloaded the index keys again for sort instead of using the SYSUT1 file already present.

Besides, it is a scheduled job with many reorg steps, and is it a good idea to manually do a rebuild index and skip the step in production job?
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