IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is PRIQTY and SECQTY allocated for Tablespace


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Sat Mar 28, 2009 11:59 am
Reply with quote

Hi,
how can i check what is PRIQTY and SECQTY allocated for Tablespace?
and how much is actually occupied?
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Sat Mar 28, 2009 11:49 pm
Reply with quote

Hi Sambhaji

As a programmer there is no need to know these information. These are the responsibility of DBA. For a DBA is concerned, DBA will be well aware of these things.
You can refer the cataloge table SYSIBM.SYSTABLEPART for getting the PQTY and SQTY. There it will be displayed in terms of 4 KB. For getting the usage of storage, SPACE column gives the information in terms of KB.

Hope this will help you
Regards
Raghu
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Mar 30, 2009 2:19 pm
Reply with quote

Thanks Raghu.

I got it.

Quote:
As a programmer there is no need to know these information


Just Curious....

But just one quick question is I have, PQTY given is 400000 while creating tablespace in my test region but in SYSIBM.SYSTABLEPART it is showing PQTY=100000 only.
What could be issue?
Below is SQL used.
Code:

 DSNTIAD  - SAMPLE DYNAMIC SQL PROGRAM 2.0         
                                                   
           SET CURRENT SQLID = 'DEX004'           
DSNT400I SQLCODE = 000,  SUCCESSFUL EXECUTION     
                                                   
           COMMIT                                 
DSNT400I SQLCODE = 000,  SUCCESSFUL EXECUTION     
                                                   
           CREATE TABLESPACE     WEX20400         
                  IN             BEXBATCH         
                  LOCKSIZE       PAGE             
                  BUFFERPOOL     BP1               
                  CLOSE          NO               
                  USING STOGROUP GEX001           
                  PRIQTY         400000           
                  SECQTY         40000             
                  ERASE          NO                                         
DSNT400I SQLCODE = 000,  SUCCESSFUL EXECUTION                               
                                                                           
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Mar 30, 2009 8:30 pm
Reply with quote

Hello,

As suggested before, you should talk with your dba. . .
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 193
Location: chennai

PostPosted: Mon Mar 30, 2009 11:32 pm
Reply with quote

Hi
This is because when creating a Tablespace the PRIQTY and SECQTY is given in terms of KB only. But when you query it, DB2 will give the result in terms of page size. From your post, your page size is 4KB( BP1). That is why 400000 became 100000. Here you are having 100000 pages of 4 KB size.

Hope you got it.
Regards
Raghu
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Tue Mar 31, 2009 12:03 pm
Reply with quote

Hey thanks a lot Raghu...

That clarified my doubt.. icon_smile.gif icon_smile.gif icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Allocated cylinders of a dataset DB2 12
No new posts force tablespace using LISTDEF input DB2 1
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
No new posts Map VSAM Dataset to a Table/Tablespace DB2 5
No new posts REXX allocated datasets in JCL CLIST & REXX 9
Search our Forums:

Back to Top