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 > Size of table when BLOB colums exist

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-30-05, 05:54
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Size of table when BLOB colums exist

How do we calculate the table size when LOB/LONG columns exist in the table?

Without LOB/LONG, we can use TSIZE of 'reorgchk' output. However, this does not hold good if the table has LOB/LONG columns.

TIA.
Reply With Quote
  #2 (permalink)  
Old 01-04-06, 02:02
dahalkar_p dahalkar_p is offline
Registered User
 
Join Date: Oct 2001
Location: Bangalore
Posts: 186
Hi,

You need not consider LOB and LONG data size while sizing the tables. Table data pages do not contain the data for columns defined with LONG VARCHAR, LONG VARGRAPHIC, BLOB, CLOB, or DBCLOB data types. The rows in a table data page do, however, contain a descriptor for these columns which i guess takes 16 bytes of space. So while calculating row size add 16 bytes for such columns.

But remember to consider disk space for such columns as they are stored on disk anyway.
__________________
Prashant
Reply With Quote
  #3 (permalink)  
Old 01-04-06, 07:49
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Quote:
Originally Posted by dahalkar_p
Hi,

You need not consider LOB and LONG data size while sizing the tables. Table data pages do not contain the data for columns defined with LONG VARCHAR, LONG VARGRAPHIC, BLOB, CLOB, or DBCLOB data types. The rows in a table data page do, however, contain a descriptor for these columns which i guess takes 16 bytes of space. So while calculating row size add 16 bytes for such columns.

But remember to consider disk space for such columns as they are stored on disk anyway.

Thanks for the input. I need to know the table size for 'BLOB column tables' also as I'm working on 'growth trend' - capacity planning - of the database over a period of few months.

When TSIZE is considered, the size of the database is 15 GB. However, the full backup image of the database is 200 GB.

TIA.
Reply With Quote
  #4 (permalink)  
Old 05-12-06, 07:09
gams gams is offline
Registered User
 
Join Date: Sep 2005
Posts: 9
Any solution to this issue? I'm looking for the same thing.
Reply With Quote
  #5 (permalink)  
Old 05-13-06, 04:28
ggnanaraj ggnanaraj is offline
Registered User
 
Join Date: Aug 2002
Location: Chennai, India
Posts: 171
Check out the following URL:

https://www-128.ibm.com/developerwor...m=291#13777316

HTH.
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