Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Backup Controlfile to Trace
In article <39c6af07_at_news.iprimus.com.au>,
"Howard J. Rogers" <howardjr_at_www.com> wrote:
> I'm trying to work out a way of determining the name (before the
event) that
> Oracle will give the trace file after issuing the backup controlfile
to
> trace command.
>
> (Windows 2000, 8.1.6)
>
> The trace file helpfully points out when you read it that the Windows
Thread
> ID was 12345 (say!), and hence the tracefile name of ORA12345.TRC.
But I'd
> like to know this in advance, and was wondering whether there's some
V$ I
> don't know about that would tell me (V$PROCESS doesn't, as far as I
can
> tell), or is there some Windows-specific thing I should know about
that I
> can interrogate with some clever bit of C?
>
> Hope you can help,
> Regards
> HJR
> --
> ----------------------------------------------------------------------
I believe that the SPID column in V$PROCESS will provide the Windows Thread ID (it supplies the UNIX process id, and since Windows operates with threads rather than processes this is the first place I would consider). You can link that to a session via the ADDR column in V$PROCESS and the PADDR column in V$SESSION.
-- David Fitzjarrell Oracle Certified DBA Sent via Deja.com http://www.deja.com/ Before you buy.Received on Mon Sep 18 2000 - 19:46:07 CDT
![]() |
![]() |