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 a table???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-05-04, 07:21
john_wsm john_wsm is offline
Registered User
 
Join Date: Mar 2004
Posts: 33
Arrow size of a table???

Hi all,

I am using DB2 version 5 using Win2000, I know it is possible to list the size of
a tablespace. But, I wonder if it is possible to enquire the size of a table. If so, pls kindly provide a sample.

Thanks in advance.
ME
Reply With Quote
  #2 (permalink)  
Old 05-05-04, 07:38
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by john_wsm
Hi all,

I am using DB2 version 5 using Win2000, I know it is possible to list the size of
a tablespace. But, I wonder if it is possible to enquire the size of a table. If so, pls kindly provide a sample.

Thanks in advance.
ME
v5?

In v8 you can right click on a table in the Control Center and use the "Estimate Size" routine. I can't remember if that existed in v5, though, the v5 Control Center was a completely different (barely useable) animal.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 05-05-04, 07:47
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by J Petruk
v5?

In v8 you can right click on a table in the Control Center and use the "Estimate Size" routine. I can't remember if that existed in v5, though, the v5 Control Center was a completely different (barely useable) animal.
Just tinkering, if you use SMS you can select the tableid from SYCAT.TABLES, the container path for the tablespace the table is in should have files like SQL00044.DAT for that id. (ie. in this case, 44).

There may also be .INX (index), LB and LBA (lobs) files. Add up the sizes of all of those.

DMS I don't believe is that easy.
__________________
--
Jonathan Petruk
DB2 Database Consultant
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