home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / sqlnet / net23 / client / trcfmt.cmd < prev    next >
Encoding:
Text File  |  1997-06-13  |  1.4 KB  |  37 lines

  1. @echo off
  2. rem !/bin/sh
  3. rem 
  4. rem $Header: trcfmt 2001300.18 95/11/08 11:41:09 smaring Osd<unix> $ trcfmt.sh 
  5. rem Copyright (c) Oracle Corporation 1996.  All rights reserved.
  6. rem
  7. rem remgenerates a .txt file out of the binary oracle trace .cdf and .dat files
  8. rem given the .cdf file name.
  9. rem For otrcfmt, the -h suppresses the per message header, the -p puts all
  10. rem of the messages in one process .txt rather than in several bundles and
  11. rem the -s suppresses the timestamp and event types. if you want to see the time
  12. rem stamp, then just execute otrcfmt -h -p name.cdf on your own.
  13.  
  14. rem if no cdf file name then prompt them to re-enter it with the name.
  15. rem
  16. rem ===============================================================
  17. rem WIN32COMMON
  18. rem ===============================================================
  19. rem For Windows NT/95, the file should be renamed as trcfmt.cmd when it
  20. rem is released as part of the SQL*NET product. It should be placed in
  21. rem $ORACLE_HOME\bin
  22. rem 
  23. if "%1" == "" goto usage
  24. if not exist %1 goto notexist
  25. otrcrep -h -p -s %1
  26. echo "Your oracle trace file is formatted into a yyy_Pxxx.txt file."
  27. echo "Where yyy is the trace file name."
  28. echo " and  xxx is the process id of the process traced."
  29. goto end
  30. :notexist
  31. echo file %1 does not exist.
  32. :usage
  33. echo Usage: trcfmt cdf_filename
  34. echo        where the cdf_file can be found in your trace directory
  35. echo        with file extension ".cdf".
  36. :end
  37.