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 > Calculate DB size in DPF env

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-11, 20:11
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
Question Calculate DB size in DPF env

Hello Experts,

Is there any way like "get_dbsize_info" to calculate db size in DPF environment.

Thanks


Regards,
Prashant
Reply With Quote
  #2 (permalink)  
Old 12-05-11, 20:31
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
what version are you on? and why do you think the command is not available on dpf?

To ensure that the data is returned by all partitions for a global table space snapshot, the database must be activated

https://www-304.ibm.com/support/docv...id=swg1IY80746
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-05-11, 20:39
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
We are running on V9.5 FP6a.

I was trying "get_dbsize_info" only from catalog node. It shows size of 70TB but actual db size is more than 160TB

Thanks for reply.

Last edited by prashant44; 12-05-11 at 20:42.
Reply With Quote
  #4 (permalink)  
Old 12-06-11, 13:09
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
Hi,

Anybody has any idea on this.

bash-3.2$ db2 "call get_dbsize_info(?,?,?,0)"

Value of output parameters
--------------------------
Parameter Name : SNAPSHOTTIMESTAMP
Parameter Value : 2011-12-06-23.29.14.134570

Parameter Name : DATABASESIZE
Parameter Value : 70372224860160

Parameter Name : DATABASECAPACITY
Parameter Value : -1

Return Status = 0
Reply With Quote
  #5 (permalink)  
Old 12-06-11, 15:11
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Did you activate the db?

"To ensure that the data is returned by all partitions for a global table space snapshot, the database must be activated" as sathyaram_s mentioned.
Reply With Quote
  #6 (permalink)  
Old 12-10-11, 22:47
prashant44 prashant44 is offline
Registered User
 
Join Date: Feb 2008
Posts: 59
sorry for the delay.
The database is already active and applications are running on it.
Reply With Quote
  #7 (permalink)  
Old 12-11-11, 09:08
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
Your catalog partition has 70TB of data? Verify the size reported by get_dbsize_info with your what's reported by db2pd -tablespaces from all partitions.
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