aspose file tools*
The moose likes BEA/Weblogic and the fly likes Problem setting Oracle connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem setting Oracle connection" Watch "Problem setting Oracle connection" New topic
Author

Problem setting Oracle connection

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
Thanks for any help anyone can give me.
When I run the command
C:\>java utils.dbping ORACLE SCOTT TIGER ORXML
Starting Loading jDriver/Oracle .....

I get the following Error:
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.Unsatis
fiedLinkError: no weblogicoci37 in java.library.path
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:141)
at utils.dbping.main(dbping.java:167)

I think both my CLASSPATH and PATH is set correctly.
CLASSPATH
.;C:\jdk1.3.1_04\lib\tools.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;C:\bea;C:\bea\wlserver6.1\lib\weblogic.jar;C:\oracle\ora90\jdbc\lib\classes111.zip;C:\projects\jakarta-Tomcat-4.0\bin\bootstrap.jar
PATH
C:\jdk1.3.1_04\jre\bin;.;
C:\WINDOWS\System32;C:\WINDOWS;.;C:\jdk1.3.1_04\bin;C:\j2sdkee1.3.1\bin;C:\jakarta-ant-1.3\bin;C:\bea\wlserver6.0\bin\oci816_8;
C:\oracle\ora90\bin;C:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.8\bin;C:\oracle\ora90\jdbc\lib\classes111.zip;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\WINDOWS\COMMAND;
Cheers TE
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 556
Problem fixed with a very red face, my path was wrong instead of
C:\bea\wlserver6.1\bin\oci816_8
I had
C:\bea\wlserver6.0\bin\oci816_8
TE
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem setting Oracle connection
 
Similar Threads
Problem connecting to an Oracle database
Weblogic Oracle JDBC Problem
Hope Mr Parthasarathy madhira or other friend help me to solve this problem
Asking for ocijdbc8 in Path I have ocijdbc9
connecting weblogic 6.1 and oracle thru thin driver