DB2: to see the pages in tables per tablespace

 select

   npages,

   fpages,
   rtrim(tabschema) || '.' || tabname
from
   syscat.tables
where 
   tbspace = 'TAB8K'


For example, an output like:
             6149643              6752845 WCS.STAGLOG_ARCHIVE   

fpage, no of pages with data in them
npage, no of pages assigned to table

Comments

Popular posts from this blog

Postgres: Clean up stopped replication slot