Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / July 2004

Tip: Looking for answers? Try searching our database.

Very important  table (partition) design question: DB2 UDB EEE V8.1 on AIX 5.2

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sandi - 28 Jul 2004 19:04 GMT
Dear Group,

I have the task of designing a table with similar characteristics of
Oracle range partitioning.

Note: we are migrating from ORacle to DB2 and we have many tables with
range partitions. The success or failure of the migration depends
mainly on, how we can get the range partition works.

In Oracle we have one table with 13 partition each having one month
worth of data. The oldest patition is droped after the newest
partition is loaded successfully.

This is what I am thinking for DB2:
-----------------------------------
(Note: there will be large amount of data and delete is not an option)

Create 13 tables (12 for the active months and one to act as a
temporary load table )
Create a UNION ALL view on top of the 12 active tables.

I want to have these tables available almost all the time.

I load the latest month into table_13 and if sucsessful, truncate
table_1.

The issue here is, I have to drop and recreate the view, every time
when I load the data, to point to the 12 active tables.

Is there any way, I can create the views on top of all the 13 tables
(so that I do not have to drop and recreate the tables everytime) and
the access is restricted to only the active 12 tables? (In otherwords
make the DB2 to ignore the oldest table while accessing if there are
13 tables in the view)

Any other approaches to implement this effectively?

I am pretty sure, atleast few of you might have migrated from Oracle
to DB2. How did you implement range partitioning (with high
availability for these tables)?

Thanks,
Sandi.
Joachim M?ller - 29 Jul 2004 12:16 GMT
Sandi,

perhaps this paper can help you.

http://www-106.ibm.com/developerworks/db2/library/techarticle/0202zuzarte/0202zu
zarte.pdf


regards,
Joachim M?ller

> Dear Group,
>
[quoted text clipped - 39 lines]
> Thanks,
> Sandi.
sandi - 30 Jul 2004 23:24 GMT
Joachim,

Thanks for the URL. I will read it in detail. (On the surface, it
looks similar to the design I have). Here also they drop and recreate
the view, I am trying to avoid that.

Thanks.

"Joachim Müller" <jom0309@douglas-informatik.de> wrote in message news:<ceap9g$2c1$1@news.dtag.de>...
> Sandi,
>
[quoted text clipped - 48 lines]
> > Thanks,
> > Sandi.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.