Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Allocated Space for Tables in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Sivagurunathan Jagadeesan

New User


Joined: 06 Mar 2007
Posts: 32
Location: India

PostPosted: Mon Jul 13, 2009 10:57 am    Post subject: Allocated Space for Tables in DB2
Reply with quote

Hi,

I am trying to find out the “Allocated” space for tables in Test Database, by using PQTY, SQTY and Extents, which I get by executing the following query in Test DB,

SELECT B.TBNAME, A.PQTY, A.SQTY, MAX(A.EXTENTS)
FROM SYSIBM.SYSINDEXPART A,
SYSIBM.SYSINDEXES B
WHERE A.IXNAME = B.NAME
AND A.IXCREATOR LIKE 'ABC%'
GROUP BY B.TBNAME, A.PQTY, A.SQTY


Formula used to find the Allocated Space is,

((PQTY*4)/720 + EXTENTS+[(SQTY*4)/720)])

Can anyone let me know if the above formula will give the correct result? If not, is there a alternate way to find the Space using PQTY,SQTY and Extents.

Thanks for the help,
Siva
Back to top
View user's profile Send private message

Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon Jul 13, 2009 11:52 pm    Post subject: Reply to: Allocated Space for Tables in DB2
Reply with quote

No
Back to top
View user's profile Send private message
Sivagurunathan Jagadeesan

New User


Joined: 06 Mar 2007
Posts: 32
Location: India

PostPosted: Tue Jul 14, 2009 8:43 am    Post subject: Allocated Space for Tables in DB2
Reply with quote

Thanks a lot for your reply, anyway I could not make much out of it……
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jul 14, 2009 1:21 pm    Post subject:
Reply with quote

Check if this link works for you Space calculation for table creation.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts Release quantity that was allocated v... Auryn JCL & VSAM 5 Thu May 18, 2017 6:02 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us