Skip to Main Content

GoldenGate

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-02291 parent key not found - Conflict resolution handle?

user530956Mar 24 2014 — edited Mar 25 2014

In bidirectional replication, oftenly i am  seeing this parent key not found error. I think in replication, order of insert in parent table is  not happen first and unfortunately we can't disable the foreign key .

ORA-02291: integrity constraint (HSS.FK9090) violated - parent key not found)

Tried with various option like DBOPTIONS DEFERREFCONST, DEFERAPPLYINTERVAL 30 SECS and also made a constraint defferable, still no use. 

Also i checked with below CDR statements in replicat, but this piece of code can resolve only the data conflict issue not the order of data insertions.

MAP STT.TAX, TARGET  STT.TAX,

COMPARECOLS (ON UPDATE ALL, ON DELETE ALL),

RESOLVECONFLICT (UPDATEROWEXISTS, (DEFAULT, USEMAX (ID))),

RESOLVECONFLICT (INSERTROWEXISTS, (DEFAULT, IGNORE)),

RESOLVECONFLICT (DELETEROWEXISTS, (DEFAULT, OVERWRITE)),

RESOLVECONFLICT (DELETEROWMISSING, (DEFAULT, DISCARD));

Can anybody advise me, how to write this kind of conflict resolution i.e ora-02291?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2014
Added on Mar 24 2014
1 comment
1,651 views