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

Home -> Community -> Usenet -> c.d.o.misc -> Re: owa_util.get_cgi_env IP problem

Re: owa_util.get_cgi_env IP problem

From: G Credland <X_G.Credland_at_shef.ac.uk>
Date: 1997/07/04
Message-ID: <33BD0C05.1268@shef.ac.uk>#1/1

Nico Jacobs wrote:
>
> Hello there,
>
> if I try to use the function owa_util,get_cgi_env, via webserver 2.1,
> I get this error:
>
> login:(-6571) ORA-06571: Function GET_CGI_ENV does not guarantee not
> to update database.
>
> I try to get the IP address of the remote computer, for security
> reasons.
> Do you know how to solve this, or another way to do it?

Don't use the function in a SELECT statement, simply assign the value to a PL-SQL variable.

DECLARE
ip_addr VARCHAR2(100);
BEGIN
        ip_addr := OWA_UTIL.GET_CGI_ENV('REMOTE_ADDR'); END;
/

George Credland
mailto:g.credland_at_sheffield.ac.uk Received on Fri Jul 04 1997 - 00:00:00 CDT

Original text of this message

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