Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Doing REORG on Large DB2 Table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
nkumar

New User


Joined: 09 Mar 2008
Posts: 28
Location: USA

PostPosted: Wed Mar 23, 2011 11:46 pm    Post subject: Doing REORG on Large DB2 Table
Reply with quote

Hi All!!

I want to discuss a scenario at my workshop. We have to often REORG our DB2 table to tune it. REORG works fine when tables contain smaller volume of data.

But when the table is big (in terms of volume), it often gives space error. We tried to increase the temporary work files used by REORG but it did not work. So we take sequential unload of that table, then sort it and then load back in to the table.

But this process takes too much time to get complete. Can anyone suggest a better approach to do the REORG in more time efficient manner??

Please let me know if I need to provide more information.
Back to top
View user's profile Send private message

Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Thu Mar 24, 2011 5:19 am    Post subject:
Reply with quote

you dont reorg tables - you reorg tablespaces
how long to reorg - how long to unload/load?
what is the constraint on the reorg? - what fails
Is this a real problem or imaginary ?
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1013
Location: India

PostPosted: Thu Mar 24, 2011 9:54 am    Post subject:
Reply with quote

nKumar,

You have give in more details to get some realistic answer, like
How many rows does the table have ?
What is the total length of the row ?
Is it partitioned or non-partitioned ?
Show us your error details ?
How often REORG is done(weekly, bi-weekly, monthly or based on some condition) like that ?
when is the REORG Job executed like on maintainence window(when there is no online or when system is less busy) ?

And do show us your current REORG Statements.

Without these kind of information, everybody reading this post will think exactly as peter said"Is this a real problem or imaginary ?"

Thanks,
Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us