Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Is the database server on the local machine?
SYS_CONTEXT and V$SESSION as mentioned in the other posts will give
you information about the client PC that is connected to the database.
If you want the database server (where the database is running)
IP/Hostname then you can call
select UTL_INADDR.Get_Host_Name from dual;
or
select UTL_INADDR.Get_Host_Address from dual;
I believe this is only available in 8i and above.
Regards
/Rauf
Received on Thu Dec 02 2004 - 04:18:12 CST