SYS_CONTEXT('USERENV', 'IP_ADDRESS') Function Returns A Null Value (Doc ID 470504.1)

Last updated on NOVEMBER 04, 2015

Applies to:

Oracle Server - Standard Edition - Version: 8.1.7.4 to 11.1.0.6 - Release: 8.1.7 to 11.1
Information in this document applies to any platform.

Symptoms

SYS_CONTEXT('USERENV', 'IP_ADDRESS') returns a null value:

SQL> select * from v$version; 

BANNER 
-------------------------------------------------------------------------------- 

Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production 
PL/SQL Release 11.1.0.6.0 - Production 
CORE    11.1.0.6.0      Production 
TNS for 64-bit Windows: Version 11.1.0.6.0 - Production 
NLSRTL Version 11.1.0.6.0 - Production 
SQL> select sys_context('USERENV', 'IP_ADDRESS')
  2  from dual;

SYS_CONTEXT('USERENV','IP_ADDRESS')
--------------------------------------------------------------------------------

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms