473,809 Members | 2,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reorg of very large tables

Does anyone know of any good tools for fast, on-line reorgs of a very
large DB2 UDB table?

We need to reorg a couple of our large (+1 billion rows) tables. We
migrated from V7.2 to V8.1, but we still have type-1 indexes defined on
our tables, and cannot take advantage of the new Online Reorg utility
in V8. We could drop and recreate our indexes, but we have a lot (20+)
indexes on some of our larger tables, and that would take days, which
we don't have.

REORGCHK is starting to show that these tables are ready for a reorg,
and we'd like to get some of the free space back, to avoid expands, but
I'm not sure how.

Does anyone else have this problem? How are you reorging your
datawarehouse tables or are you not reorging them at all? Are there
any third party tools that would allow us to do inplace reorgs without
converting to type-2 indexes?

Any advice would be appreciated.

Thanks

Nov 12 '05 #1
2 4371
"Molly" <mo*******@exci te.com> a écrit dans le message de
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
Does anyone know of any good tools for fast, on-line reorgs of a very
large DB2 UDB table?

We need to reorg a couple of our large (+1 billion rows) tables. We
migrated from V7.2 to V8.1, but we still have type-1 indexes defined on
our tables, and cannot take advantage of the new Online Reorg utility
in V8. We could drop and recreate our indexes, but we have a lot (20+)
indexes on some of our larger tables, and that would take days, which
we don't have.

REORGCHK is starting to show that these tables are ready for a reorg,
and we'd like to get some of the free space back, to avoid expands, but
I'm not sure how.

Does anyone else have this problem? How are you reorging your
datawarehouse tables or are you not reorging them at all? Are there
any third party tools that would allow us to do inplace reorgs without
converting to type-2 indexes?

Any advice would be appreciated.

Thanks


Hi Molly,

A couple of suggestions from our experience on a 1.7 TB Datawarehouse:

* look for MDC for 2 reasons: reads using BID index and controlled writting
thru Rollup (FP9) - very efficient !

* big tables could be split using UNION ALL views (we do that for over 1
billion rows)

* you could even split and use MDC ... for bigger tables

* partition the database (we have 4 to 12 partitions depending on
environments)

We do occasionnally Reorgs, and MDC will help us avoid those needs (we
introduced MDC recently in our DB) ... basically, avoid deletes or updates,
and replace data will reduce the needs to Reorg.

Hope this helps,

Jean-Marc

Nov 12 '05 #2
Hi:
I am not into big databases, but can comment on online reorg based on
OLTP types.

* online-reorg is "trickle" reorg. It is meant to run in a pace causing
least impact to system workload.

* to convert type-1 to type-2, you can use the CONVERT option in reorg
command first.
(After running REORG with CONVERT option, run a db2dart on that object,
it should tell you the index type (dart is offline mode only))

Once you have converted the type-1 to type-2 indexes, start the online
reorg. If it's a readonly database, then you should have least of
headaches with locking like I do with OLTP transactions.

Personally for a DW, just go MDC (especially with Fixpak 9 with lots of
MDC updates for SAP applications)..

Good luck

Vijay

Nov 12 '05 #3

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

Similar topics

27
7552
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 restored and roll-forwarded to a timestamp <ts3> on Wednesday. Now my question is: because the entire database is being roll-forwarded, I suppose the database roll forward operation will
4
4751
by: News | last post by:
I have 18 years of mainframe DB2, and I just starting working with UDB LUW V8.1 FixPack 6 on Sun Solaris last week. I have been dismayed on the lack of detailed info available in the manuals on tuning and monitoring REORGS on large tables. I am used to the wealth of usage notes in mainframeland. I am recommending the implementation of clustering indexes and wholesale reorging of several large tables (up to 37GB)/ 200 mill plus rows.
3
3025
by: datapro01 | last post by:
Running db2 8.1.1 on aix 5.1. Tried to do an offline reorg on the system tables and could not reorg SYSIBM.SYSCOLDIST at about 3.5 million rows. Apparently there was not enough space in the default SYSCATSPACE tablespace in which DB2 could create the 'shadow' table. We are trying to determine the space we would need in a temp tablespace that would be specified in the reorg command. I know I've seen the
7
3286
by: Okonita via DBMonster.com | last post by:
Hi all, I am very surprised to see that after doing a Reorgchk followed by reorg of selected tables and concluding with a runstats of the reorged tables, all of the tables continue to be identified and selected as reorg candidates in subsequent/followup reorgchk. Has anyone had this experience? Can you share with me what you may have found out to the the reason and if possible what are the possible solutions to correct the situation?
0
9721
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
9603
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
10640
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
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7662
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
5689
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.