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. |
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 ...
|
|||||||
| 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. |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Sponsored Links |
|
|||
|
Re: How to capture client machine IP address from Oracle 10g application server?
select sys_context('USERENV', 'HOST') from dual
|
| The Following User Says Thank You to raj_betfair For This Useful Post: | ||
|
|||
|
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.
|
|
|||
|
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
|
|
|||
|
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! |
|
|||
|
Re: How to capture client machine IP address from Oracle 10g application server?
Use this
select sys_context('userenv','ip_address') from dual;
__________________
Sireesha |
|
|||
|
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; Code:
select sys_context( 'userenv', 'ip_address' ) from dual |
|
|||
|
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.
|
|
|||
|
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.
|
|
|||
|
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |