JDBC THIN Driver Throws ORA-12705 When using LC_CTYPE on Unix. (Doc ID 1090385.1)

Last updated on JULY 31, 2015

Applies to:

JDBC - Version 10.1.0.2 to 10.2.0.4 [Release 10.1 to 10.2]
Linux x86
HP IA64 HPUNIX
Oracle Solaris on x86 (32-bit)
IBM 370 AIX

Goal

A JDBC-THIN / JDBC-OCI application fails when you set LC_CTYPE=iso-8859-1. 
1.  When 10.1.0.x / 10.2.0.x JDBC-OCI driver is used, the application fails with the following exception stack:
Exception in thread "main" java.lang.NullPointerException
      at oracle.jdbc.driver.T2CConnection.processOCIConnectionPooling(T2CConnection.java:882)
      at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:228)
      at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
      at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132)
      at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:59)
      at oracle.jdbc.driver.OracleOCIConnection.<init>(OracleOCIConnection.java:45)
      at oracle.jdbc.oci.OracleOCIConnection.<init>(OracleOCIConnection.java:38)
      at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:71)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
      at oracle.jdbc.pool.OracleOCIConnectionPool.createConnectionPool(OracleOCIConnectionPool.java:893)
      at oracle.jdbc.pool.OracleOCIConnectionPool.setPoolConfig(OracleOCIConnectionPool.java:494)
      ::::::::
      ::::::::
2.  When 10.1.0.x / 10.2.0.x JDBC-THIN driver is used, the application fails with the following exception:
ORA-12705: invalid or unknown NLS parameter value specified.

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