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 > What feeds get_dbsize_info

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-06-06, 09:31
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
What feeds get_dbsize_info

Morning,

I have been trying to find how get_dbsize_info function calculates db size. Does it read the catalog table and in this case how does it deal with the tables that haven't had runstats collected on? Or does it read file system?

Thank you.

8.2 aix 5.1
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #2 (permalink)  
Old 03-06-06, 10:24
JAYANTA_DATTA JAYANTA_DATTA is offline
Registered User
 
Join Date: Oct 2004
Location: DELHI INDIA
Posts: 336
Seems it takes information from the TABLESPACE details. Like the USEDPAGES/PAGESIZE.
Reply With Quote
  #3 (permalink)  
Old 03-06-06, 10:46
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
IIRC, it takes information from some SYSPROC table functions/Procedures ...

What I would suggest is to create a event monitor - write to table and capture the SQL Stmts and package sections when you execute your dbsize_info procedure ... If there are static SQLs in the event monirot output, join the table with SYSCAT.STATEMENTS table to find the statements ..

Apart from the SQL statements, there could be more processing done in the Stored Proc 'ouside SQL'

Cheers
Sathyaram

Quote:
Originally Posted by Cougar8000
Morning,

I have been trying to find how get_dbsize_info function calculates db size. Does it read the catalog table and in this case how does it deal with the tables that haven't had runstats collected on? Or does it read file system?

Thank you.

8.2 aix 5.1
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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