Results 1 to 6 of 6

Thread: Find IP Address of connected Client

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    28

    Find IP Address of connected Client

    hi

    suppose one client machine is connected to my oracle server, and after perform 1,2 transactions he is disconnected. how to find his IP address?


    If we want to monitor upcoming connection's IP's( Now onwards) , that is ok, we can store that IP into a table by using a trigger. But how to find the IP, which is connected before i create my trigger? is there any way?




    Jaya


  2. #2
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Find IP Address of connected Client

    To find ip address
    select sys_context('userenv','ip_address') from dual;

    To find all client machine use
    SELECT UTL_INADDR.get_host_address(terminal) FROM v$session
    where status='ACTIVE'


  3. #3
    Junior Member
    Join Date
    Feb 2008
    Answers
    28

    Re: Find IP Address of connected Client

    hi all
    @sirisha

    thanx4 reply
    your 2 methods shows the current session details means IP address of the machine, if it is connected right now. but i told that.....i want IP address of the machine, which was connected in previous days. ex: before 10 days.

    Jaya


  4. #4
    Expert Member
    Join Date
    Apr 2007
    Answers
    500

    Re: Find IP Address of connected Client

    So remove where clause
    i.e., use
    SELECT UTL_INADDR.get_host_address(terminal) FROM v$session



    Quote Originally Posted by jaya_geek View Post
    hi all
    @sirisha

    thanx4 reply
    your 2 methods shows the current session details means IP address of the machine, if it is connected right now. but i told that.....i want IP address of the machine, which was connected in previous days. ex: before 10 days.

    Jaya



  5. #5
    Junior Member
    Join Date
    Feb 2008
    Answers
    28

    Re: Find IP Address of connected Client

    hi all

    will it work after shutdown of my database? i mean.......one person connected and disconnected to my database.........next i shut it down....and started it up...............still i want his IP from my database records.......


    i heard that...........we can get it from archives..........by using logminer.......can we see that IP? actually i have 2 check it.....

    Jaya


  6. #6
    Junior Member
    Join Date
    Jul 2008
    Answers
    1

    Re: Find IP Address of connected Client

    Its giving error:


    ORA-29257: host GIL-DBA unknown
    ORA-06512: at "SYS.UTL_INADDR", line 19
    ORA-06512: at "SYS.UTL_INADDR", line 40
    ORA-06512: at line 1


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact