Re: Materialized views on 10g database reading log tables on 9i database

From: Jared Still <>
Date: Thu, 3 Jun 2010 06:57:22 -0700
Message-ID: <>

On Wed, Jun 2, 2010 at 2:45 PM, Chuck Boddy <>wrote:

> Wonderful...thanks, Jared...
> Preparing to do just that(prepare a test environment and test scenario)....
> Did you experience any "gotchas"....

I don't recall any specific gotchas related to version differences.

One of the biggest general gotchas is that if you replicate any PK/UK constraints on the target database, create the constraints as DEFERRABLE. Otherwise you will likely run into ORA-00001 duplicate key errors due to the MV momentarily containing duplicate rows.

At least that's the advice I've seen given. I just don't create UK or PK constraints on the MV side, as those constraints don't mean to much for replicated data.

Then again, you may want those constraints in place for the sake of the optimizer.

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist Oracle Blog: Home Page:

Received on Thu Jun 03 2010 - 08:57:22 CDT

Original text of this message