Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cGetCharSet at oracle.jdbc.driver.T2CConnection.t2cGetCharSet(Native Method) at oracle.jdbc.driver.T2CConnection.getCharSetIds(T2CConnection.java:2873) at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:303) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:347) at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:139) at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:79) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:549) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at JdbcTest.main(JdbcTest.java:12) Java Result: 1
thanks in advance atlas [ October 21, 2005: Message edited by: Bear Bibeault ]
Can we get some more details? ie what OS are you running, what is the jdbc-url, oracle version, oractle driver JAR, anything else of note?
The only time I can rememeber something similar was years back on Linux using the Oracle type-2 driver when the Oracle client wasn't installed correctly. I'd also check that you are using the most up-to-date oracle driver.
There are a couple of possible solutions on that thread, but the one that solved my instance of this "java.lang.UnsatisfiedLinkError: t2cGetCharSet" error was removing duplicate entries in my PATH environment variable that pointed to Oracle bin directories. In my case, I had C:\OraHome_1\bin, which I wanted, but I also had an old OracleXE\bin (this isn't the actual path, I can't remember what it was) entry. After I removed OracleXE\bin from my path, it worked like a charm.
expectation is the root of all heartache - shakespeare. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!