DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Procedure and Fucntions

  1. #1
    Join Date
    Jun 2003
    Posts
    1

    Procedure and Fucntions

    Hi,

    Is there any view in oracle which tells u the current procedure running in transaction or the no of times a procedure is called.

    Thanks in advance.
    Amit
    Last edited by amishra; 06-21-2003 at 07:31 AM.

  2. #2
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    I don't believe that Oracle will do that for you. However if you use packages you can have one of the parameters be the name of the calling procedure. You can also have a global variable for a given procedure in a package set a value on initialization and then increment that value every time the procedure gets called. Since global variables maintain their value as long as the session is active everytime you call the procedure that variable will maintain it value until you lose your connection.

    Just a few thoughts.

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    To see what procedures are running, use the DBMS_APPLICATION_INFO package to set the MODULE and ACTION within the package procedure(s) you want to monitor.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width