472,960 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,960 software developers and data experts.

How full is my Tablespace Container?

Hi all,

(DB2 V7.1 for WinNT)
I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question
is a system managed tablespace in a raw partition. The Control Center always reports 100% usage (although I can insert data...). The
"list tablespace containers for n show detail" command shows the number of usable pages, but they are almost equal to the total
number of pages.

Am I missing something here? Any hints appreciated!
Thanks in advace,
ulrich


Nov 12 '05 #1
4 12972
Are you quite sure!!! In DB2 V7 ( and V8 for that matter), I've alweays
thought that Raw Device containers could only be defined for DATABASE
managed tblspc.
I would think that it has to be a DMS if on raw.
If it is really a SMS then it is defined on a file system (has to, must be).
In this case the container is a directory path and will never show that
level of detail
HTH, Pierre.
"Ulrich Sprick" <ul***********@gmx.de> a écrit dans le message de
news:bu************@ID-126690.news.uni-berlin.de...
Hi all,

(DB2 V7.1 for WinNT)
I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question is a system managed tablespace in a raw partition. The Control Center always reports 100% usage (although I can insert data...). The "list tablespace containers for n show detail" command shows the number of usable pages, but they are almost equal to the total number of pages.

Am I missing something here? Any hints appreciated!
Thanks in advace,
ulrich


Nov 12 '05 #2
I support Pierre's interrogations about dms/sms.
You most likely have an sms on non raw device.

For sms, space useage will report 100% usage because it expands/shrinks on
demand.
DMS as opposed, uses pre-allocated / fixed space.

PM
"Ulrich Sprick" <ul***********@gmx.de> a écrit dans le message de
news:bu************@ID-126690.news.uni-berlin.de...
Hi all,

(DB2 V7.1 for WinNT)
I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question is a system managed tablespace in a raw partition. The Control Center always reports 100% usage (although I can insert data...). The "list tablespace containers for n show detail" command shows the number of usable pages, but they are almost equal to the total number of pages.

Am I missing something here? Any hints appreciated!
Thanks in advace,
ulrich


Nov 12 '05 #3
Hi,
You are right, sorry, of course it is a database managed storage (DMS).
But still the problem: How do I determine how full is it?

ulli
"Pierre Saint-Jacques" <se*****@invalid.net> schrieb im Newsbeitrag news:Ef**********************@weber.videotron.net. ..
Are you quite sure!!! In DB2 V7 ( and V8 for that matter), I've alweays
thought that Raw Device containers could only be defined for DATABASE
managed tblspc.
I would think that it has to be a DMS if on raw.
If it is really a SMS then it is defined on a file system (has to, must be).
In this case the container is a directory path and will never show that
level of detail
HTH, Pierre.
"Ulrich Sprick" <ul***********@gmx.de> a écrit dans le message de
news:bu************@ID-126690.news.uni-berlin.de...
Hi all,

(DB2 V7.1 for WinNT)
I am looking for a way to determine the free space in my tablespace

(containers), but I can't find out. The tablespace in question
is a system managed tablespace in a raw partition. The Control Center

always reports 100% usage (although I can insert data...). The
"list tablespace containers for n show detail" command shows the number of

usable pages, but they are almost equal to the total
number of pages.

Am I missing something here? Any hints appreciated!
Thanks in advace,
ulrich



Nov 12 '05 #4

[ corrected top-posting ]
"Ulrich Sprick" <ul***********@gmx.de> a écrit dans le message de
news:bu************@ID-126690.news.uni-berlin.de...
Hi all,

(DB2 V7.1 for WinNT)
I am looking for a way to determine the free space in my tablespace (containers), but I can't find out. The tablespace in question
is a system managed tablespace in a raw partition. The Control Center

always reports 100% usage (although I can insert data...). The
"list tablespace containers for n show detail" command shows the
number of usable pages, but they are almost equal to the total
number of pages.

