473,385 Members | 1,465 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.

about online reorg

Hi,

Just wondering, is there any way to do the online reorg to use
temporary tablespace instead of tablespace table existed.

since that is really a waste to have some space allocated aside only
for the online reorg ..

I know offline reorg could use temporary tablespace ..is that so
difficult to add this feature to online reorg?

maybe had some reason ..

just think if there is a way to do that , that would be perfect.
Jul 9 '08 #1
3 3669
Ian
jane wrote:
Hi,

Just wondering, is there any way to do the online reorg to use
temporary tablespace instead of tablespace table existed.

since that is really a waste to have some space allocated aside only
for the online reorg ..

I know offline reorg could use temporary tablespace ..is that so
difficult to add this feature to online reorg?

maybe had some reason ..
You're misunderstanding the key difference between offline and inplace
reorg.

Offline reorg creates a copy of the *entire* table, and then drops the
old copy of the table. If you don't have enough space in the original
tablespace to create this copy (or are really concerned about the
tablespace HWM) you can tell the offline reorg to build a copy in a
temporary tablespace. When it does this, it builds the copy in the
temp tablespace, drops the original table, and then copies the data
from the temp tablespace back to the original data tablespace.
For online (a.k.a. inplace) reorg, DB2 does the cleanup a page at a
time. So instead of having overhead of 2*table size, you only have
a few extra pages overhead. Therefore, it makes no sense to use a
temporary tablespace for an inplace reorg.

Jul 10 '08 #2
On Jul 10, 11:33*am, Ian <ianb...@mobileaudio.comwrote:
jane wrote:
Hi,
Just wondering, is there any way to do theonlinereorgto use
temporarytablespaceinstead oftablespacetable existed.
since that is really a waste to have some space allocated aside only
for theonlinereorg..
I know offlinereorgcould usetemporarytablespace..is that so
difficult to add this feature toonlinereorg?
maybe had some reason ..

You're misunderstanding the key difference between offline and inplacereorg.

Offlinereorgcreates a copy of the *entire* table, and then drops the
old copy of the table. *If you don't have enough space in the originaltablespaceto create this copy (or are really concerned about thetablespaceHWM) you can tell the offlinereorgto build a copy in atemporarytablespace. *When it does this, it builds the copy in the
temptablespace, drops the original table, and then copies the data
from the temptablespaceback to the original datatablespace.

Foronline(a.k.a. inplace)reorg, DB2 does the cleanup a page at a
time. *So instead of having overhead of 2*table size, you only have
a few extra pages overhead. *Therefore, it makes no sense to use atemporarytablespacefor an inplacereorg.- Hide quoted text -

- Show quoted text -
Thanks for your reply..

but I'm still not quite understand the reorg inplace..

let's say even one extent at a time, it would not cause my tablespace
full if we do reorg online in the tablespace..but why I keep on
getting tablespace full message .. it seems more safer if I had
tablespace 50% free to do the online reorg...
Jul 17 '08 #3
Ian
jane wrote:
>
Thanks for your reply..

but I'm still not quite understand the reorg inplace..
The manual describes it better than I did:

http://publib.boulder.ibm.com/infoce...c/c0024854.htm

let's say even one extent at a time, it would not cause my tablespace
full if we do reorg online in the tablespace..but why I keep on
getting tablespace full message .. it seems more safer if I had
tablespace 50% free to do the online reorg...
If you're getting tablespace full errors, how full is your tablespace
when you start the reorg?
Jul 18 '08 #4

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

Similar topics

27
by: Raquel | last post by:
This question if for UDB on LUW. Suppose I take regular database backups of my database Monday: database backup <ts1> Tuesday: Tablespace reorged and imagecopied <ts2> Friday: database...
9
by: Lara | last post by:
Hello freaks, we have many problems with our online reorg and no idea how to resolve it. We had to do an online reorg beacause of 24 h online business. We start the reorg-statements (table by...
4
by: GB | last post by:
Hi All, I would like to optimize my reorgs. Here are several ways to shorten reorgs or keep data online during reorgs: - db2 reorg has some shrlevel option: reference or change - db2 v7 has...
16
by: andy.standley | last post by:
Hi, we are running DB2 V8.2 (8.1.0.80) on redhat linux and I am trying to set the reorg to be online. I use the control center on the box - db2cc and then configure automatic maintenance wizard -...
0
by: Rojo Royo | last post by:
Hi, I am using Q replication on a system 390 running DB2 version 7. When I replicating data no problem and then suddenly someone does an online reorg, my databases loses synchronization source...
4
by: db2group88 | last post by:
Hello, we are using db2 udb v8.2 on windows. if we need to run a reorg and runstats monthly, i think the best way to do them is via the tool "Configure Automatic Maintainance". I find out that...
9
by: mike_dba | last post by:
I am using DMS raw. I have a tablespace which is defined with 5 containers each allocated at 1.5 GB for a total of about 7.5 GB. I did a major deletion followed by a reorg and a runstats. I am...
0
by: bwmiller16 | last post by:
Hi All - OSName: AIX NodeName: dr_aixdb01 Version: 5 Release: 3 dr_aixdb01$db2level DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08027"
0
by: tg | last post by:
I have been using the online reorg for over 2 years without any problems. I have just encountered a log full condition after having started the online reorg on the same table that I have been...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?

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.