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 FEBRUARY 24, 2020

Applies to:

Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.

Symptoms

Using the 11.1.0.7 listener


returns the correct IPv4 Address
Eg: AA.XX.YYY.ZZZ.
With the 11.2.0.1 listener the result is "::ffff:AA.XX.YYY.ZZZ".
The listener.ora files are identical for the 11.1 and 11.2 listeners.

Changes

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

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
Changes
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.