JDBC-OCI 11g Driver Throws "java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.t2cSetSessionTimeZone" (Doc ID 1080847.1)

Last updated on MAY 19, 2017

Applies to:

JDBC - Version: 11.1.0.6 to 11.1.0.7 - Release: 11.1 to 11.1
Information in this document applies to any platform.

Symptoms

You may one of the following exceptions when you use JDBC OCI driver with your standalone java application:

Exception in thread "main" java.lang.UnsatisfiedLinkError: oracle.jdbc.driver.T2CConnection.t2cSetSessionTimeZone(JLjava/lang/String;)I
at oracle.jdbc.driver.T2CConnection.t2cSetSessionTimeZone(Native Method)
at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:531)
at oracle.jdbc.driver.T2CConnection.(T2CConnection.java:148)
at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:53)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:503)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at Test1.main(Test1.java:17).


or


Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Loracle/jdbc/driver/OracleStatement;JIIIZZZZ[BIBII[SI[B[CII[SII[B[CII[I[S[BIIIIZZ[Loracle/jdbc/driver/Accessor;[[[B[J[BI[CI[SIZ)I+0
j oracle.jdbc.driver.T2CPreparedStatement.executeForDescribe()V+260
j oracle.jdbc.driver.T2CPreparedStatement.executeForRows(Z)V+41
j oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()V+275
j oracle.jdbc.driver.OraclePreparedStatement.executeInternal()I+94
j oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()I+17
j weblogic.jdbc.wrapper.PreparedStatement.executeUpdate()I+32


However, the application works fine with JDBC-THIN.

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