473,804 Members | 2,755 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 V9.5 Tablespace -pages missing and Total pg's not equal to useable pg's

16 New Member
Hi friends -

I created a automatic storage tablespace with a pagesize of 16 K and initial size of 64 MB.

create large tablespace test_tbsp1 pagesize 16k managed by automatic storage autoresize yes initialsize 64 M increasesize 64 M maxsize 2 G no extent size 16 prefetchsize 16 bufferpool test_bp1 file system caching dropped table recovery on

so, the number of pages should be (initialsize/pagesize)= (64 MB /16 K) = 4096 pages

========

$ db2pd -db SMPT1 -tablespace 3

Database Partition 0 -- Database SMPT1 -- Active -- Up 0 days 04:48:13

Tablespace 3 Configuration:
Address Type Content PageSz ExtentSz Auto Prefetch BufID BufIDDisk FSC NumCntrs MaxStripe LastConsecPg Name
0x070000006E46A AA0 DMS Large 16384 16 No 16 2 2 Off 9 0 15 TEST_TBSP1

Tablespace 3 Statistics:
Address TotalPgs UsablePgs UsedPgs PndFreePgs FreePgs HWM State MinRecTime NQuiescers
0x070000006E46A AA0 4032 3888 48 0 3840 48 0x00000000 0 0

Tablespace 3 Autoresize Statistics:
Address AS AR InitSize IncSize IIP MaxSize LastResize LRF
0x070000006E46A AA0 Yes Yes 0 0 No 0 None No

Containers:
Address ContainNum Type TotalPgs UseablePgs StripeSet Container
0x070000006E46B 500 0 File 448 432 0 /db2/databases/SMPT1/SPTH7/inst4/NODE0000/SMPT1/T0000003/C0000000.LRG
0x070000006E46B 660 1 File 448 432 0 /db2/databases/SMPT1/SPTH8/inst4/NODE0000/SMPT1/T0000003/C0000001.LRG
0x070000006E46B 7C0 2 File 448 432 0 /db2/databases/SMPT1/SPTH9/inst4/NODE0000/SMPT1/T0000003/C0000002.LRG
0x070000006E46B 920 3 File 448 432 0 /db2/databases/SMPT1/SPTH5/inst4/NODE0000/SMPT1/T0000003/C0000003.LRG
0x070000006E46B A80 4 File 448 432 0 /db2/databases/SMPT1/SPTH1/inst4/NODE0000/SMPT1/T0000003/C0000004.LRG
0x070000006E46B BE0 5 File 448 432 0 /db2/databases/SMPT1/SPTH2/inst4/NODE0000/SMPT1/T0000003/C0000005.LRG
0x070000006E46B D40 6 File 448 432 0 /db2/databases/SMPT1/SPTH3/inst4/NODE0000/SMPT1/T0000003/C0000006.LRG
0x070000006E46B EA0 7 File 448 432 0 /db2/databases/SMPT1/SPTH4/inst4/NODE0000/SMPT1/T0000003/C0000007.LRG
0x070000006E46C 000 8 File 448 432 0 /db2/databases/SMPT1/SPTH6/inst4/NODE0000/SMPT1/T0000003/C0000008.LRG

========


db2 list tablespaces show detail

Tablespace ID = 3
Name = TEST_TBSP1
Type = Database managed space
Contents = All permanent data. Large table space.
State = 0x0000
Detailed explanation:
Normal
Total pages = 4032
Useable pages = 3888
Used pages = 48
Free pages = 3840
High water mark (pages) = 48
Page size (bytes) = 16384
Extent size (pages) = 16
Prefetch size (pages) = 16
Number of containers = 9

=======

From the above command ouput it is clear that the total number of pages is 4032.

Useable pages are only 3888


Questions :

1) Why are the total number of pages not equal to 4096 ?

2) Why are the total pages not equal to useable pages ?


...


Thanks
Pandith
May 1 '09 #1
1 3047
przytula
13 New Member
there are always header pages, and pages used to keep the chain between pages..
best regards, guy przytula
Jun 14 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
7484
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into two. Now if I try to move the partitions to a different tablespace I get an oracle error sayiing that ERROR: ORA_14257 cannot move partition other than a Range or Hash partition Now is there any other way to move the partition to another
1
20354
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace i can not override the NEXT statement? No matter what i set the NEXT storage parameters to, it is always the same as the tablespace default, the INITIAL is overriden just fine. I have included my script below, can someone please point out what...
7
12678
by: tracy | last post by:
hi, i need advise and guidance from experts. Today, I discovered about 1464 tables created in SYSTEM tablespace and the owner is dev_user. As, i read from ORACLE 101 DBA's it said :'System tablespace is a tablespace user to stored objects belong to user SYS only. if, we do not ensure this, the SYSTEM tablespace will : • Tend to get very fragmented • Have potentially severe contention against it and affect performance
1
4585
by: Vikrant | last post by:
On my DB2/UDB system, some tablespace 'Minimum recovery time' is 2000-11-19 or some '1999-10-04' or different, for some tablespace theres is no 'Minimum recovery time' , what does it tell me? Thanks, VKG
6
5743
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook) wasn't a Table Scan. thought this might be a MainFrame thing; but a look at DB2Info on my UDB 7.2 server showed the same thing. this is truly puzzling. is there an explanation of EXPLAIN which describes how to get a Table Scan???? or are we...
5
3321
by: Christian Traber | last post by:
Hi! just playing with tablespaces... - moved a existing table to a new tablespace - tried to move it back to default tablespace (ALTER TABLE accounts SET TABLESPACE pg_default;) Got the following error in logfile:
2
5342
by: vj_dba | last post by:
Hi Group, I have a problem in restoring my tablespace, my database is running in ARCHIVAL logging, I created a tablespace, did some transaction, then took the ONLINE BACKUP of the tablespace. Then I dropped the tablespace and tried to restore from the tablespace backup image, when I do this it's throwing error SQL2549N The database was not restored because either all of the table spaces
1
4559
by: Sam Durai | last post by:
Env: DB2 v9.1 Server / Win XP. DB is enabled for Archival Logging. Was playing around with rebuild tablespace feature. My database 'CARD' has tablespace named t1,t2,t3. Taken couple of individual tablespace backup as below C:\dir1>db2 "backup db card tablespace(syscatspace,userspace1,t1)" Backup successful. The timestamp for this backup image is : 20070402114435
5
4156
by: Mark A | last post by:
I have an OLTP database that has a tablespace that will start out at about 1 TB, but may grow to 75 TB's in size over the next 5 years. When I add new containers (on a new mount point), I want to use the BEGIN NEW STRIPE SET command to avoid rebalancing. Anyone know the maximum number of STRIPE SET's that can be created for a tablespace.
3
7529
by: Justin | last post by:
What is the difference between automatic and DMS Auto-resize tablespace?
0
9705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10074
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7613
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5516
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5647
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4292
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2988
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.