Skip to Main Content

Oracle Database Discussions

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!

Error:ORA-04098: trigger <Trigger Name> is invalid and failed re-validation

455086Sep 19 2005 — edited Sep 19 2005
When trigger is compiled against DB, it compiles fine. But when the script for shareplex replication which adds a when_clause to dba_triggers is run, the trigger becomes invalid.

Surprisingly it adds when_clause to all triggers but others are not becoming invalid except new trigger. We run this script in all our databases and haven't seen this issue elsewhere.

Shareplex Script is a must for shareplex replication to work correctly that the triggers have a when clause i.e. do not fire the trigger if user=splex. Otherwise we can run into out of sync situations and it takes long time to diagnose and resolve these issues.

For now issue is resolved by creating non-problematic triggers, running sp_add_trigger script and then compiled the problem trigger and all is well. But it will lead to data sync problem (which needs to be handled carefully for fail-over)

Any pointers ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2005
Added on Sep 19 2005
1 comment
699 views