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 MAY 19, 2017

Applies to:

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


After upgrading the database from to, 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
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.

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.


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