Am I missing something here? Any hints appreciated!
Thanks in advace,
ulrich
"Pierre Saint-Jacques" <se*****@invalid.net> schrieb im Newsbeitrag news:Ef**********************@weber.videotron.net. .. Are you quite sure!!! In DB2 V7 ( and V8 for that matter), I've alweays
thought that Raw Device containers could only be defined for DATABASE
managed tblspc.
I would think that it has to be a DMS if on raw.
If it is really a SMS then it is defined on a file system (has to, must be). In this case the container is a directory path and will never show that
level of detail
HTH, Pierre.


"Ulrich Sprick" <ul***********@gmx.de> wrote in message
news:bu************@ID-126690.news.uni-berlin.de... Hi,
You are right, sorry, of course it is a database managed storage (DMS).
But still the problem: How do I determine how full is it?

ulli


For SMS-managed storage, the tablespace will always appear to be 100% full.
This is because space is allocated in the filesystem (for the tablespace
containers) on an as-needed basis. There usually isn't any free space in
SMS containers, unless rows have been deleted and the space has not been
reclaimed (by inserting new rows or by doing a reorg.)

For DMS-managed storage, "Useable pages" will always be close to "Total
pages". The difference between these two values are the number of pages
that DB2 uses for control structures (container tags, extent maps, etc.)

What you really want to look at is the number of "Free pages". "list
tablespaces show detail" will show you the number of useable and free pages
in the tablespace. (In this case, 28672 of 146688 useable pages are free,
so the tablespace has about 20% free.)

Tablespace ID = 24
Name = TS_RAND
Type = Database managed space
Total pages = 147183
Useable pages = 146688
Used pages = 118016
Free pages = 28672

Unfortunately (to answer your original question), DB2 only lists "Free
pages" at the tablespace level, not at the container level. However, since
DB2 accesses containers in a round-robin fashion (on an extent basis), each
container will generally have the same amount of free space -- assuming that
each of your containers is the same size.

--
Matt Emmerton
DB2 OLTP Performance
IBM Toronto Lab
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Eugene | last post by:
Is there a way to capture I/O statistics per tablespace container? Or, as long as DB2 normaly stripes/rebalances data pages across containers, the number of physical reads and/or writes from a...
2
by: maricel | last post by:
Which one is better in terms of producing optimum performance: a) Single tablespace that contain multiple containers, say 5 containers of 100MB each container or b)Single tablespace that that...
2
by: Stanley Sinclair | last post by:
About to create a table which will "include" a BLOB. Am not sure how large to make the container and the tablespace. What I see says that BLOB is stored "separately." However, I don't know...
8
by: Amy DBA | last post by:
OK, I'm stumped now. I need help restoring a tablespace that has been marked offline. Here's a little background on the problem: 1) There was a hardware failure that caused the tablespace to...
4
by: duoduo | last post by:
I want to know one thing, what is best design for tablespace containers, of course, it is DB2 EE 7.2 on AIX 4.3.3. For example, I have RAID 0+1 storage (8 disks) on EMC Symmetrix. Now I need to...
4
by: mairhtin o'feannag | last post by:
Hello, I have a tablespace striped across three drives, call them 1,2,3, just to be clever. :) I allocated a lot more space (DMS) than I should have, since I didn't know a way to estimate the...
4
by: cbielins | last post by:
One of our tablespaces is in an offline state: Tablespace ID = 9 Name = xxx_xxxx Type = Database managed...
0
by: Lan W via DBMonster.com | last post by:
I tried to restore DB2 UDB two databases into two different instances on AIX server. the raw devices size of rShortSpace0 and rShortSpace1 on the two instances are the same. # lsvg -l datavg...
6
by: Konstantin Andreev | last post by:
Hello, all. Let the tablespace SY810T4K is almost full: --------------- db2 =list tablespaces show detail ... Name = SY810T4K Type = Database managed space Contents...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.