472,789 Members | 901 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,789 software developers and data experts.

Reducing the high water mark for LOB tablespace.

I have a tablespace that contains the LOB data for 3 tables which exist
in other tablespaces. Even after reorging the LOB tablespace with the
LONG option, the high water mark is still too high. I want to be able
to shrink the tablespace below the current high water mark and return
the excess space back to the filesystem. Is there another way to lower
the HWM without exporting the data to another tablespace, dropping and
recreating the tables, and importing the data back in? The OS is AIX
5.2 while the database itself is UDB 8.1 fixpack 6. In the create
table statement the LOB columns are declared as compact.

Please let me know if you need any further information.

Thanks.

Jun 9 '06 #1
4 6033
> I have a tablespace that contains the LOB data for 3 tables which exist
in other tablespaces. Even after reorging the LOB tablespace with the
LONG option, the high water mark is still too high. I want to be able
to shrink the tablespace below the current high water mark and return
the excess space back to the filesystem. Is there another way to lower
the HWM without exporting the data to another tablespace, dropping and
recreating the tables, and importing the data back in? The OS is AIX
5.2 while the database itself is UDB 8.1 fixpack 6. In the create
table statement the LOB columns are declared as compact.


Try db2dart /LHWM

Its likely that the HWM is being held by an SMP extent. If the extent
is truly empty, then db2dart can mark it unused (/RHWM option), which
will allow you to release space back to the fs.

jsoh

Jun 9 '06 #2

Josh Tiefenbach wrote:
I have a tablespace that contains the LOB data for 3 tables which exist
in other tablespaces. Even after reorging the LOB tablespace with the
LONG option, the high water mark is still too high. I want to be able
to shrink the tablespace below the current high water mark and return
the excess space back to the filesystem. Is there another way to lower
the HWM without exporting the data to another tablespace, dropping and
recreating the tables, and importing the data back in? The OS is AIX
5.2 while the database itself is UDB 8.1 fixpack 6. In the create
table statement the LOB columns are declared as compact.


Try db2dart /LHWM

Its likely that the HWM is being held by an SMP extent. If the extent
is truly empty, then db2dart can mark it unused (/RHWM option), which
will allow you to release space back to the fs.

josh


Thanks for the suggestion but this just offers suggrestions for
reducing the HWM, but doesn't actually lower it.

Patrick

Jun 11 '06 #3
Found this in the manuals....

After deleting 10 - 13GB of data from the table and running a REORG, no
space is reclaimed; the size of the table space did not decrease.

Cause
When an SMS tablespace is used a REORG is not going to reclaim space.
An SMS table space is defined as a directory. The directory uses the
space available on the underlying file system. When a row is inserted
and subsequently deleted in an SMS table space, the space is reused.
The data for an SMS table space is always contiguous and there are
never any empty pages in the table space. The files in the SMS
directory will not change in size.

Solution

The only way to make the LOB file decrease in size in an SMS table
space is to do an EXPORT/LOAD of the data in the table. When you LOAD
data into an empty table the data is placed in a contiguous fashion and
there should be no free space. Here are your steps for doing the
EXPORT/LOAD:

1. EXPORT the data
2. drop the table
3. re-create the DDL for the table
4. LOAD data
Cheers....
Shashi Mannepalli

Patrick wrote:
Josh Tiefenbach wrote:
I have a tablespace that contains the LOB data for 3 tables which exist
in other tablespaces. Even after reorging the LOB tablespace with the
LONG option, the high water mark is still too high. I want to be able
to shrink the tablespace below the current high water mark and return
the excess space back to the filesystem. Is there another way to lower
the HWM without exporting the data to another tablespace, dropping and
recreating the tables, and importing the data back in? The OS is AIX
5.2 while the database itself is UDB 8.1 fixpack 6. In the create
table statement the LOB columns are declared as compact.


Try db2dart /LHWM

Its likely that the HWM is being held by an SMP extent. If the extent
is truly empty, then db2dart can mark it unused (/RHWM option), which
will allow you to release space back to the fs.

josh


Thanks for the suggestion but this just offers suggrestions for
reducing the HWM, but doesn't actually lower it.

Patrick


Jun 12 '06 #4
> Thanks for the suggestion but this just offers suggrestions for
reducing the HWM, but doesn't actually lower it.


Well, yes. the /LHWM option is designed to report to you the options
that you have. The /RHWM option is only useful if the HWM is being
'artificially' being held up by an object table or SMP extent.

Dart will not export/reload data for you, should that be the only
option available to you.

jsoh

Jun 12 '06 #5

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

Similar topics

3
by: sql-db2-dba | last post by:
When I did db2batch to benchmark a query, it performance details came back with this reading ... "High water mark for database heap = 4291373408" Does this mean it would have caused memory...
1
by: Erik Hendrix | last post by:
Hi, I have some questions related to stripe sets that I'm hoping someone here can answer. 1) What happens to stripe sets when doing a database restore? Do they stay as is? 2) What happens...
1
by: bwmiller16 | last post by:
Folks - I'm seeing this warning on the log...I'm curious if it has a more sinister meaning than what's expressed here. It seems to me that if IBM wants me to know about this then there might be...
8
by: p175 | last post by:
Express C v9.1 I'm having a hell of a job trying to reduce the highwater mark for various tablespaces in Express C. DB2MART advises to reorg several tables with LONGLOBDATA and to disconnect,...
1
by: Asphalt Blazer | last post by:
How can you reduce high water mark of a DMS tablespace? I have tablespace quite huge, but I dont need it thatt size anymore. There is no way though to reduce the ts size as the highwater mark is...
0
by: Ntsakane | last post by:
guys,im new in db2 and im seeing sth called High Water mark. what is it.how does it impact the database and what isthe recommended HWM???
3
by: alexhguerra | last post by:
hello folks anyone knows how to reset tablespace high watermarks counters? thanks alexandre
1
by: Lennart | last post by:
I'm trying to create a testdatabase from a productiondatabase. The steps I've gone through so far are: export data with certain criteria from roughly 150 tables drop f.k pointing to these tables...
4
by: | last post by:
Hi: how to reduce the tablespace's High water mark? ths!
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
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=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
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...

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.