Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Environment within PL/SQL (like environment variables)

Re: Environment within PL/SQL (like environment variables)

From: Cris Carampa <cris119_at_operamail.com>
Date: Thu, 29 Jun 2006 16:23:01 +0200
Message-ID: <44a3e273$0$986$5fc30a8@news.tiscali.it>


Jeremy wrote:

> Would like to record (this is a web app) the IP address of the caller
> plus various other bits of information. I was just wondering if there
> are any system variables for example containing the name of the
> currently executing package.procedure ?

In a mod_plsql web app you can access the CGI environment using the function owa_util.get_cgi_env.

The CGI environment contains a lot of useful information. Procedure owa_util.print_cgi_env print out on the browser a list of CGI environment variables available together with their current content.

For example you can get the name of the current package.procedure that way:

path_info := substr(owa_util.get_cgi_env('PATH_INFO'),2);

HTH. Kind regards,

-- 
Cris Carampa (spamto:cris119_at_operamail.com)

All foreign wars I do proclaim
Live on blood and a mother's pain
Received on Thu Jun 29 2006 - 09:23:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US