View previous topic :: View next topic
|
Author |
Message |
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hi,
how can i check what is PRIQTY and SECQTY allocated for Tablespace?
and how much is actually occupied? |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
As suggested before, you should talk with your dba. . . |
|
Back to top |
|
|
Raghu navaikulam
Active User
Joined: 27 Sep 2008 Posts: 193 Location: chennai
|
|
|
|
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 |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Hey thanks a lot Raghu...
That clarified my doubt.. |
|
Back to top |
|
|
|