473,396 Members | 2,013 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 (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
Dec 18 '07 #1
2 3801
Yeah, I've been looking for this information, too.
The thing about the descriptor is, it seems to be fairly useless for retrieving significant information, especially if your LOBS aren't logged. I haven't seen anything that will give you actual size info for the tablespace where the LOB is actually stored.

I really need this info, so any help from out there is appreciated.
Jan 8 '08 #2
No way.
We seriously have to upgrade to DB2 9 to have this capability?
Come on. How basic should that functionality be to DB operations and app development?

To anyone who is at 9, you do a select * from sysibmadm.admintabinfo because YOU have the structure that we don't. Presumably, you'll need to know the attachment's data object ID, which I assume you can get from the RID.

Unless I'm missing something. Pipe up, anybody who knows more.

I guess we're not alone, though. The functionality didn't exist in Oracle until this latest release, 11, either.
Jan 10 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: TZone | last post by:
I was hoping I can get some help regarding subject mater located at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/createdb/cm_8_des_02_92k3.asp MyTable has 23 fields with...
7
by: Bart Torbert | last post by:
Hello, I am starting to examine using SQLServer instead of Oracle. I went through the SQLServer import utility to copy tables from Oracle into SQLServer. I then checked the size of the...
7
by: sql-db2-dba | last post by:
Does DB2 just fudge it when it is an empty table? Is there a "formula" for average row size when you have variable length records. Or you really have to know what your application is packing into...
2
by: Kums | last post by:
What is the maximum permissible size of a database? Is there any limitation. What is the maximum # of tablespace's allowed in a database? Thanks for your response.
3
by: David Parker | last post by:
Given a table, foo, created in a database but not populated, is there a procedure that will return an estimate of the size of a given tuple in that table? It looks like pgstattuple reports on...
2
by: deepgun74 | last post by:
I have a blob column that is 4MB in length. I need to change it to store a 3GIG binary. 1) What is the maximum size a BLOB column can support? 2) How do i alter the size of an existing BLOB...
4
by: Alvin SIU | last post by:
Hi all, I am now doing development using DB2. Q1. There is one tablespace to store 5 tables. But, when in production, there will be one tablespace for EACH of the tables.
1
by: cbradio | last post by:
thescripts gurus, I would like to know if I could get some help with making elements of my layout expand (liquid) to the size of their containers, but also allow for some predefined, static...
1
by: Harshaw | last post by:
I am an estimator for an industrial and commercial insulation contractor. I have compiled an enormous amount of data over the years but I am still figuring all of my estimates by hand. For instance,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.