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 > DB size info

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-30-09, 11:51
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
DB size info

Hi Everyone,

One of SAMPLE database size is as below

Code:
C:\Program Files\IBM\SQLLIB\BIN>db2 call get_DBSize_info(?,?,?,0)

  Value of output parameters
  --------------------------
  Parameter Name  : SNAPSHOTTIMESTAMP
  Parameter Value : 2009-03-30-11.38.23.129000

  Parameter Name  : DATABASESIZE
  Parameter Value : 57282560

  Parameter Name  : DATABASECAPACITY
  Parameter Value : 38995476992

  Return Status = 0


C:\Program Files\IBM\SQLLIB\BIN>
DB2 V9.1 on Win 2k3

I need free space on this server. So I can drop SAMPLE database for space.

How much space will I gain if I drop SAMPLE.


Thanks
DBFinder
Reply With Quote
  #2 (permalink)  
Old 03-30-09, 13:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Looks like about 57 MB.

The DATABASECAPACITY takes into account the size of the entire file system for SMS tablespaces.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390

Last edited by Marcus_A; 03-30-09 at 13:28.
Reply With Quote
  #3 (permalink)  
Old 03-30-09, 13:40
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Thanks,

I had misunderstanding about DATABASECAPACITY.


DBFinder
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