home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1491 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  1.8 KB

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