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 > Adding a cloumn in a Large table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-10, 12:06
surbhi_gt1 surbhi_gt1 is offline
Registered User
 
Join Date: Apr 2009
Posts: 11
Adding a cloumn in a Large table

Hi,

I have a quick query.
If we add a cloumn in a big table which has CLOB column too when we add a char column in that then do we have to run reorg/runstat?

Whether it can have some performance issue or not?

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-18-10, 12:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,574
You do not HAVE to do a reorg, but one might be advisable.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-18-10, 13:19
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by surbhi_gt1 View Post
Hi,

Whether it can have some performance issue or not?
Yes, you can have a BIG performance issue. You have to check your rec size and see what it will be when you add the column and then decide what you have to do.
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #4 (permalink)  
Old 03-18-10, 13:41
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,810
Quote:
Originally Posted by surbhi_gt1 View Post
Hi,

If we add a cloumn in a big table which has CLOB column too when we add a char column in that then do we have to run reorg/runstat?
Please take a look at this posting:
Table goes to reorg pending state - after alter table command in db2 v9.5
Reply With Quote
  #5 (permalink)  
Old 03-18-10, 22:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,195
With regard to performance issues, if you want to populate the new column with data on existing rows, you should definitely do a reorg. You can do this online (inplace) if you can't do an offline reorg, and you can start, pause, and stop the online reorg if you cannot do it all at once.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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