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: Name of controlfile trace

RE: Name of controlfile trace

From: Ferris, Shawn <Shawn.Ferris_at_twtelecom.com>
Date: Mon, 15 Jan 2001 11:47:16 -0700
Message-Id: <10742.126704@fatcity.com>


>
> I recall reading somewhere that there may be a way to
> determine the name of the trace file when a control
> file trace backup is created with the command:
>
> alter database backup controlfile to trace noresetlogs;

This is platform specefic. The following sql is for sun. (sid_ora_#.trc - Linux is ora_#.trc) Just change the format of the result for your platform. The query should be the same.

select

      a.value ||
        '/' ||
      lower(d.name) ||
        '_ora_' ||
      b.spid ||
        '.trc' as file_name
    from
      v$parameter a,
      v$process b,
      v$session c,
      v$database d
    where
          a.name='user_dump_dest'
      and b.addr=c.paddr
      and c.type='USER'
      and c.audsid=userenv('SESSIONID')

HTH
Shawn M Ferris
Oracle DBA - Time Warner Telecom Received on Mon Jan 15 2001 - 12:47:16 CST

Original text of this message

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