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.
First you need execute the runstats command on each table. See the Command Reference manual. You should also use the "indexes all" option.
Then, to get the size, query the syscat.tables view and look at the NPAGES times the pagesize (from the syscat.tablespaces). This will give you the number of bytes, which includes page overhead and freespace.
You can also get the number of rows via the CARD column. See the SQL Reference Volumne 1 appendix for a description of all the columns in the syscat views which are the DB2 Catalog.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390