连接不同版本的数据库可能需要不同的JAR的,最好是使用9i目录中的相应的classes12.jar来连接

解决方案 »

  1.   

    Connection refused 不是驱动的问题吧
      

  2.   

    12505, 00000, "TNS:listener could not resolve SID given in connect descriptor"
    // *Cause:  The SID in the CONNECT_DATA was not found in the listener's tables.
    // *Action: Check to make sure that the SID specified is correct.
    // The SIDs that are currently registered with the listener can be obtained by 
    // typing "LSNRCTL SERVICES <listener name>". These SIDs correspond to 
    // SID_NAMEs in TNSNAMES.ORA, or db_names in INIT.ORA. 
    // *Comment: This error will be returned if the database instance has not 
    // registered with the listener; the instance may need to be started.