home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / oracle / 1521 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.2 KB

  1. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!cmutual.com.au!aaj
  2. From: aaj@cmutual.com.au (Tony Jambu)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Name of trace file currently being written.
  5. Message-ID: <1992Sep8.043503.6466@cmutual.com.au>
  6. Date: 8 Sep 92 04:35:03 GMT
  7. Organization: Colonial Mutual Life Australia
  8. Lines: 49
  9.  
  10. Path: cmutual.com.au!aaj
  11. Newsgroups: comp.databases.oracle
  12. Distribution: world
  13. Followup-To: 
  14. References: <BtwpHz.59J@nntp-sc.Intel.COM> <1992Sep4.082428.343@hhcs.gov.au>
  15. From: aaj@cmutual.com.au (Tony Jambu)
  16. Organization: Colonial Mutual Life Australia 
  17. Subject: Re: Name of trace file currently being written.
  18. Keywords: 
  19.  
  20. In article <1992Sep4.082428.343@hhcs.gov.au>, pihlab@hhcs.gov.au writes:
  21. > In article <BtwpHz.59J@nntp-sc.Intel.COM>, kortikar@mipos2.intel.com ()
  22. writes:
  23. > > Hi 
  24. > > 
  25. > > I would like to find out name of trace file currently being written.
  26. > > 
  27. > > set sql_trace true;
  28. > > explain plan .......
  29. > > set sql_trace false;
  30. > > 
  31. > > I currenlty use "ls -lt /oracle/rdbms/log/*trc | head -1" to find this out.
  32. > > I need it for automating tkprof.
  33. > > 
  34. > > Thanks a lot in advance.   
  35. > > 
  36. > > Aniruddha Kortikar  (kortikar@mipos2.intel.com)
  37. > I'm not sure how you would do that under UNIX.  Do you have a facility to
  38. > observe who is locking files?  If so the check the trace directory for some
  39. > file being locked by your session.
  40. > I'm working in Oracle under VMS and the way we do this is to define a logical
  41. > (ie a directory definition) which overrides Oracle's default TRACE directory
  42. > (for MY CURRENT session only).  In this way I know that the TRACE file in MY
  43. > particular directory is mine.  Can you do that under Oracle for UNIX.
  44.  
  45. I have wanted to do it in UNIX for some time and have been playing around.  I
  46. eventually approach Oracle Support and the answer I got was.....NO
  47.  
  48. It is not possible to carry this out on UNIX.  I hope someone out there can
  49. tell me otherwise.
  50.  
  51. -- 
  52. -----------------------------------------------------------------------------
  53.  _____       ________ / ____ |Tony Jambu, Database Administrator
  54.   /_  __       /_ __ /       |Colonial Mutual Life Australia. (ACN 004021809)
  55.  /(_)/ ((_/ \_/(///(/_)/_(   |EMAIL:  TJambu@cmutual.com.au
  56.