473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

reclaim disk space

does a command like,
db2 drop table tabschema.tabname when run from the Aix prompt reclaim
the disk space? Are there any other options? How can we make sure the
disk space is reclaimed?
Thanks,
Yasaswi
Nov 12 '05 #1
5 7506
ya*****@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa**************************@posting.google. com>...
does a command like,
db2 drop table tabschema.tabname when run from the Aix prompt reclaim
the disk space? Are there any other options? How can we make sure the
disk space is reclaimed?
Thanks,
Yasaswi


Do you mean reclaim within the tablespace? or do you mean reclaim
within the file system?

If the tablespace is SMS you will reclaim space within the file
system.

If it is DMS it will reclaim space within the tablespace for other
tables/indexes to be created within the same tablespace, but it will
not reclaim space for the file system.
Nov 12 '05 #2
I think it will reclaim the space, you can have a look at the
tablespace and find out if the number of free pages (DMS) increases or
not. However, the OS/filesystem will not report any reduction in
comsumed space, as in DMS the space is preallocated to them.

db2 "list tablespaces show detail"

Used pages = 171115
Free pages = 21035

Incase of SMS, you should simply see a decrease in the number of used
pages. I think the OS/filesystem will reflect this reduction.

Probably, someone else can further point out on this one.

hth,
dotyet

ya*****@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa**************************@posting.google. com>...
does a command like,
db2 drop table tabschema.tabname when run from the Aix prompt reclaim
the disk space? Are there any other options? How can we make sure the
disk space is reclaimed?
Thanks,
Yasaswi

Nov 12 '05 #3
Hi Mark:
So it there a command to force DMS to reclaim space on the OS as well?
Or by very definition that space is preallocated to DMS tablespaces, I
can never reclaim OS space on filesystem or specifically in the
"container".
Thanks,
Yasaswi

-------------------------

m0****@yahoo.com (Mark) wrote in message news:<a5**************************@posting.google. com>...
ya*****@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa**************************@posting.google. com>...
does a command like,
db2 drop table tabschema.tabname when run from the Aix prompt reclaim
the disk space? Are there any other options? How can we make sure the
disk space is reclaimed?
Thanks,
Yasaswi


Do you mean reclaim within the tablespace? or do you mean reclaim
within the file system?

If the tablespace is SMS you will reclaim space within the file
system.

If it is DMS it will reclaim space within the tablespace for other
tables/indexes to be created within the same tablespace, but it will
not reclaim space for the file system.

Nov 12 '05 #4
I think you got it wrongly interpreted.
SMS -
As you drop a table, the table is actually a file in the SMS drirectory
container and the file is erased and the space is immediately reclaimed
at the file system level.
DMS-
Since the container is either a file or a raw device, the space WITHIN
that file is immediately reclaimed and made available but only to the
objects that have been created using that tablespace.
Since the file system space is allocated at creat tablespace time and
remains fixed unless you alter tablespace, then the sdpace NOT reclaimed
at the file system level.

To reclaim DMS dropped tables space from the file system in a DMS
container, you will have to "play" with the High Water Mark of the
containers and with the alter tablespace option of reduce or drop.
HTH, Pierre.

Yasaswi Pulavarti wrote:
Hi Mark:
So it there a command to force DMS to reclaim space on the OS as well?
Or by very definition that space is preallocated to DMS tablespaces, I
can never reclaim OS space on filesystem or specifically in the
"container".
Thanks,
Yasaswi

-------------------------

m0****@yahoo.com (Mark) wrote in message news:<a5**************************@posting.google. com>...
ya*****@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa**************************@posting.google. com>...
does a command like,
db2 drop table tabschema.tabname when run from the Aix prompt reclaim
the disk space? Are there any other options? How can we make sure the
disk space is reclaimed?
Thanks,
Yasaswi


Do you mean reclaim within the tablespace? or do you mean reclaim
within the file system?

If the tablespace is SMS you will reclaim space within the file
system.

If it is DMS it will reclaim space within the tablespace for other
tables/indexes to be created within the same tablespace, but it will
not reclaim space for the file system.


--
Pierre Saint-Jacques - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Nov 12 '05 #5
ya*****@encfor.com (Yasaswi Pulavarti) wrote in message news:<aa**************************@posting.google. com>...
Hi Mark:
So it there a command to force DMS to reclaim space on the OS as well?
Or by very definition that space is preallocated to DMS tablespaces, I
can never reclaim OS space on filesystem or specifically in the
"container".
Thanks,
Yasaswi

The containers in a DMS tablespace are pre-allocated to the OS.
However, you can reduce the size of containers in V8 (see "alter
tablespace" SQL statement). If you need to reduce the size of
containers to below the high-water mark, you may need to run db2dart
command (see the /LHWM option).
Nov 12 '05 #6

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

Similar topics

3
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. It doesn't happen all the time but it does happen. When...
1
by: Paul | last post by:
Hi: I am totally new in Sun Solaris. I am not sure someone would like to tell me how to rellocate Sun Solaris disk space where oracle installed? I installed Oracle 8i in Sun Solaris and set...
2
by: Sagar Choudhary | last post by:
Is there any exception related to disk space ? If not how else can we check the availability of the disk space in a c++ program. I know ostream helps a bit. When we try to open a file when there's...
6
by: Anthony Robinson | last post by:
I am trying to instal FixPak 4 for V8 on XP. I kept getting an error. During the install, I kept getting the "low disk space on c:" message. My C; drive has 1.4 GB of free space. I can't believe...
12
by: New World Order Pigs | last post by:
Is there no way in .net to get disk space remaining for a given drive??? I can't believe it and yet is seems to be so. If someone knows of a way to do this in the .net libraries I'd be very much...
0
by: Jas Shultz | last post by:
I'm using Win2K3 Enterprise edition with the latest .NET framework installed. I have this problem with getting "out of disk space" errors. It doesn't happen all the time but it does happen. When...
3
by: A P | last post by:
Hi, I am loosing disk space and wanting to install .Net Framework on my W2KSP4 Server. I only have 400MB available, is this enough for me to install .Net Framework? Me
5
by: Nacho | last post by:
Hello, I tried to make what one reply advice to recover the disk space after DROPed columns but it doesn't work. I did DBCC DBREINDEX to the table but nothing changes. Any other solution? ...
0
by: DannielHS | last post by:
- Windows created the low disk space warning to alert computer users when their hard drive is running low on available disk space. Then you will see on a fairly regular basis as your hard drive fills...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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
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,...

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.