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 > How to know current DB2 database size

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-30-04, 22:45
hoho hoho is offline
Registered User
 
Join Date: Sep 2002
Posts: 9
How to know current DB2 database size

Hi,
Any body know how to get the DB2 database size currently allocated and used in the system(including tablespaces, active logs, db2 internal control files, etc...) ?
Reply With Quote
  #2 (permalink)  
Old 10-01-04, 03:39
xcb7226 xcb7226 is offline
Registered User
 
Join Date: Jun 2004
Posts: 4
Hallo,

on Unix you can find the specific SQLxxxxx :

db2 list db directory on <dir> |grep <dbname>

Then you can do :

du -k <dir>

Regards Will
Reply With Quote
  #3 (permalink)  
Old 10-01-04, 03:50
hoho hoho is offline
Registered User
 
Join Date: Sep 2002
Posts: 9
This only list out the size of database directory only, how about all other table spaces?
Reply With Quote
  #4 (permalink)  
Old 10-01-04, 04:19
xcb7226 xcb7226 is offline
Registered User
 
Join Date: Jun 2004
Posts: 4
Hallo,

you should make a tablespace snapshot or

db2 connect to >db>
db2 list tablespaces show detail

Regards
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