473,851 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Shrinking "automatic storage" tablespaces

Folks,

I've got a database and tablespaces "managed by automatic storage".

I've deleted a lot of data from some tables. I've then reorged them. But
the tablespaces don't appear to shrink in size (they just have lots of free
space).

How can I get DB2 to give the space back ?

Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.

Thanks

Phil Nelson

Jun 6 '06 #1
4 5103
Did u check the HIGH WATER MARK for these tablespace?
Did u try to do a OFFLINE REORG on all these tables?

If that didn't help try db2dart ..check in the manuals for /DHWM and
/LHWM

cheers..
Shashi Mannepalli
Philip Nelson wrote:
Folks,

I've got a database and tablespaces "managed by automatic storage".

I've deleted a lot of data from some tables. I've then reorged them. But
the tablespaces don't appear to shrink in size (they just have lots of free
space).

How can I get DB2 to give the space back ?

Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.

Thanks

Phil Nelson


Jun 7 '06 #2
Shashi Mannepalli wrote:
Did u check the HIGH WATER MARK for these tablespace?
Did u try to do a OFFLINE REORG on all these tables?

If that didn't help try db2dart ..check in the manuals for /DHWM and
/LHWM

cheers..
Shashi Mannepalli
Philip Nelson wrote:
Folks,

I've got a database and tablespaces "managed by automatic storage".

I've deleted a lot of data from some tables. I've then reorged them. But
the tablespaces don't appear to shrink in size (they just have lots of free
space).

How can I get DB2 to give the space back ?

Being automatic storage I can't use an ALTER TABLESPACE ... RESIZE.

Thanks

Phil Nelson



HWM was the first thing I thought of, but that isn't the problem.

It looks like automatic storage doesn't like shrinking tables, only
growing them.

Maybe I need to raise an "enhancemen t request" ?

Phil
Jun 7 '06 #3
Philip Nelson wrote:
Maybe I need to raise an "enhancemen t request" ?

Please do.
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jun 7 '06 #4
> I've deleted a lot of data from some tables. I've then reorged them. But
the tablespaces don't appear to shrink in size (they just have lots of free
space).

How can I get DB2 to give the space back ?


Right now, the only way you can do this is to export the data,
drop/recreate the tablespace, and re-import the data.

jsoh

Jun 7 '06 #5

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

Similar topics

2
2507
by: Ameen Dausha | last post by:
Okay, I am using a web host that has squirrel mail working, as well as Drupal. However, I am trying to install my own version of squirrel mail. Both Drupal and Squirrelmail seem to rely on the same start_session() and both share the same php.ini. However, I get the dreaded "Fatal error: session_start(): Failed to initialize storage module" error. I have seen hundreds of similar errors cited when I Google, yet I see no serious...
7
1439
by: Johann Blake | last post by:
It would be nice to have Visual Studio .NET automatically break into the code whenever an event is generated without having to explicity set a breakpoint. It often happens that when a piece of code is executed, it automatically forces events somewhere else in code to be raised. Sometimes these events are generated by the source code written by the developer and sometimes they are done by controls or other behind-the-scenes code that was...
3
1944
by: Mark | last post by:
Hello, Recently I have not been able to open an asp.net page in MDE's web from designer. I recieve the following error: "The file failed to load in the web from designer. Please correct the following error, then load again: Not enough storage is available to complete this operation" I have 54Gigs of free space and a gig of ram. Rebooting has not helped. This is the GUI portion of a web project that is spilt into a DAL, BLL and
1
11295
by: Philip Bondi | last post by:
Hello to all SQL Server junkies who work with non-English characters: For people running scripts from the command line using ANSI files with special characters, it is very important to use isql and disable "Automatic ANSI to OEM conversion": - This only affects isql from the command line, and no gui applications - http://support.microsoft.com/?scid=kb;EN-US;153449 - Start the "Client Network Utility" C:\WINDOWS\system32\cliconfg.exe
1
1656
by: rnot | last post by:
I encounter the following error mesagess (Linker errors I think cause it compiles well) whenever I try to define my classes in a global scope. I have four files: DataGrabber.h, Datagrabber.cpp, EDRTSV1.h, EDRTSV1.cxx I am using VC++ 6 (Yep I know). // DataGraber.h #ifndef DataGrabber #define DataGrabber #include "EDRTSV1.h"
3
1575
by: schouwla | last post by:
Hi, I am a c# newbies.. I am having some problems with my dll it sometimes get's added to my cache even I don't want it to land there. My assembly is added to the cache here: C:\Documents and Settings\<USERNAME>\Local Settings\Application Data\assembly\dl3\P1ZM0W08.2LP\GQ9AD27V.M5C\8eb9c117\84f16698_922fc701
0
1316
by: sherkhan | last post by:
Hello Everyone. I have come across this article (http://dast.nlanr.net/Projects/ Autobuf_v1.0/autotcp.html) called "Automatic TCP window tuning". After my first newbie file transfer I wrote and found that it was just extremely slow over net, compared to http or ftp. I have been thinking of reasons. After reading the article I modified the server and clients.. in the following way.. server...
11
3173
by: eBob.com | last post by:
I have this nasty problem with Shared methods and what I think of as "global storage" - i.e. storage declared outside of any subroutines or functions. In the simple example below this "global" storage is ButtonHasBeenClicked. In this simple example code in Form1 calls a routine in Module1 which then calls code back in Form1 (subroutine WhatEver). WhatEver needs to access ButtonHasBeenClicked but the reference to ButtonHasBeenClicked...
0
9895
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
9744
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11011
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10670
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10725
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7900
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
5931
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4547
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
3
3178
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.