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 > db2 length of table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-11, 09:55
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 length of table

Hi,
i am new to DBA, can i know how to find the length of the table in a database other than using db2cc. Thank u in advance.
Reply With Quote
  #2 (permalink)  
Old 01-27-11, 13:45
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
What do you meant by "Length"? Also please state DB2 version and OS.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-27-11, 23:26
nagaraju.bandaru nagaraju.bandaru is offline
Registered User
 
Join Date: Aug 2010
Posts: 12
db2 size of table

Hi,
Thanks for fast reply.
What my attention is, to know the size occupied by the table in the database.
db2 version is 9.1 in Linux.
Reply With Quote
  #4 (permalink)  
Old 01-28-11, 12:20
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
1) make sure that runstats is current
2) Select tabname,fpages from syscat.tables

Number 2 will give you the number of pages for each table (not including the indexes). You can expand that to join the tablespace to multiply by the pagesize to get bytes.

Andy
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