indexes / tables
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: indexes / tables

  1. #1
    Join Date
    Dec 2000
    Posts
    15

    Question

    Is there a query I can run to show me indexes and their corresponding tables. I just moved a bunch of tables and I am trying to determine which indexes I need to rebuild based off of the names of the tables I moved.

    thanks,
    lacey

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    select table_name, index_name from dba_indexes
    where table_name = 'XYZ'
    order by index_name
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    select x.table_name, y.index_name
    from dba_tables x, dba_indexes y
    where x.table_name = y.table_name and x.tablespace_name='AFFAIRS_DATA'
    order by x.tablespace_name ;

    [Edited by sreddy on 01-11-2001 at 03:03 PM]

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