dbTalk Databases Forums  

get_dbsize_info is giving output as -1

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss get_dbsize_info is giving output as -1 in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kavin
 
Posts: n/a

Default get_dbsize_info is giving output as -1 - 02-02-2011 , 08:56 AM






when i execute get_dbsize_info to find the size of a database it is
giving output as -1. Can anyone, please help me out how to resolve
this issue?

Reply With Quote
  #2  
Old   
Lennart Jonsson
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-02-2011 , 10:37 AM






On 2011-02-02 15:56, kavin wrote:
Quote:
when i execute get_dbsize_info to find the size of a database it is
giving output as -1. Can anyone, please help me out how to resolve
this issue?
What version of db2, how did you call the procedure and what is the output?


/Lennart

Reply With Quote
  #3  
Old   
kavin
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-02-2011 , 10:46 AM



On Feb 2, 9:37*pm, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com>
wrote:
Quote:
On 2011-02-02 15:56, kavin wrote:

when i execute get_dbsize_info to find the size of a database it is
giving output as -1. Can anyone, please help me out how to resolve
this issue?

What version of db2, how did you call the procedure and what is the output?

/Lennart
i had used 2 commands
1) db2 "call get_dbsize_info (?,?,?,-1)"
output is
Value of output parameters
--------------------------
Parameter Name : SNAPSHOTTIMESTAMP
Parameter Value : 2011-02-02-08.16.04.580034

Parameter Name : DATABASESIZE
Parameter Value : -1

Parameter Name : DATABASECAPACITY
Parameter Value : -1

Return Status = 0

2) db2 "select * from SYSTOOLS.STMG_DBSIZE_INFO"
output is
SNAPSHOT_TIMESTAMP DB_SIZE DB_CAPACITY
-------------------------- -------------------- --------------------
2011-02-02-08.16.04.580034 -1 -1

db2 version is DB2 v9.1.0.9

Reply With Quote
  #4  
Old   
Fin
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-02-2011 , 10:49 AM



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

So, is the database activated ?

Reply With Quote
  #5  
Old   
kavin
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-02-2011 , 10:50 AM



yes the database is Active

Reply With Quote
  #6  
Old   
Fin
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-02-2011 , 11:05 AM



Have you tried taking a manual snapshot from the control center ?
Check to make sure tablespaces SYSTOOLSPACE and SYSTOOLSTMPSPACE have
been created correctly. If the DB2 registry variable DB2_WORKLOAD is
set to SAP, neither the SYSTOOLSPACE nor the SYSTOOLSTMPSPACE will be
created automatically.

Reply With Quote
  #7  
Old   
sanjay kumar
 
Posts: n/a

Default Re: get_dbsize_info is giving output as -1 - 02-10-2011 , 07:02 AM



You will need statistics to be collected for db objects. You might need a runstat on all tables.

Submitted via EggHeadCafe
WCF Generic DataContract object Serializer
http://www.eggheadcafe.com/tutorials...erializer.aspx

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.