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

force repair an index


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

New User


Joined: 08 Oct 2009
Posts: 12
Location: Kolkata, India

PostPosted: Wed Mar 10, 2010 4:26 pm
Reply with quote

After reading What is COPY PENDING status in DB2...
Can anyone tell me if we can force repair an index which is in Rebuild Pending status by using the repair utility. If yes then can someone please provide the control statement.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Mar 10, 2010 4:34 pm
Reply with quote

Hello Chirantan,

First check why your index went to REBUILD PENDING state. You can use following REPAIR command
Code:
REPAIR SET INDEX indexname NORBDPEND
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Mar 10, 2010 4:54 pm
Reply with quote

Hi,

In some shops it is not recomended to run REPAIR utility by developer without the knowledge of DBA.

Ask your DBA to run the appropriate utilities, COPY & REBUILD.

Sushanth
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Mar 10, 2010 9:14 pm
Reply with quote

Hello,

Quote:
In some shops it is not recomended to run REPAIR utility by developer without the knowledge of DBA.
Indeed icon_smile.gif

In many shops developers cannot run REPAIR at all - these types of things must be done by the dba(s). . .
Back to top
View user's profile Send private message
Chirantan Banerjee

New User


Joined: 08 Oct 2009
Posts: 12
Location: Kolkata, India

PostPosted: Thu Mar 11, 2010 10:09 am
Reply with quote

Thanks Ekta for providing the control statement.

@Dick and Sushanth - In our shop we have a few test databases where developers are allowed to load/delete/repair to create test data. We take DBA help whenever required but we usually try to sort out the problems ourselves since the test data is meaningful only to the developer who is testing on that database and losing it will not make any difference to others. So instead of asking for DBA help to repair the rebuild pending status - which would take some time, we raised a DBA ticket to investigate why the index went to rebuild pending and repaired the index ourselves and loaded the table afresh to carry on with our work. In the meantime the DBA can check what went wrong and let us know so that we can avoid such situations in future.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 11, 2010 10:15 am
Reply with quote

Hello,

If your environment provides for individual developers to have "their own" databases, that could work icon_smile.gif

Most places do not provide this and different teams share sets of tables. If one developer drops tables or alters them, it causes disruption for many others. There is also the concern that if the developers implement something that the dbsa will not promote to production, considerable resources might be wasted.
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 force tablespace using LISTDEF input DB2 1
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