IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Reorg on Index


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
JyothsnaNayak

New User


Joined: 03 Feb 2010
Posts: 9
Location: India

PostPosted: Tue Aug 21, 2012 1:02 pm
Reply with quote

When do we run Reorg on Index? Reorg on the tablespace also rebuilds the index on build space. So what is use of reorg on index?

Can anyone please let me know.

Thanks,
JSN
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Aug 21, 2012 3:03 pm
Reply with quote

sometimes reorg index is all you need, and then there is no point in wasting time and cpu to reorg everything.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Tue Aug 21, 2012 3:06 pm
Reply with quote

It depends what control card you are using...

REORG TABLESPACE - Reorganizes |all data and all indexes.
REORG TABLESPACE PART n - Reorganizes data for PART n of the table space and PART n of all partitioned indexes.
REORG TABLESPACE |PART n:m - Reorganizes data for PART n through PART m of the table space and PART n through PART m of all partitioned indexes.

If its a Partitioned table
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Aug 21, 2012 3:25 pm
Reply with quote

GuyC wrote:
sometimes reorg index is all you need, and then there is no point in wasting time and cpu to reorg everything.


I like that type of thinking. All too often, people are just too lazy to make a little change to just do what is needed, and not all the stuff which "doesn't matter if it is done anyway" but which takes time. Then they sit there pressing enter every 20 seconds, hoping for a NOTIFY.

GuyC is off out the door with work done, whilst the "lazy" is still hard-at-it pressing enter :-)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
Search our Forums:

Back to Top