Indexes
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Indexes

  1. #1
    Join Date
    Nov 2000
    Posts
    157

    Indexes

    Hi All,

    I have an Index tablespace with 10 datafiles.
    How to find what indexes are there in each datafile?

    Need a report like :

    Datfile 001 --- Index1
    Index 2

    Datafile002 --- Index 6
    Index 7

    Can you please provide some query.

    Thanks in Advance..
    ravi

  2. #2
    Join Date
    Sep 2001
    Location
    NJ, USA
    Posts
    1,287
    see view DBA_EXTENTS and field FILE_ID

  3. #3
    Join Date
    Nov 2000
    Posts
    157
    Can you please be more explicit.
    I need some query to find which indexes are there in which datafile.

    Thanks
    ravi

  4. #4
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Originally posted by cravi
    Can you please be more explicit.
    I need some query to find which indexes are there in which datafile.

    Thanks
    select D.FILE_NAME,e.file_id from dba_data_files D, dba_extents E where e.FILE_ID=d.FILE_ID
    and e.SEGMENT_NAME='Your_INDEX_NAME' and e.SEGMENT_TYPE='INDEX';
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width