473,396 Members | 1,935 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,396 software developers and data experts.

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 4312
"Molly" <mo*******@excite.com> a écrit dans le message de
news:11**********************@g43g2000cwa.googlegr oups.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
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...
4
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...
3
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.