My Oracle Support Banner

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

Last updated on MARCH 10, 2020

Applies to:

Oracle Database - Standard Edition - Version 8.1.7.4 to 11.1.0.6 [Release 8.1.7 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.