How to Ensure USER Session Variable Accurately Reflects "real" User When Using Proxy Authentication with JDBC (Doc ID 431202.1)

Last updated on MARCH 08, 2017

Applies to:

JDBC - Version 10.1.0.2 to 10.2.0.3 [Release 10.1 to 10.2]
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

Q1:  When using proxy authentication with Oracle's JDBC drivers, how does one ensure that the "real" user, rather than the proxy user, is reported back to the calling Java application?



Q2:  When using proxy authentication with Oracle's JDBC drivers, how does one ensure that the "real" user, rather than the proxy user, will be reflected when inserting into an Oracle table a USER variable similar to the USER session variable available from SQL*Plus and PL/SQL?






Solution

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