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 > Space calculation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-15-08, 12:13
deadmanthedba deadmanthedba is offline
Registered User
 
Join Date: Jun 2008
Posts: 16
Space calculation

Hi there,

I need to calculate space(together primary + secondary) with which TS was defined that also has 200+ partitions.

No matter if it is a segmented/simple/partitioned. I just want total space together primary+secondary.

Can somebody guide me where could I get this information from in catalog tables?

I tried in SYSIBM.SYSTABLESPACE - COLUMN SPACE, that does not give accurate results.

Steve Wawzynzak
Reply With Quote
  #2 (permalink)  
Old 09-15-08, 12:25
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Try looking at the stospace utility.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-15-08, 12:32
deadmanthedba deadmanthedba is offline
Registered User
 
Join Date: Jun 2008
Posts: 16
Marcus,

Thanks!

These are the PROD tables I am talkin about... is there any other way out?

Steve Wawzynzak
Reply With Quote
  #4 (permalink)  
Old 09-15-08, 15:13
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
I don't understand your concern. The DB2 STOSPACE utility determines the amount of space allocated for DB2 storage groups and their related table spaces and indexes. The utility updates DB2 system tables with the information it gathers.

Output from this utility consists of DB2 updates to the following tables:

SYSIBM.SYSINDEXES
SYSIBM.SYSTABLESPACE
SYSIBM.SYSSTOGROUP

After STOSPACE execution is complete, use an SQL SELECT to view the tables that STOSPACE changed.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 09-15-08, 15:55
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by deadmanthedba
I need to calculate space(together primary + secondary) with which TS was defined
DB2 for z/OS?
If you say "with which it was defined", do you mean "how can I read from the catalog which were 'n' and 'm' ", in
Code:
CREATE TABLESPACE USING STOGROUP <name> PRIQTY 'n' SECQTY 'm'
?
Have a look at the two columns PQTY and SQTY in sysibm.systablepart.
Then multiply those numbers with 4 to obtain 'n' and 'm' respectively.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
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