SQL Language (MOSC)

MOSC Banner

about status of local index in user_objects, user_ind_partitions

edited Feb 9, 2017 5:54AM in SQL Language (MOSC) 3 commentsAnswered

SQL> create table t1 (c1 number)

  2  partition by range (c1)

  3  (

  4   partition p1 values less than (maxvalue)

  5  );

Table created.

SQL>

SQL> create index i1 on t1(c1) local unusable;

Index created.

SQL> column object_name format a30

SQL> column subobject_name format a30

SQL> column index_name format a30

SQL> column partition_name format a30

SQL> select object_name, subobject_name, status from user_objects where object_name = 'I1';

OBJECT_NAME                    SUBOBJECT_NAME                 STATUS           

------------------------------ ------------------------------ -------          

I1                             P1                             VALID            

I1                                                            VALID            

SQL> select index_name, status from user_indexes where index_name = 'I1';

INDEX_NAME                     STATUS                                          

------------------------------ --------                                        

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center