The Oracle JDBC setApplicationContext () Method is not Available

(Doc ID 812945.1)

Last updated on AUGUST 03, 2016

Applies to:

JDBC - Version 11.1.0.7 and later
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

As it is described  in

Oracle® Database Security Guide 11g Release 1 (11.1)
Part Number B28531-06
chapter 6 - Using Application Contexts to Retrieve User Information

there is a method, in  JDBC API , which allows to set a value in the client context name space:

For JDBC, use a command of the following form:

public void setApplicationContext( string CLIENTCONTEXT, string attribute, string value)
throws SQLException;

In this specification:
  • -attribute: Represents the attribute whose value must be set.
  • -value: Represents the value to be assigned to the attribute.

The problem is that the setApplicationContext()  method is not available in the JDBC API.

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