新手送分(解决马上给分) oracle9i 使用的驱动是 ojdbc14.jar 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我换过来了,仍报此错 why? 不可能,应该是哪个地方没有配置对。我给你看我的代码:public class ConnectionCacheExample {public static void main(String[] args) {throws SQLException {OracleConnectionCacheImpl myOCCI = new OracleConnectionCacheImpl();myOCCI.setServerName("localhost");myOCCI.setDatabaseName("ORCL");myOCCI.setPortNumber(1521);myOCCI.setDriverType("thin");myOCCI.setUser("myuser");myOCCI.setPassword("mypassword");Connection myConnection1 = myOCCI.getConnection();Connection myConnection2 = myOCCI.getConnection();//DO somthing here for myConnection1 and myCOnnection2myConnection1.close();myConnection2.close();myOCCI.close();你也试试看!-------你的开发工具是什么? 哦,可能是你的classpath有两个oracle包,你在编译程序时,要明确指明是用哪个jar包 我把classpath目录只放了两了路径 一个9i的jdbc,一个. classes14.zip 和 ojdbc14.jar 不一样。ojdbc14.jar 是针对oarcle9i的。 谁有jdbc14.jar,我这只有classes12.jar 我这没有[email protected]http://expert.csdn.net/Expert/topic/1519/1519644.xml?temp=.1280786 我装的oracle9i怎么是classes12没有jdbc14????????????????? 请教一条SQL语句 问一个关于触发器的问题 能否把以前拷贝出来的表空间挂到Oracle中继续使用 什么是本地管理方式,什么是字典管理方式,有什么区别? 如何写一个函数得到表中的总记录数 otl调用oracle的问题 求sql 语句!!!!!! 如何判断 是应用程序须改的还是触发器修改的 GLOBAL TEMPORARY的问题 spool是用来干什么的?怎么用? 有关UTL_FILE的问题 TAB在表oracle中的用处
我给你看我的代码:
public class ConnectionCacheExample {
public static void main(String[] args) {
throws SQLException {OracleConnectionCacheImpl myOCCI = new OracleConnectionCacheImpl();
myOCCI.setServerName("localhost");
myOCCI.setDatabaseName("ORCL");
myOCCI.setPortNumber(1521);
myOCCI.setDriverType("thin");
myOCCI.setUser("myuser");
myOCCI.setPassword("mypassword");Connection myConnection1 = myOCCI.getConnection();
Connection myConnection2 = myOCCI.getConnection();//DO somthing here for myConnection1 and myCOnnection2
myConnection1.close();
myConnection2.close();
myOCCI.close();
你也试试看!
-------你的开发工具是什么?
ojdbc14.jar 是针对oarcle9i的。
[email protected]
http://expert.csdn.net/Expert/topic/1519/1519644.xml?temp=.1280786