The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, Anup.
Asked: January 26, 2017 - 9:26 pm UTC
Last updated: July 03, 2018 - 12:35 am UTC
Version: 12.1.0.2
Viewed 10K+ times! This question is
Rajeshwaran, Jeyabal, July 02, 2018 - 12:58 pm UTC
demo@ORA12C> create table t 2 as 3 select * 4 from all_objects; Table created. demo@ORA12C> alter table t add constraint t_pk 2 primary key(object_id); Table altered. demo@ORA12C> select index_name 2 from user_indexes 3 where table_name ='T'; INDEX_NAME ---------- T_PK demo@ORA12C> create unique index t_idx2 on t(object_id) 2 global partition by hash(object_id) 3 ( partition p1, 4 partition p2 ) 5 online invisible; Index created. demo@ORA12C> select index_name 2 from user_indexes 3 where table_name ='T'; INDEX_NAME ---------- T_PK T_IDX2 demo@ORA12C> alter table t modify constraint t_pk using index t_idx2; Table altered. demo@ORA12C> select index_name 2 from user_indexes 3 where table_name ='T'; INDEX_NAME ---------- T_IDX2 demo@ORA12C> alter index t_pk invisible; alter index t_pk invisible * ERROR at line 1: ORA-01418: specified index does not exist demo@ORA12C> alter index t_idx2 visible; Index altered. demo@ORA12C> drop index t_pk; drop index t_pk * ERROR at line 1: ORA-01418: specified index does not exist demo@ORA12C>
Get all the information about database performance in the Database Performance guide.