472,342 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 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 7331
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...
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?...
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...
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...
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...
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...
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...
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...
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.