Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syscat.tables vs. 'LIST TABLESPACES SHOW DETAILS'

Status
Not open for further replies.

billhoves

Programmer
Aug 28, 2001
5
US
Why is it when, using the CLP, I issue
'LIST TABLESPACES SHOW DETAILS' I get the correct number of
pages allocated for each tablespace, yet when I
use a select statement, say for tablespace id=0
SELECT NPAGES, FPAGES from SYSCAT.TABLES where TBSPACEID=0
I get -1 for each column ??
I need to use either a CLI, API, or embedded SQL command
to get the tablespace size. Am I barking up the right tree ?
TIA, Bill
 
Is there a non-intrusive way to get this information. I need
to extract it without the ability to execute any commands
that may steal processing time. The information must already
exist, since the LIST TABLESPACES command returns it ??

Any ideas ??
 
I do believe that list tablespaces is getting it from the OS level....

if you have your containers on filesystems, you can just do a 'bf' and see how full they are....

if you have your containers on raw partitions, then I expect that you could do it through some other unix command.

HOWEVER, you should be running 'runstats' regularly anyway. I once had a little script that I wrote that would extract the stats from a LIST TABLESPACES and put all the info in a table for later analysis. Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top