drop the existing index and recreate on different columns
I have a history table that contains 3 months of data. Can I drop the existing index built on (a, b, c) and recreate an index on different columns like on (a, b, d, e). Does this affect data. Are there any steps that I have to follow in sequence.
What are the required steps that I have to follow.
When you drop an index, Oracle Database invalidates all objects that depend on the underlying table, including views, packages, package bodies, functions, and procedures.
I guess I stand corrected. It used to be that way. I lived it!
I cannot say if 11.1 is a doc bug or not.
Anyway, guess object invalidation is not longer a thing on dropped indexes.
Sean Stuber
11.2 adds a lot of invalidation protection.
If you change part of a package, objects dependent on the other parts should not invalidate.
You can still get "existing state discarded" errors if you happen to already have the package in memory, but that makes sense.
d27m11y d27m11y
ASKER
or can I alter index which was built on (a, b, c) to an index on different columns like on (a, b, d, e).
If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.