DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: machine name

  1. #1
    Join Date
    Nov 2001
    Posts
    29
    how can i find out the ip address or machine name on which i have been connected to oracle. I am able to find the how many machines and which user is connected to oracle from v$session view but i can't find the machine name. Please help me.
    balraj

  2. #2
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938
    Run the following in SQL+:

    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') "My IP Address" from dual;

  3. #3
    Join Date
    Nov 2001
    Posts
    29

    mahine name

    thanks for the reply but I am getting the error

    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') "My IP Address" from dual
    *
    ERROR at line 1:
    ORA-00904: invalid column name

    Originally posted by julian
    Run the following in SQL+:

    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS') "My IP Address" from dual;
    balraj

  4. #4
    Join Date
    Aug 2000
    Posts
    236
    The column Machine in v$session view gives the name of the machine.

    Nizar.

  5. #5
    Join Date
    Nov 2001
    Posts
    29

    re:machine

    How do I know that which is the correct machine name among the list. It will show all the machine name.

    Originally posted by nabaig
    The column Machine in v$session view gives the name of the machine.

    Nizar.
    balraj

  6. #6
    Join Date
    Jun 2001
    Location
    Helsinki. Finland
    Posts
    3,938

    Re: mahine name

    This means that your Oracle version is below 8i.


  7. #7
    Join Date
    Aug 2000
    Posts
    236
    Link this with OSUSER column.

    Nizar

  8. #8
    Join Date
    Sep 2000
    Posts
    103
    Do a

    select username "Oracle Username",osuser "OS Username",
    machine from v$session;

    With this you can use your username name to find out on which machine you are logged on.

    hope that helps.

  9. #9
    Join Date
    Nov 2001
    Posts
    29

    Re: mahine name

    Yes, but is there no way of solving the problem

    Originally posted by julian
    This means that your Oracle version is below 8i.

    balraj

  10. #10
    Join Date
    Aug 2001
    Location
    Waterloo, On
    Posts
    547
    Code:
    select unique(machine) from v$session where schemaname='SYS';

    Raminder Singh

    Oracle Certified DBA: Oracle 8i, 9i


    Mail me at raminderahluwalia@rediffmail.com.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width