Hi Anne I tried this on 9iR1
oracle:jupiter> sqlplus system/manager SQL*Plus: Release 9.0.1.0.0 - Production on Wed Jun 25 20:45:54 2003 (c) Copyright 2001 Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.0.1.0.0 - Production With the Partitioning option JServer Release 9.0.1.0.0 - Production SQL> select sys_context('userenv','ip_address') ip,username,machine 2 from v$session 3 where sys_context('userenv','sessionid')=audsid; IP ------------------------------------------------------------------------ -------- USERNAME ------------------------------ MACHINE ---------------------------------------------------------------- SYSTEM jupiter SQL> connect system/[EMAIL PROTECTED] Connected. SQL> / IP ------------------------------------------------------------------------ -------- USERNAME ------------------------------ MACHINE ---------------------------------------------------------------- 172.16.240.11 SYSTEM jupiter SQL> It looks like you need to use the service name when connecting to get the IP Address. hth kind regards Pete >Basically, I have a trigger to capture the date, schema name and computer >name or IP address. However, I could not get the IP address or host name >out of Oracle. Can anyone help? > -- Pete Finnigan email:[EMAIL PROTECTED] Web site: http://www.petefinnigan.com - Oracle security audit specialists Book:Oracle security step-by-step Guide - see http://store.sans.org for details. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Pete Finnigan INET: [EMAIL PROTECTED] Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).