473,383 Members | 1,958 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,383 software developers and data experts.

calculate size of table with BLOB

Hi,

I am looking for information how calculate size of table with BLOB
field.

After RUNSTATS command
select fpages * tablespace pagesize - gives me only 16kB (table contain
about 10M)

I am interesting in 2 cases:
1.
create table t1(.....
blobdata BLOB
) IN myregulartablespace
@

2
create table t2(.....
blobdata BLOB
) IN myregulartablespace
LONG IN mylongtablespace
@

or how calculate size of mylongtablespace with BLOB data

Thanks in advance
Yaro
Feb 20 '06 #1
4 9904
Yaro wrote:
Hi,

I am looking for information how calculate size of table with BLOB
field.

After RUNSTATS command
select fpages * tablespace pagesize - gives me only 16kB (table contain
about 10M)

I am interesting in 2 cases:
1.
create table t1(.....
blobdata BLOB
) IN myregulartablespace
@

2
create table t2(.....
blobdata BLOB
) IN myregulartablespace
LONG IN mylongtablespace
@

or how calculate size of mylongtablespace with BLOB data


LIST TABLESPACE ... SHOW DETAIL

But note that this will give you the information for all tables that place
their long data into that tablespace.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 20 '06 #2
>> Hi,
I am looking for information how calculate size of table with BLOB
field.
After RUNSTATS command
select fpages * tablespace pagesize - gives me only 16kB (table contain
about 10M)
I am interesting in 2 cases:
1.
create table t1(.....
blobdata BLOB
) IN myregulartablespace
@
2
create table t2(.....
blobdata BLOB
) IN myregulartablespace
LONG IN mylongtablespace
@
or how calculate size of mylongtablespace with BLOB data

LIST TABLESPACE ... SHOW DETAIL
But note that this will give you the information for all tables that place
their long data into that tablespace.


Thanks Knut,

This give me information I was looking for.
Unfortunatelly I need read this information from .NET application and I
can't execute LIST TABLESPACE as BD2Command because of ERROR [42601]
[IBM][DB2/NT] SQL0104N. I suppose that this command can't be executed as
DB2Command.

Maybe you know another solution ( proc, func, select) which give me
cursor for example?

Yaro
Feb 21 '06 #3
Yaro wrote:
This give me information I was looking for.
Unfortunatelly I need read this information from .NET application and I
can't execute LIST TABLESPACE as BD2Command because of ERROR [42601]
[IBM][DB2/NT] SQL0104N. I suppose that this command can't be executed as
DB2Command.


LIST TABLESPACES _is_ a DB2 command and but not a SQL statement. You can
find the commands/statements here: http://tinyurl.com/eqa86 and here:
http://tinyurl.com/ftprw

You can use the snapshot table functions to get the information that you
want: http://tinyurl.com/ffsw6 and http://tinyurl.com/h87o8 .

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Feb 21 '06 #4
> LIST TABLESPACES _is_ a DB2 command and but not a SQL statement. You can
find the commands/statements here: http://tinyurl.com/eqa86 and here:
http://tinyurl.com/ftprw
You can use the snapshot table functions to get the information that you
want: http://tinyurl.com/ffsw6 and http://tinyurl.com/h87o8 .


Thanks a lot
Yaro
Feb 21 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Corrine | last post by:
Hi, I am creating a global temporary table that is session-specific. I insert a BLOB into this table, and then select the BLOB from this table into a ResultSet. The ResultSet sees this BLOB...
2
by: Stanley Sinclair | last post by:
About to create a table which will "include" a BLOB. Am not sure how large to make the container and the tablespace. What I see says that BLOB is stored "separately." However, I don't know...
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.
2
by: Sue | last post by:
I have a large database currently using up 30GB of space -- problem is, I am running out of space on my harddrive and so have to do some cleanup. One of the tables has a blob field and I find that...
7
by: johnm | last post by:
We have a new CRM application that uses a DB2 7.2 database. Our users noted that the CRM application would not allow them to attach and store any documents over 2 meg in size. When asked, the...
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...
2
by: pike | last post by:
DB2 UDB v8.2 (FP11) on AIX 5.2. I'm not an SQL guru, so please be gentle with me. I have a table that contains a BLOB(312MB) column, and I'd like to determine, in an efficient way, the...
4
by: carlbernardi | last post by:
Hi, I have a question about the size of a blob if it indeed needs to be set and cannot be variable. I ask this question because I am trying to save web pages to a database but a web page can be...
6
by: shawno | last post by:
Hi, We're running DB2 v8.1 on a windows platform and have a database that is quite large. It basically contains one table with a BLOB field (each blob is a zip file, maybe 500K to 1MB), and...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.