My Oracle Support Banner

SYS_CONTEXT('USERENV','IP_ADDRESS') Doesn'T Return Ipv4 Address When Ipv6 is Enabled (Doc ID 1175504.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Server - Enterprise Edition - Version: and later   [Release: 11.1 and later ]
Information in this document applies to any platform.


Using the listener

select sys_context('USERENV','IP_ADDRESS') from dual;

returns the correct IPv4 Address
With the listener the result is "::ffff:".
The listener.ora files are identical for the 11.1 and 11.2 listeners.


This happens when using a instead of the listener with a database.


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

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