473,385 Members | 2,269 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,385 software developers and data experts.

reduce % of used DMS tablespace

Sue
Hi, I have a DB2 database with database managed (DMS) tablespaces. One
of the tables that I have contains BLOB data. Recently I noticed that
75% of the tablespace for this table was being used up. So I deleted 50
records from the table freeing about 50 to 100 GB of space. But even
after deleting the records I found that the %age of tablespace used
still remains the same at 75%. What will I need to do to reclaim the
deleted space so that the % of tablespace used is reduced? Thank you
very much.

Dec 2 '05 #1
3 2043
If you deleted BLOBs, you will need to run a classic REORG with
LONGLOBDATA to free up the space from the deleted BLOBS. Unfortunately,
the table will be locked from updates while the classic REORG runs,
which, given the data size you mentioned, could take a while.

Good luck,

Fred

Dec 2 '05 #2
Sue
Thank you very much for the quick reply -- a classic reorg would mean,
go to the DB2 control panel, select the table, right click on it and on
the menu that shows up select "reorganize"? Also is it a good idea to
select the option "use existing index"? Also online or offline for
better results? Thank you again.

fr**********@gmail.com wrote:
If you deleted BLOBs, you will need to run a classic REORG with
LONGLOBDATA to free up the space from the deleted BLOBS. Unfortunately,
the table will be locked from updates while the classic REORG runs,
which, given the data size you mentioned, could take a while.

Good luck,

Fred


Dec 2 '05 #3
You want to do an offline reorg.
On line requires more time and more log space. Ofline, you can still
specify ALLOW READ
It is the only way that you will BOTH reclaim empty space and resequence
data using the index you name.
It may not be necessary to resequence the data, it depends what the output
of the reorgchk command recommends.

The classic reorg by default does not reorganize and reclaim empty space for
lob data. That's why Sue recoomends using the LOLOBDATA parameter.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Sue" <se*****@hotmail.com> a écrit dans le message de news:
11**********************@f14g2000cwb.googlegroups. com...
Thank you very much for the quick reply -- a classic reorg would mean,
go to the DB2 control panel, select the table, right click on it and on
the menu that shows up select "reorganize"? Also is it a good idea to
select the option "use existing index"? Also online or offline for
better results? Thank you again.

fr**********@gmail.com wrote:
If you deleted BLOBs, you will need to run a classic REORG with
LONGLOBDATA to free up the space from the deleted BLOBS. Unfortunately,
the table will be locked from updates while the classic REORG runs,
which, given the data size you mentioned, could take a while.

Good luck,

Fred


Dec 3 '05 #4

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

Similar topics

0
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into...
1
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace...
7
by: tracy | last post by:
hi, i need advise and guidance from experts. Today, I discovered about 1464 tables created in SYSTEM tablespace and the owner is dev_user. As, i read from ORACLE 101 DBA's it said :'System...
4
by: maricel | last post by:
Could someone confirm which tablespace is being used when running ALTER & CREATE INDEX. Is it the tempspace or the tablespace where the table resides? Many thanks, maricel
6
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook)...
2
by: Raghava | last post by:
hi all, i was working on DB2 and came across an issue. i.e. can a tablespace be rollforwarded to POINT-IN-TIME? the scenario is as follows: i created a data base and a tablespace in it. i have...
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...
3
by: Reshmi Jacob | last post by:
Hello.......... My user tablespace which I used before for all transactions is now about 8 GB of my Harddisk. I have dropped users & objects but still the same size. I went to DBA studio and tried...
4
by: rajdb2 | last post by:
How to reduce the highwatermark for a DMS tablespace in V8.2? I have tried doing classic reorg on the table in the tablespace twice, but the highwatermark is lowered. Any ideas?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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...

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.