SYS_CONTEXT Function Returns Null When Using JDBC 10.x Thin Driver

(Doc ID 386343.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version 9.2.0.5 to 10.2.0.1 [Release 9.2 to 10.2]
Information in this document applies to any platform.

Symptoms

When using the JDBC Driver 10.2.0.1.0 using the OS_USER within the SYS_CONTEXT function returns NULL instead of the username.

The statement executed is:
SELECT SYS_CONTEXT ('USERENV', 'OS_USER') FROM DUAL RETURNS NULL
 

Changes

Upgrade of the JDBC Driver to 10.x

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