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 > DB2V9.5 Reorg Issue.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-30-11, 06:09
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
DB2V9.5 Reorg Issue.

Hello All,

In a newly built server, we installed db2v9.5, and then restored and migrated db2v8 backup image on the same. It was working fine.
DB2level : DB2V9.5 FP4.

We then ran reorg for all system tables and user tables of the database. After that , we are not able to select count(*) of the table , getting transaction log full. The above issue we faced for some set of tables.

Able to see some errors like reorg of indexes not happened properly in the diag.log and notification log in addition to the transaction log full.

ADM5572I Some index(es) on table are marked invalid and will require rebuilding. DB2 will automatically rebuilt the index(es) on this table, which will result in a super exclusive Z table lock for the duration of the rebuild and the unit of work.

IS that transaction log full because of - reorging of index not happened properly.

or any other related issue ?

Did any one of you face this issue ?

Please help me in identifying the root cause of this to avoid the same in future.

Thanks for your help in advance.
Meena.s
Reply With Quote
  #2 (permalink)  
Old 06-30-11, 06:37
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
do not forget to set-up archival logging
perform an offline reorg when possible: less logging & 20x faster
Reply With Quote
  #3 (permalink)  
Old 06-30-11, 07:13
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Archival logging enabled(logarchmeth1 to tsm) and i did offline reorg only.

Thanks
Reply With Quote
  #4 (permalink)  
Old 06-30-11, 09:06
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Clearly, it's the index rebuild that fills the logs. If you don't use HADR, you could set LOGINDEXBUILD to OFF to avoid that. Be aware of the implications though.
Reply With Quote
  #5 (permalink)  
Old 06-30-11, 09:40
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Thanks But its a HADR Built one.
Reply With Quote
  #6 (permalink)  
Old 07-01-11, 00:45
stiruvee stiruvee is offline
Registered User
 
Join Date: May 2010
Location: India
Posts: 34
Check your configuration parameters for log space (LOGFILSIZ, LOGPRIMARY, LOGSECOND) and increase them. Otherwise, the same issue will arise when you run reorgs next time. Log space used by DB2 in 9.5 is more than log space used by 8.2

Adjusting the log space size in migrated databases

Satya..
Reply With Quote
  #7 (permalink)  
Old 07-08-11, 04:44
niteshtheone niteshtheone is offline
Registered User
 
Join Date: Jul 2011
Posts: 19
Please chek diag carefully for any application handle.
May be any transaction is holding active log and it is not releasing it.
Reply With Quote
  #8 (permalink)  
Old 07-08-11, 12:28
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
I've corrected your sentence.

Is that transaction log full because of - reorging of index not happened properly.

It is actually the other way. Reorg on indexes got failed because the transaction log was full. As suggested by Satya, you may have to consider increasing your logprimary/logsecondary/logfilesz parameters or enable infinite logging by setting logsecond to -1 and revert back the changes once the reorg finishes.

Last edited by blazer789; 07-10-11 at 10:14.
Reply With Quote
  #9 (permalink)  
Old 07-12-11, 07:06
Meena.s Meena.s is offline
Registered User
 
Join Date: Sep 2006
Posts: 87
Thanks all for your reply.

For rerorg to complete, i have made logsecond value to 200 temporarily and then did reorg.
After completion , i have set back to old values.
I didnt had a chance to run reorg again to check whether the same issue pops up.
As suggested by Satya, I will check the values of logprimary/logsecondary/logfilesz parameter and will let you know the updates.

Thanks All.
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