David (Advocate) said:
...simply disabling the pk constraint does not seem to affect the explicit pk index.
First, I disagree with your assertion that "simply disabling the pk constraint does not seem to affect the explicit pk index". In my proof-of-concept, earlier, when I disabled the PK, the index that enforces UNIQUENESS also is disabled, as evidenced by the fact that I was able to successfully INSERT a duplicate record. Had the UNIQUE INDEX not been disabled, then it would have thrown an error. If/when you re-enable the PK constraint, then the index is refreshed/re-built and re-enforces the UNIQUE constraint. Until then, the index is disabled.
Additionally, do you have a documentation reference that uses (and defines) the terms "explicit/implicit pk indexes"? As far as I know, that terminology does not represent Oracle nomenclature.
If a declarative PK constraint exists at all, then (regardless of whether its UNIQUE INDEX pre-dated the creation of the constraint), the index enforces the uniqueness of the PK column's data, and the PK constraint enforces the NOT NULL characteristic of the PK column(s). Without the declarative PK constraint, then the UNIQUE INDEX can still only enforce UNIQUENESS; a CHECK constraint would need to exist to enforce NOT NULL on the column.
The concept of an "explicit/implicit pk index" is a concept that, I believe, does not exist in the Oracle World. Resultingly, I heartily disagree with your "tech architect, et. al." that are trying to make it an issue.
If you re-state your business/technical objectives on this topic (rather than become distracted by some possible/perceived "data voodoo" of a tech architect [who may be mis-informed about Oracle behaviour]) I believe we can achieve your goals.
(BTW, if someone can show me the business/performance benefits of causing a
standard index to become "UNUSABLE", then I am happy to retract my mild criticism and deliver a deserved "atta girl/boy" to the architect. But all of the reading I have seen regarding the "UNUSABLE" clause show possible benefits only in extremely obscure situations.)
Let me know.
![[santa] [santa] [santa]](/data/assets/smilies/santa.gif)
Mufasa
(aka Dave of Sandy, Utah, USA)
[
Providing low-cost remote Database Admin services]
Click here to join
Utah Oracle Users Group on Tek-Tips if you use
Oracle in
Utah USA.