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 the DB size in Bytes/KB/MB/GB ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-08, 00:43
goudelly1 goudelly1 is offline
Registered User
 
Join Date: Apr 2008
Posts: 21
How to Know the DB size in Bytes/KB/MB/GB ?

Dear all,

Please explain to me for the outlined query give the result in bytes, kill byes, mega bytes or giga bytes.

db2 "select * from systools.stmg_dbsize_info"

On AIX version.

Regards,

Mohan Reddy.
Reply With Quote
  #2 (permalink)  
Old 07-21-08, 01:45
Pawan Kumar Pawan Kumar is offline
Registered User
 
Join Date: Mar 2008
Posts: 120
in MB......

db2 "select db_size/1024/1024 as DB_SIZE,SNAPSHOT_TIMESTAMP,DB_CAPACITY/1024/1024 as CAPACITY from systools.stmg_dbsize_info"


like above u can get in kb/gb....
__________________
Regards
Pawan Kumar
Reply With Quote
  #3 (permalink)  
Old 07-22-08, 02:18
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,
you can also get info from store procedure if you don't have "tools" installed:
db2 "CALL GET_DBSIZE_INFO(?, ?, ?, -1)"
Hope it helps,
Grofaty
Reply With Quote
  #4 (permalink)  
Old 07-22-08, 03:22
HachavBanav HachavBanav is offline
Registered User
 
Join Date: Jul 2008
Posts: 11
You can although install db2mon and look at the "Tablespace" tab (sub-tab "Data")
__________________
To geek or not to geek !
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