Giter Site home page Giter Site logo

plsql_trace's Introduction

PL/SQL Trace

PLSQL Trace Utility

Installation

  1. Edit the trcs.sql file and update the connections
  2. Execute trcs.sql to grant all the necessary privileges as SYS
  3. Connect as the owner schema
  4. Execute trch.sql to compile the package header
  5. Execute trcb.sql to compile the package body
  6. Create a local directory on the filesystem
  7. Map the directory to a database directory using the CREATE DIRECTORY command in Oracle
  8. Update the directory name in the TRACE_CONFIG table

Usage

You must have a session running the trace listener. Simply open a SQL*Plus window and execute: exec trace.listener

To start a Trace

Open a new session and start a trace

exec trace.start_trace(&app_name, &prg_name);

app_name is your application name as specified in the TRACE_CONFIG table

prg_name is your program name as specified in the TRACE_CONFIG table

To send a debug/trace message

exec trace.it('Hello World!'); Make sure the trace_level in TRACE_CONFIG is set to 9

To stop a Trace

exec trace.stop_trace

Check your directory and a trace file should have been created with the message Hello World!

plsql_trace's People

Contributors

ora-31 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.