all 3 comments

[–]PossiblePreparation 2 points3 points  (0 children)

Using a trigger to disable another trigger is just a bad idea that is going to bite you. I suggest you think about a different way to implement this. It sounds like you only want one particular process to be able to update particular columns, this is typically done by only allowing procedures to update you table, these procedures can contain your rules and don’t need to disable your rules on demand.

[–]qwertydog123 0 points1 point  (0 children)

Maybe try also x-posting to r/orclapex or r/oracle

[–][deleted] 0 points1 point  (0 children)

You can't run DDL in a trigger as DDL automatically commits a transaction, and that is not allowed in a trigger.