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 > how can i find the size of table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-11, 19:11
josemourinho josemourinho is offline
Registered User
 
Join Date: Aug 2010
Posts: 19
how can i find the size of table

hello

how can i find the size of table in db2

10x
Reply With Quote
  #2 (permalink)  
Old 02-01-11, 20:43
Amarnath Reddy Amarnath Reddy is offline
Registered User
 
Join Date: Apr 2010
Posts: 10
Many ways to check the table size....

1) if you have control center on your work station then right click on the table and click on the estimate size option.this will show u the size of the table and indexes separately in Mb or Kb.

2) You can check the table size by running a REORGCHK with update statistics. then one of the values displayed for each column is TSIZE that is the table size so just run runstats for the desire table.
## reorgchk update statistics on table schemaname.urtabname

Remember to update your statistics before you select any value from the syscat tables.
If you check the documentation for REORGCHK it will tell you the formula to calculate TSIZE from syscat tables.

REORGCHK will return the size in bytes.

Hope you find this useful

Thanks,
Amar
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