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 > Estimating size of a table with LOB column

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-07, 12:38
samu78nyc samu78nyc is offline
Registered User
 
Join Date: Nov 2006
Posts: 31
Estimating size of a table with LOB column

Hi all,

The table in question has 4 fields:
UNID 19 chars
DATA 2147483647 (BLOB)
ROW 19 chars
DT 10 chars

Second column can take upto 2GB (attachments etc). So I am trying to figure out the growth of these attachments in the database in terms of space.

But the actual value in this column in not the attachment itself but a pointer/descriptor to this attachment stored somewhere on disk.

So when you estimate the size of the table it doesn't include the attachments size. It just estimates the size using the average size of the 3 fields plus the average size of the pointer.

So where are these LOB's stored on disk (I mean is it in the same tablespace) if so how do we estimate the growth of these attachments (as the tablespace has several other tables).

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 12-07-07, 12:48
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How about using the LENGTH function?

Andy
Reply With Quote
  #3 (permalink)  
Old 12-07-07, 17:18
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Try the table snapshot; it shows data, lob, and index utilization separately, if I'm not mistaken.
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