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 > dbsize

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-07, 11:53
rajesh_1972 rajesh_1972 is offline
Registered User
 
Join Date: Oct 2006
Posts: 15
dbsize

What is the command to find out dbsize of a database. Please throw your ideas. Your ideas are appreciated.
Reply With Quote
  #2 (permalink)  
Old 02-19-07, 12:00
koganti koganti is offline
Registered User
 
Join Date: Jul 2002
Location: ATL
Posts: 170
db2 list utilities show details will show the size of the database while the backup is running.

or

db2 list tablespaces show detail and calculate the size of each tablespace
Reply With Quote
  #3 (permalink)  
Old 02-20-07, 03:19
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
or if using v9 get_dbsize_info procedure wil tell this
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
Reply With Quote
  #4 (permalink)  
Old 02-20-07, 04:06
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Quote:
Originally Posted by guyprzytula
or if using v9 get_dbsize_info procedure wil tell this
even v 8.2.0 LUW supports sysproc.get_dbsize_info
__________________
Rahul Singh
Certified DB2 9 DBA / Application Developer
Reply With Quote
  #5 (permalink)  
Old 02-20-07, 06:01
sansaniwal sansaniwal is offline
Registered User
 
Join Date: Feb 2007
Posts: 6
Also through control center you can get the db size after clicking on connect on bottom right corner of control center.
but for the version should be v 8.2.0 with fix pack 12 or lower fix pack.

Thanks & Regards,
deepak Sansaniwal
DBA
Reply With Quote
  #6 (permalink)  
Old 02-21-07, 19:42
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Hey,

I've been trying to get
Code:
db2 "call GET_DBSIZE_INFO(?,?,?,-1)"
to work but I keep getting

Code:
SQL0443N  Routine "*IZE_INFO" (specific name "") has returned an error
SQLSTATE with diagnostic text "SQL0204  Reason code or token: SYSTOOLSPACE
".  SQLSTATE=38553
I believe it has something to do with the OUT params but all the examples say to use a '?'.

I'm following this:
http://www-1.ibm.com/support/docview...id=swg21231144

I'm using v8 FP9 on AIX

EDIT: Nevermind.... I was bein stupid... I just created the systoolspace and all is well ...DUHHHH! :P

Last edited by meehange; 02-21-07 at 19:49.
Reply With Quote
  #7 (permalink)  
Old 02-26-07, 13:14
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Have you run the "db2updv8" on your database? I guess not because the error message means that some routine named SYSTOOLSPACE is not available:
Code:
$ db2 "? sql204"

SQL0204N "<name>" is an undefined name.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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