indexing - How Oracle manages constraints and indexes bound to them -
i've encountered situation can't understand. i've created patch db, drops constraints(private keys) , drops indexes bound constraints. worked flawlessly few times on test environment. when run on prod crashed on first index. test db re-created test production few times(but don't know how done exactly) , there wasn't problems. how possible error didn't occurred while testing?
it possible dropping constraint drops supporting index, depending on how constraint , index created in first place, script ought check that.
it more robust create non-unique indexes , add primary , unique constraints use indexes, can drop constraint without losing benefits of having index in place.
the difference in behaviour when dropping constraints based on existing or system-generated index documented here: http://docs.oracle.com/database/121/sqlrf/clauses002.htm#cjagebig
Comments
Post a Comment