home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / tracesvr / otrcdbms.sql < prev    next >
Encoding:
Text File  |  1996-08-05  |  3.3 KB  |  108 lines

  1. rem 
  2. rem $Header: /OEM_1.3.6/OTRCSVR/INSTALL/OTRCDBMS.SQL 2     7/02/97 10:41a Tlandry $ 
  3. rem 
  4. Rem  Copyright (c) 1995 by Oracle Corporation 
  5. Rem    NAME
  6. Rem      otrcdbms.sql - Oracle Trace interface
  7. Rem    DESCRIPTION
  8. Rem      This file provides client callable interfaces to the Oracle TRACE
  9. Rem      instrumentation within the Oracle7 Server (rdbms).
  10. Rem    RETURNS
  11. Rem 
  12. Rem    NOTES
  13. Rem      Package  dbms_oracle_trace_agent  should only be granted to DBA
  14. Rem      or the Oracle TRACE collection agent.
  15. Rem    MODIFIED   (MM/DD/YY)
  16. Rem     drady      02/09/95 -  Creation
  17.  
  18.  
  19. CREATE OR REPLACE PACKAGE dbms_oracle_trace_agent IS
  20.   ------------
  21.   --  OVERVIEW
  22.   --
  23.   --  This package provides some system level utilities.
  24.   --
  25.   --  SECURITY
  26.   --
  27.   --  This package is only accessible to user SYS by default.  You can control
  28.   --  access to these routines by only granting execute to privileged users.
  29.   --
  30.   ----------------------------
  31.   --  PROCEDURES AND FUNCTIONS
  32.   --
  33.   PROCEDURE set_otrace
  34.             ( sid BINARY_INTEGER DEFAULT 0,
  35.               ser BINARY_INTEGER DEFAULT 0,
  36.               evt BINARY_INTEGER DEFAULT 0,
  37.               lvl BINARY_INTEGER DEFAULT 0,
  38.               fdf VARCHAR2 DEFAULT '',
  39.               cdf VARCHAR2 DEFAULT ''
  40.             );
  41.   --  This is an internally used routine that should never be called by users.
  42.   --  The only exception to this is that it is called by the  set_oracle_trace
  43.   --  procedure of the  dbms_oracle_trace_user  package.
  44.   --
  45.   ----------------------------
  46.   PROCEDURE set_oracle_trace_in_session
  47.             ( sid NUMBER DEFAULT 0,
  48.               serial# NUMBER DEFAULT 0,
  49.               on_off IN BOOLEAN  DEFAULT false,
  50.               collection_name IN VARCHAR2 DEFAULT '',
  51.               facility_name IN VARCHAR2 DEFAULT ''
  52.             );
  53.   --  
  54.   --  Enable Oracle TRACE in the session identified by (sid, serial#).  These
  55.   --  value are gotten from v$session. 
  56.   --  Input arguments:
  57.   --   sid  
  58.   --      session id
  59.   --   serial#
  60.   --      session serial number
  61.   --    on_off
  62.   --      TRUE or FALSE.  Turns tracing on or off.
  63.   --    collection_name
  64.   --      The Oracle TRACE collection name to be used.
  65.   --    facility_name
  66.   --      The Oracle TRACE facility name to be used.
  67.   --
  68.   --
  69. END;
  70. /
  71. --
  72. --
  73. --
  74. CREATE OR REPLACE PACKAGE dbms_oracle_trace_user IS
  75.   ------------
  76.   --  OVERVIEW
  77.   --
  78.   --  This package provides public access to the Oracle7 Server (rdbms)
  79.   --  Oracle TRACE instrumentation for the calling user.
  80.   --
  81.   ----------------------------
  82.   --  PROCEDURES AND FUNCTIONS
  83.   --
  84.   PROCEDURE set_oracle_trace
  85.             ( on_off IN BOOLEAN DEFAULT false,
  86.               collection_name IN VARCHAR2 DEFAULT '',
  87.               facility_name IN VARCHAR2 DEFAULT ''
  88.             );
  89.   --  
  90.   --  Input arguments:
  91.   --    on_off
  92.   --      TRUE or FALSE.  Turns tracing on or off.
  93.   --    collection_name
  94.   --      The Oracle TRACE collection name to be used.
  95.   --    facility_name
  96.   --      The Oracle TRACE facility name to be used.
  97.   --
  98. END dbms_oracle_trace_user;
  99. /
  100.  
  101. DROP PUBLIC SYNONYM dbms_oracle_trace_user
  102. /
  103. CREATE PUBLIC SYNONYM dbms_oracle_trace_user FOR sys.dbms_oracle_trace_user
  104. /
  105. GRANT EXECUTE ON dbms_oracle_trace_user TO PUBLIC
  106. /
  107.  
  108.