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 V9 bug - REORG pending?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-17-08, 14:08
DBA-Jr DBA-Jr is offline
Registered User
 
Join Date: Mar 2005
Posts: 108
DB2 V9 bug - REORG pending?

Hi All,
I am using "DB2 v9.1.0.2" in a development environemnt. Ever since we migrated to V9, I have seen tables in REORG pending frequently. I am not talking about issues related to "Reorg recommended" ALTER statements. Sometime changing a column from VARCHAR(5) to VARCHAR(10) can cause REORG pending. Sometimes it occurs without any DDL change.

Does anybod have the same experience? Is this a known bug of DB2 V9?

Thanks for you advice.
Reply With Quote
  #2 (permalink)  
Old 10-17-08, 21:00
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Do you have automatic maintenance enabled?
Reply With Quote
  #3 (permalink)  
Old 10-22-08, 11:49
DBA-Jr DBA-Jr is offline
Registered User
 
Join Date: Mar 2005
Posts: 108
AUTO_MAINT = ON
AUTO_TBL_MAINT = OFF

Did you imply I needed to turn it on?
Reply With Quote
  #4 (permalink)  
Old 10-22-08, 12:00
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
If it were enabled it could explain the situation. By the way,
Quote:
changing a column from VARCHAR(5) to VARCHAR(10)
_is_ a "Reorg recommended" ALTER statement, so no surprise here.

Last edited by n_i; 10-22-08 at 12:13.
Reply With Quote
  #5 (permalink)  
Old 10-23-08, 06:47
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
@n_i, you are correct. After altering column it is recommended to execute reorg because of performance benefits. DB2 places new data related to "altering column" to the end of pages. Not the best thing if huge number of rows are in table.

@DBA-Jr, try to reorg table. Has problem disappeared?
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