Is there an API or CLI call that I can make from within a
C program to get the number of tables for a particular
database ?? I know that I can run 'LIST TABLES' from the
CLP, but this doesn't help me. I need to execute this
from within a program. Thanks in advance, Bill
I've checked the sample programs, no luck. Also, I can't call the CLP
commands from a processor window. I need to execute them from a
'C' program. Thanks for the replies, 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 ??
Are there commands, either CLI or API to list:
o Instances on the server
o Databases for each instance
o Tablespaces for each databases
??
Basically, I'm trying to re-create the tree that comes
up in the left side of the control center and need to
extract all this information from within a...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.