oracle9i 使用的驱动是 ojdbc14.jar

解决方案 »

  1.   

    我换过来了,仍报此错 why?
      

  2.   

    不可能,应该是哪个地方没有配置对。
    我给你看我的代码:
    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();
    你也试试看!
    -------你的开发工具是什么?
      

  3.   

    哦,可能是你的classpath有两个oracle包,你在编译程序时,要明确指明是用哪个jar包
      

  4.   

    我把classpath目录只放了两了路径 一个9i的jdbc,一个.
      

  5.   

    classes14.zip 和 ojdbc14.jar 不一样。
    ojdbc14.jar 是针对oarcle9i的。
      

  6.   

    谁有jdbc14.jar,我这只有classes12.jar 我这没有
    [email protected]
    http://expert.csdn.net/Expert/topic/1519/1519644.xml?temp=.1280786
      

  7.   

    我装的oracle9i怎么是classes12没有jdbc14?????????????????