Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: snapshot and referential integrity

Re: snapshot and referential integrity

From: A. Bardeen <abardeen1_at_yahoo.com>
Date: Wed, 31 May 2000 05:00:56 -0700 (PDT)
Message-Id: <10514.107255@fatcity.com>


Richard,

It depends on the version of Oracle used for the snapshot site. O7 snapshots do not support PK or unique constraints because Oracle doesn't guarantee that the records will be refreshed in the same order as the DML operations were performed on the master table, only that after refresh the rows will be the same. You can create indexes on the O7 snapshots, just not unique indexes. With the introduction of deferrable constraints in O8, PK and unique constraints are supported on snapshots as long as they are created DEFERRABLE.

BTW, this is relevant only to updateable snapshots. If you have read-only snapshots there's no point in having a PK constraint on the snapshot as DML operations aren't allowed on it anyway. You guarantee RI among snapshots by refreshing them together via refresh groups.

HTH,


Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger. Received on Wed May 31 2000 - 07:00:56 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US