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.
Joined: Nov 09, 2005
Is the problem resolved? Because I 've the same. It appears when I use MapViewer to get the result of a spatial querry. I use Oracle 10g with MapViewer 10.1.2.0.2.
Thanks for your response.
Joined: Mar 19, 2009
This is old, but there's a solution on the Oracle forums here:
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.