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 > DB2 9.7 FP 3a /win 2008 R2 -migration

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-11, 17:19
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
DB2 9.7 FP 3a /win 2008 R2 -migration

Hello,
I am restoring my DB2 8.2 database into DB2 9.7
The restore was successfully completed and the database was migrated too.
However according to the diag.log all the indexes were made INVALID due to the V8.2 indexes are TYPE 1.

I am happy to convert all the INDEXES to TYPE2 in the DB2 9.7 system.

As the INDEXREC is set to RESTART, the indexes are automatically start rebuiding. But I prefer to do all together by myself at later stage.

The question is how can I disable the DBM CFG - INDEXREC variable?

Please advise.
Thanks , Valan.
__________________
Reply With Quote
  #2 (permalink)  
Old 04-01-11, 19:29
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You cannot disable it, but you can set it to ACCESS - each index will be rebuilt upon the first attempt to access it.
Reply With Quote
  #3 (permalink)  
Old 04-02-11, 06:03
dgunas dgunas is offline
Registered User
 
Join Date: Dec 2008
Location: Chennai
Posts: 110
Indexrec - access

Thanks you so much, I have now updated the INDEXREC to ACCESS
and I can not see that db2 is not rebuilding automaticaly.

I have now identified all TYPE 1 indexes using db2IdentifyType1 command and its created a script automatically.

So, I have executed the script to CONVERT and it is now running.
hope this will run smoothly.

Thanks for you BIG help.
Valan
__________________
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