Chapter 51. OWA_UTIL

Table of Contents

51.1. Overview
51.2. Procedures
51.2.1. WHO_CALLED_ME

This chapter briefly introduces the OWA_UTIL package, and describes how to use the procedure of the package.

51.1. Overview

OWA_UTIL includes the utility usually used by a web agent.

51.2. Procedures

This section describes the procedure provided by the OWA_UTIL package

51.2.1. WHO_CALLED_ME

Gets information about which object calls the object.

Details about the WHO_CALLED_ME procedure are as follows.

  • Prototype

    PROCEDURE WHO_CALLED_ME 
    (
        owner          OUT      VARCHAR2,
        name           OUT      VARCHAR2,
        lineno         OUT      NUMBER,
        caller_t       OUT      VARCHAR2)
    
    );
  • Parameter

    ParameterDescription
    ownerCalling object owner.
    nameCalling object name.
    linenoLine number within the calling object where the call was made.
    caller_tCalling object type.
  • Example

    create or replace procedure OWA_PROC1 
    as
        v1 varchar(128);
        v2 varchar(128);
        v3 number;
        v4 varchar(128);
    begin 
        owa_util.who_called_me (v1, v2, v3, v4);
    
        dbms_output.put_line (v1); 
        dbms_output.put_line (v2); 
        dbms_output.put_line (v3); 
        dbms_output.put_line (v4); 
    end;
    /
    
    create or replace procedure OWA_PROC2 
    as
    begin 
        OWA_PROC1;
    end;
    /
    
    begin
     OWA_PROC1; 
    end;
    /
    --2
    --ANONYMOUS BLOCK 
    
     begin
        OWA_PROC2;
    end;
    /
    --TIBERO
    --OWA_PROC2
    --4
    --PROCEDURE