Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: The index datafile contains which indexes.

RE: The index datafile contains which indexes.

From: Chuan Zhang <Chuan.Zhang_at_transact.com.au>
Date: Mon, 05 Aug 2002 17:53:18 -0800
Message-ID: <F001.004ABD03.20020805175318@fatcity.com>


Thanks Rajesh, Ross for all your input.

-----Original Message-----
Sent: Monday, 5 August 2002 7:23 PM
To: Multiple recipients of list ORACLE-L

Hi Chuan,

Single SQL could be written something like this..

SQL> select o.name from obj$ o, ind$ i, x$kccfn x

     where o.obj# = i.obj#
     and i.file# = x.fnfno
     and x.fnnam = 'F:\ORACLE\ORADATA\ORA9I\ACCOUNT.DBF'
     and o.type# = 1
     order by o.name ;

The fourth line has your datafile name.

HTH,
Rajesh Dayal
Senior Oracle DBA
OCP Oracle 8,8i,9i

> Hi,
>
> Dba_data_files tells you the file_id of the datafile you're after. Join this
> with the file_id in dba_extents to get the segment_name (that'll be the
> index_name you're after) where the segment_type='INDEX'.
>
> HTH,
> Ross
>
> > -----Original Message-----
> > From: Chuan Zhang [mailto:Chuan.Zhang_at_transact.com.au]
> > Sent: Monday, 5 August 2002 11:53
> > To: Multiple recipients of list ORACLE-L
> > Subject: The index datafile contains which indexes.
> >
> >
> > Dear All,
> >
> > Since one of my index files is corrupted partly, I would
> > like to to rebuild those indexes affected. Is there any way
> > to find out in that index datafile what indexes are.
> >
> > thanks in advance,
> >
> > Chuan
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Ross Collado
> INET: Ross.Collado_at_techpac.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Get 4 DVDs for $.49 cents! plus shipping & processing. Click to join. 
http://adfarm.mediaplex.com/ad/ck/990-1736-3566-59

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rajesh Dayal
  INET: rdayal73_at_techie.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).



-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Chuan Zhang INET: Chuan.Zhang_at_transact.com.au Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

Received on Mon Aug 05 2002 - 20:53:18 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US