Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

How to capture client machine IP address from Oracle 10g application server?

This is a discussion on How to capture client machine IP address from Oracle 10g application server? within the Oracle forums, part of the Databases category; Hi, I want to capture ip address of the machines, that are logging into my oracle 10g application. I tried with SYS_CONTEXT, UTL_INADDR but these two are giving application ip ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-11-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Exclamation How to capture client machine IP address from Oracle 10g application server?

Hi,

I want to capture ip address of the machines, that are logging into my oracle 10g application.
I tried with SYS_CONTEXT, UTL_INADDR but these two are giving application ip and database server ip. But I want the local machine ip in which this application is being used.

Please help me ASAP with the solution.

Thanks.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-11-2009
Junior Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
raj_betfair is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

select sys_context('USERENV', 'HOST') from dual
Reply With Quote
The Following User Says Thank You to raj_betfair For This Useful Post:
  #3 (permalink)  
Old 08-11-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

But if I am using this statement.. in application it is giving me the ip of application not of the local machine.
Reply With Quote
  #4 (permalink)  
Old 08-11-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,860
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: How to capture client machine IP address from Oracle 10g application server?

try to use TOAD or PLSQL DEVELOPER ,that will give you the complete list of users connencted to the database
Reply With Quote
  #5 (permalink)  
Old 08-11-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

Thanks Debasis.

I have tried this in database tools, its returning system ip. But when I use this particular statement in FORMs and trying to capture the value it is returning Application Server IP.

Now exactly the scenario is: I have a login form. So I want to know the system ip address whoever the user is logging into that application. So I am inserting the ip address into a table from the successfully loged in users. But instead of giving machine/system ip application ip is getting inserted.

Hope this clarifies my question!
Reply With Quote
  #6 (permalink)  
Old 08-25-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

Can anyone give any other solution in this regard ?
Reply With Quote
  #7 (permalink)  
Old 08-25-2009
Expert Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 518
Thanks: 30
Thanked 63 Times in 61 Posts
susarlasireesha will become famous soon enough
Re: How to capture client machine IP address from Oracle 10g application server?

Use this

select sys_context('userenv','ip_address') from dual;
__________________
Sireesha
Reply With Quote
  #8 (permalink)  
Old 08-25-2009
Contributing Member
 
Join Date: Dec 2008
Location: bangalore
Posts: 76
Thanks: 0
Thanked 18 Times in 18 Posts
ecearund is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

@Yajnas,

Query to retrieve remote client IP adress and local client IP adress.

Code:
select utl_inaddr.get_host_address(host_name), host_name from v$instance;
Query to retrieve server ip address

Code:
select sys_context( 'userenv', 'ip_address' ) from dual
It will return null if the user is not using TCP/IP
Reply With Quote
  #9 (permalink)  
Old 08-27-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

But its not working inside a Form builder. Its replying the server ip only.
Reply With Quote
  #10 (permalink)  
Old 08-28-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

Thank You all of you for your valuable suggetions.

I got the solution by attaching Webutil.pll and Webutil.olb in my form. WEBUTIL_CLIENTINFO.GET_HOST_NAME, WEBUTIL_CLIENTINFO.GET_IP_ADDRESS are the functions which returns client machine name and IP address in application server.

Reply With Quote
  #11 (permalink)  
Old 08-30-2009
Junior Member
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
h.sallahuddin is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

what is difference between oracle apps and oracle and oracle9i
Reply With Quote
  #12 (permalink)  
Old 08-30-2009
Moderator
 
Join Date: Jun 2007
Location: Bangalore,India
Posts: 1,860
Thanks: 9
Thanked 168 Times in 142 Posts
debasisdas has a spectacular aura aboutdebasisdas has a spectacular aura about
Re: How to capture client machine IP address from Oracle 10g application server?

You need to understand what is Oracle first, go and read some books to understand the basic stuff.
Reply With Quote
  #13 (permalink)  
Old 08-31-2009
Junior Member
 
Join Date: Apr 2007
Location: Bangalore, India
Posts: 23
Thanks: 7
Thanked 1 Time in 1 Post
Yajnas is on a distinguished road
Post Re: How to capture client machine IP address from Oracle 10g application server?

Hi,

Oracle - It is the Software who provides you the facility to use database as Oracle9i, 10g (These are the different versions of Oracle database).

Oracle Apps: Oracle provided frontend development tool/server application through which you can develop your business logics by connecting to any database versions.

Reply With Quote
  #14 (permalink)  
Old 5 Days Ago
Junior Member
 
Join Date: Oct 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
nehrumosuru is on a distinguished road
Re: How to capture client machine IP address from Oracle 10g application server?

use this command to capture ip address

select sys_context( 'userenv', 'ip_address' ) from dual
Reply With Quote
Reply

  Geeks Talk > Databases > Oracle

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to test client server application load? unique_uni2000 Testing Issues 2 02-05-2009 07:13 AM
Web Service and Client Server Application saravananistqb Testing Issues 0 01-06-2009 10:04 AM
client server application hitesh_shah19 Web Testing 1 10-07-2008 08:40 AM
client server application hitesh_shah19 Web Testing 3 09-04-2008 08:10 PM
Client server application balajip82 LoadRunner 1 04-29-2008 06:56 PM


All times are GMT -4. The time now is 05:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved