My Oracle Support Banner

Alter Session Set nls_comp = 'LINGUISTIC' nls_sort = 'GENERIC_BASELETTER' Is Not Working With JDBC OCI In 11g As It Was On 10g Databases (Doc ID 1628336.1)

Last updated on JULY 21, 2023

Applies to:

JDBC - Version 11.2.0.3.0 and later
Information in this document applies to any platform.

Symptoms

After upgrading the database from 10.2.0.5 to 11.2.0.3, some queries changed behavior.
Before the upgrade, due to the JDBC setup:

the queries results were case and accent insensitive.

Now, even if the setup for the JDBC driver is done as before, it turns to case and accent sensitive, bringing only the rows that match exactly the WHERE clause.
These queries come from a JBoss server (JBOSS EAP 6.1) using Oracle JDBC OCI Driver 11.2.0.3.
Doing a test with thin driver (which is not an option), it behaves like in 10g database (as case and accent insensitive).
It seems that the JDBC OCI driver setup (nls_comp and nls_sort) is being ignored.

EXPECTED BEHAVIOR
-----------------------
It should behave as it was in 10g. The use of these two alter session commands let to have the queries case and accent insensitive.

Changes

 

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
References


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