Unix Technical Forum

XE owa_sec.GET_CLIENT_HOSTNAME problem

This is a discussion on XE owa_sec.GET_CLIENT_HOSTNAME problem within the Oracle Database forums, part of the Database Server Software category; --> All, I am experimenting with mod pl/sql at the moment on a oracle XE installation. I have written a ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 09:09 AM
Graham Wallace
 
Posts: n/a
Default XE owa_sec.GET_CLIENT_HOSTNAME problem

All,

I am experimenting with mod pl/sql at the moment on a oracle XE
installation. I have written a simple page which I want to output the
users host name and IP address:

create or replace PROCEDURE GET_HOST_NAME AS
BEGIN

htp.print( '<html>
<head>
<title>IP NAME</title>
</head>
<body>
Your IP name is ' || nvl(owa_sec.GET_CLIENT_HOSTNAME,
'NULL') );
htp.print( '</body>
</html>');

END;

The HTML output I get is:
Your IP name is NULL.

I have tried metalink article 150089.1, and reinstalled pubowa.sql,
privowa.sql, pubcust.sql and privcust.sql, from the RDBMS directory of
my XE installation, after logging in as sys.

Why is the owa_sec.get_client_hostname not working?

Regards,
Graham
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 09:09 AM
HansF
 
Posts: n/a
Default Re: XE owa_sec.GET_CLIENT_HOSTNAME problem

On Fri, 27 Oct 2006 22:52:59 +0000, Graham Wallace wrote:


> Your IP name is ' || nvl(owa_sec.GET_CLIENT_HOSTNAME,
> 'NULL') );


Curious - what happens wen you change this line to:


Your IP name is ' || nvl(sys_context('USERENV','HOST'), 'NULL') );

--
Hans Forbrich (mailto: Fuzzy.GreyBeard_at_gmail.com)
*** Feel free to correct me when I'm wrong!
*** Top posting [replies] guarantees I won't respond
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 09:10 AM
Graham Wallace
 
Posts: n/a
Default Re: XE owa_sec.GET_CLIENT_HOSTNAME problem

HansF wrote:
> On Fri, 27 Oct 2006 22:52:59 +0000, Graham Wallace wrote:
>
>
>> Your IP name is ' || nvl(owa_sec.GET_CLIENT_HOSTNAME,
>> 'NULL') );

>
> Curious - what happens wen you change this line to:
>
>
> Your IP name is ' || nvl(sys_context('USERENV','HOST'), 'NULL') );
>

It prints out:

Your IP name is NULL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:55 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com