Topic: 在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path) |
Print this page |
1.在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path) | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-18 19:44 利用jb9+weblogic7.02开发jsp,对Oracle数据库进行连接时老出现如下错误 java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344) at java.lang.Runtime.loadLibrary0(Runtime.java:744) at java.lang.System.loadLibrary(System.java:815) at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228) at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:249) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at java.sql.DriverManager.getConnection(DriverManager.java:512) at java.sql.DriverManager.getConnection(DriverManager.java:194) at jsp_servlet.__show$DealDB.GetConnection(__show.java:61) at jsp_servlet.__show._jspService(__show.java:150) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:445) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5445) at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:780) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3105) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2588) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189 我不知道是哪个类应该安哪儿 新手求教 |
2.Re:在线求救 [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-18 19:59 oci的类库没找到 |
3.Re:在线求救 [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-19 16:52 该如何设置 |
4.Re:在线求救 [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-19 17:07 iceweier wrote: 请问你想用的是OCI8还是THIN方式呀? |
5.Re:在线求救 [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-19 18:54 oci8 |
6.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-19 21:40 首先确认ORACLE客户端已配置好! |
7.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-20 13:10 利用jdbc连接 不需要客户端吧 |
8.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: sanigo Posted on: 2003-08-20 13:34 检查PATH,要包含Oracle得某些目录, 几个月前用过,现在记不清是那些了 |
9.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-20 15:15 是不是系统的path参数 我加了bin目录了 有没有哪儿有文章介绍如何设置的 |
10.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-20 15:46 OC8连接不用客户端吗??看看你的URL |
11.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-20 20:59 //使用OCI8连接到数据库 conn=DriverManager.getConnection("jdbc:oracle:oci8"+dbNAME,userID,userPWD); 其中dbNAME是 USER/PASSWORD@dbNAME中的dbNAME 不知道你怎样写的? |
12.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: sanigo Posted on: 2003-08-20 23:49 oci必须要客户端, 我现在没装,所以不知道是哪个目录,你看看别的机器的PATH就知道了 |
13.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-21 16:53 我的机器上装了oracle8i oci客户端是什么 不好意思,新手不懂 |
14.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-21 17:16 iceweier wrote: 都是新手,呵呵, 在oracle\ora81\NETWORK\ADMIN\tnsnames.ora文件中的连接名称 dbNAME = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1521)) ) (CONNECT_DATA = (SID = xxxx) ) ) |
15.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: itemp Posted on: 2003-08-22 09:20 用System.out.println(System.getProperty("java.library.path"));察看一下系统的设置,看里面有没有oracle的bin目录。 1.如果没有的话重新设下path,最好放在系统的path中,而不是用户的path。设完后进到dos用set看一下path对不对。 2.如果有的话看一下oracle的bin目录里面有没有ocijdbc8.dll文件。如果没有就只有重装oracle客户端了,记得好像有个oracle jdbc选项的。 |
16.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-22 20:10 我在tomact底下调试可以通过 但在weblogic底下调试通不过,我看了,系统的path里设有oracle的bin目录 且有ocijdbc8.dll文件 是不是要设置一下weblogic? |
17.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: itemp Posted on: 2003-08-22 21:58 在weblogic下用System.out.println(System.getProperty("java.library.path"));察看系统的设置了吗? |
18.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: iceweier Posted on: 2003-08-22 23:15 以weblogic为server,从中看到的java.library.path 的确没有oracle的bin目录 可是我的系统path变量值中有oracle的bin目录 我的os是xp |
19.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: jameszhang Posted on: 2003-08-23 07:24 最好的办法是你把程序贴出来看看 |
20.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: sanigo Posted on: 2003-08-23 15:23 那就在里面加上吧 |
21.Re:在线求救 (jb9/weblogic7.02/Oracle java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.pat [Re: iceweier] | Copy to clipboard |
Posted by: itemp Posted on: 2003-08-23 22:08 把oracle的path写在系统path最前面 或者修改启动的bat文件,加入PATH=c:\oracle\ora81\bin;%PATH% |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |