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.

 
Go Back  dBforums > Database Server Software > DB2 > Which table gives me Tablesize or tablespace size.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-01-05, 06:16
brainstorms brainstorms is offline
Registered User
 
Join Date: Jun 2004
Location: Bangalore
Posts: 8
Smile 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
Reply With Quote
  #2 (permalink)  
Old 01-02-05, 08:37
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
ts size

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
Reply With Quote
  #3 (permalink)  
Old 01-04-05, 00:59
brainstorms brainstorms is offline
Registered User
 
Join Date: Jun 2004
Location: Bangalore
Posts: 8
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

Any clue?
Thanks ...
Reply With Quote
  #4 (permalink)  
Old 01-04-05, 01:13
przytula przytula is offline
Registered User
 
Join Date: Nov 2004
Posts: 374
size

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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On