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.
Which table gives me Tablesize or tablespace size.
Hi,
Can somebody tell me which system table gives me the actual Size of the tablespace? I need it for programmatically allocating spaces...
thanks
Vijay S
for dms : db2 list tablespaces show detail --> size of ts
for sms : same command will show the current size
in sysibm.systables wil give an idea of active pages if runstats up-to-date
best regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html
I ran this command in db2 command line window.. (Db2 for OS/390 Ver 7.1)
It says "SQL1651N The request cannot be executed because the DB2 server version does not support this functionality."
when I say C:\> db2 list tablespaces show detail
It was not indicated which target platform..
this command was for db2 udb ...
have a look at npages in sysibm.systables that gives nbr of pages allocated for this table .. do sum(npages) group by tbspace
Hope this will help
Best Regards, Guy Przytula
__________________
Best Regards, Guy Przytula
DB2/ORA/SQL Services
DB2 DBA & Advanced DBA Certified
DB2 Dprop Certified
http://users.skynet.be/przytula/dbss.html