UnsatisifiedLinkError with ojdbc14.jar

I am trying to run some JUnit tests that connect to an Oracle database and is there any attempt to connect. The following error is thrown:

oracle / jdbc / driver / T2CConnection.t2cGetCharSet ([CI [CI [CII [SLoracle / jdbc / driver / GetCharSetError;) S
at oracle.jdbc.driver.T2CConnection.getCharSetIds (T2CConnection.java:2801)
at oracle.jdbc.driver.T2CConnection.logon (T2CConnection.java:300)
at oracle.jdbc.driver.PhysicalConnection. (PhysicalConnection.java:344)
at oracle.jdbc.driver.T2CConnection. (T2CConnection.java:136)
at oracle.jdbc.driver.T2CDriverExtension.getConnection (T2CDriverExtension.java:79)
at oracle.jdbc.driver.OracleDriver.connect (OracleDriver.java:545)
at oracle.jdbc.pool.OracleDataSource.getConnection (OracleDataSource.java:194)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection (OracleConnectionPoolDataSource.java:109)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection (OracleConnectionPoolDataSource.java:77)
at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection (OracleConnectionPoolDataSource.java:59)
at oracle.jdbc.pool.OracleConnectionCacheImpl.getNewPoolOrXAConnection (OracleConnectionCacheImpl.java:414)
at oracle.jdbc.pool.OracleConnectionCacheImpl.setMinLimit (OracleConnectionCacheImpl.java:739)

Has anyone had this error before?

I have never used this error until recently. However, this error does not occur on a colleague's machine running the same JUnit and using the same ojbdc14.jar file. So some environmental issue must be causing this.

You can help?

0


a source to share


4 answers


I got the same error in Webesphere environment when using oci dirver, it was due to jar version mismatch of ojdbc14.jar, jar from ORACLE_HOME / jdbc / lib and jar in JDBCProvider classpath defined in admin console were different.



+1


a source


Is the Oracle client installed? I think you are using "oci" instead of pure java drivers which will require client installation to build native shared libraries.



0


a source


Make sure you have -Djava.library.path=<your-oracle-home>\bin

as parameter for runtime

0


a source


It seems to me that you intend to use the JDBC Type 2 (fat client) driver, which requires the Oracle client library to be installed on your box. Or, if possible, switch to a thin driver simply by changing the url.

0


a source







All Articles