I'm managing quite an intricate Oracle relational database (~50 tables) with many integrity constraints in place. All PKs and FKs are NOT DEFERRABLE, I would like to change them to DEFERRABLE INITIALLY IMMEDIATE, but I understand my only chance is dropping and recreating all of them.
This becomes a nightmare quickly, as I should drop all FKs first not to break integrity, then the same for all PKs and then recreating all in opposite order.
Is there a better way to do this, or I'm being unable to see the easy solution under my nose?