home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!manuel!sserve!hhcs.gov.au!pihlab
- From: pihlab@hhcs.gov.au
- Newsgroups: comp.databases.oracle
- Subject: Re: Name of trace file currently being written.
- Message-ID: <1992Sep4.082428.343@hhcs.gov.au>
- Date: 4 Sep 92 08:24:28 +1000
- References: <BtwpHz.59J@nntp-sc.Intel.COM>
- Organization: Aust. Dept. Health, Housing and Community Services
- Lines: 38
-
- In article <BtwpHz.59J@nntp-sc.Intel.COM>, kortikar@mipos2.intel.com () writes:
- > Hi
- >
- > I would like to find out name of trace file currently being written.
- >
- > set sql_trace true;
- > explain plan .......
- > set sql_trace false;
- >
- > I currenlty use "ls -lt /oracle/rdbms/log/*trc | head -1" to find this out.
- > I need it for automating tkprof.
- >
- > Thanks a lot in advance.
- >
- > Aniruddha Kortikar (kortikar@mipos2.intel.com)
-
- I'm not sure how you would do that under UNIX. Do you have a facility to
- observe who is locking files? If so the check the trace directory for some
- file being locked by your session.
-
- I'm working in Oracle under VMS and the way we do this is to define a logical
- (ie a directory definition) which overrides Oracle's default TRACE directory
- (for MY CURRENT session only). In this way I know that the TRACE file in MY
- particular directory is mine. Can you do that under Oracle for UNIX.
-
- Hope this helps.
-
- --
-
- Bruce... pihlab @ hhcs.gov.au
- ^^
- *******************************************************************
- * Bruce Pihlamae -- Database Administration *
- * Commonwealth Department of Health, Housing & Community Services *
- * Canberra, Australia (W) 06-289-7056 *
- *******************************************************************
- * These are my own thoughts and opinions, few that I have. *
- *******************************************************************
-