473,497 Members | 2,124 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 13024
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
2130
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
2070
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
10225
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
12694
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
3543
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
14375
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
11150
by: cbielins | last post by:
One of our tablespaces is in an offline state: Tablespace ID = 9 Name = xxx_xxxx Type = Database managed...
0
1474
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
3845
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
7120
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,...
0
7160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6878
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7373
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...
0
5456
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4583
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...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
649
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
286
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...

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.