niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle
Client session IP address
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Fri Feb 25, 2005 3:06 pm    Post subject: Re: Client session IP address Reply with quote

Mark Bole wrote:

Quote:
DA Morgan wrote:

Irudaya Raj wrote:

Hello Everybody,
I have a need to know what is the source IP address of every session
that gets created on my Oracle 9i instance.
I have queried the v$session view, it does show a 'MACHINE' name for
users who have connected from apps. like SQLPLUS, but there are
connections comming in from JDBC client, Web Servlets,etc., these
connections are shown under 'MACHINE' column as the application name
itself.
But I need to know the IP address from where this application was run.

[...]


http://www.psoug.org
click on Morgan's Library
click on SYS_CONTEXT Function

Hoepfully you are not working with Windows.


What's the issue with Windows? (the PSOUG web page you reference
doesn't say).

-Mark Bole

Who would come to my lectures if I put everything on the web site? ;-)

There are situations, I can't find my source reference right this
minute, where with Windows NULL is returned by the function. It is
certainly the case on my stand-alone notebook.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
IANAL_VISTA
*nix forums Guru


Joined: 23 Apr 2005
Posts: 485

PostPosted: Fri Feb 25, 2005 2:40 pm    Post subject: Re: Client session IP address Reply with quote

"Irudaya Raj" <jirudayaraj@gmail.com> wrote in
news:1109315151.207880.213180@g14g2000cwa.googlegroups.com:

Quote:
Hello Everybody,
I have a need to know what is the source IP address of every session
that gets created on my Oracle 9i instance.

DBMS_SYSTEM might help.

In a three tier architecture, more than likely all the DB will 'see'
is the middle tier server(s) and never 'see' the actual client IP#.
Back to top
Mark Bole
*nix forums Guru Wannabe


Joined: 29 Apr 2005
Posts: 188

PostPosted: Fri Feb 25, 2005 2:18 pm    Post subject: Re: Client session IP address Reply with quote

DA Morgan wrote:

Quote:
Irudaya Raj wrote:

Hello Everybody,
I have a need to know what is the source IP address of every session
that gets created on my Oracle 9i instance.
I have queried the v$session view, it does show a 'MACHINE' name for
users who have connected from apps. like SQLPLUS, but there are
connections comming in from JDBC client, Web Servlets,etc., these
connections are shown under 'MACHINE' column as the application name
itself.
But I need to know the IP address from where this application was run.

[...]

http://www.psoug.org
click on Morgan's Library
click on SYS_CONTEXT Function

Hoepfully you are not working with Windows.

What's the issue with Windows? (the PSOUG web page you reference
doesn't say).

To the OP: the listener log file will show you the source IP address for
JDBC client connections, although it is not always possible to correlate
this to specific sessions in the database -- sometimes you can match
them up by timestamp if connections are infrequent enough.

-Mark Bole
Back to top
DA Morgan
*nix forums Guru


Joined: 06 Mar 2005
Posts: 1042

PostPosted: Fri Feb 25, 2005 6:36 am    Post subject: Re: Client session IP address Reply with quote

Irudaya Raj wrote:

Quote:
Hello Everybody,
I have a need to know what is the source IP address of every session
that gets created on my Oracle 9i instance.
I have queried the v$session view, it does show a 'MACHINE' name for
users who have connected from apps. like SQLPLUS, but there are
connections comming in from JDBC client, Web Servlets,etc., these
connections are shown under 'MACHINE' column as the application name
itself.
But I need to know the IP address from where this application was run.

Is there a way to find out this.

Please let me know.

Thanks a lot for your time and valuable inputs.

Regards,
Raj.

http://www.psoug.org
click on Morgan's Library
click on SYS_CONTEXT Function

Hoepfully you are not working with Windows.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace 'x' with 'u' to respond)
Back to top
Irudaya Raj
*nix forums beginner


Joined: 25 Feb 2005
Posts: 5

PostPosted: Fri Feb 25, 2005 6:05 am    Post subject: Client session IP address Reply with quote

Hello Everybody,
I have a need to know what is the source IP address of every session
that gets created on my Oracle 9i instance.
I have queried the v$session view, it does show a 'MACHINE' name for
users who have connected from apps. like SQLPLUS, but there are
connections comming in from JDBC client, Web Servlets,etc., these
connections are shown under 'MACHINE' column as the application name
itself.
But I need to know the IP address from where this application was run.

Is there a way to find out this.

Please let me know.

Thanks a lot for your time and valuable inputs.

Regards,
Raj.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 6:11 am | All times are GMT
navigation Forum index » Databases » Oracle
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix SMTP client issues damber Postfix 1 Sat Apr 19, 2008 11:33 am
No new posts Postfix ldap and Rewriting sender email address endfx Postfix 2 Thu Apr 17, 2008 9:34 pm
No new posts recipient address restriction 3dd13 Postfix 0 Wed Mar 26, 2008 1:46 pm
No new posts HOW-TO: Deliver many messages over 1 smtp session? Oymakoon Postfix 0 Thu Mar 20, 2008 11:12 am
No new posts Problem while accessing 64 bit Server thru 32 bit client Ganesh Server 0 Fri Jul 21, 2006 1:40 pm

Cheap Magazines | Reptile Supplies | Recreation websites directory | Wide Shoes for Women & Men | Secured Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1556s ][ Queries: 20 (0.0741s) ][ GZIP on - Debug on ]