Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle jdbc oci8 driver problem

843854Aug 20 2002 — edited Aug 21 2002
Hi..
I have oracle 8i 8.1.7.0.0 on windows 2000 server.
everything is ok, I run the jdbc/sample/oci8 on the server with jdk1.3.1

I install Oracle client on otherc pc windows 2000 professional and I have classes12.zip I download a patch for jdbc driver classes12.zip

I try to connect to my oracle DB but can't connect.
If i use oracle thin driver is OK.
But when I try oci8 send me next error
C:\>java JdbcCheckup
Please enter information to test connection to the database
user: scott
password: tiger
database (a TNSNAME entry): DB01
Connecting to the database...Connecting...
Exception in thread "main" java.lang.UnsatisfiedLinkError: get_env_handle
   at oracle.jdbc.oci8.OCIEnv.get_env_handle(Native Method)
   at oracle.jdbc.oci8.OCIEnv.getEnvHandle(OCIEnv.java:70)
   at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:359)  
   at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:252)
   at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:365)
   at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at java.sql.DriverManager.getConnection(Unknown Source)
   at JdbcCheckup.main(JdbcCheckup.java:45)
I connect using sqlplus to DB01 but I don't know why oci8 driver doesn't work....

Any suggest are welcome....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 18 2002
Added on Aug 20 2002
12 comments
1,038 views