w*******l 发帖数: 14 | 1 下面是这段程序,运行时报的错误:
Io exception: Connection
refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
DE=12505)(EMFI=4))))
断点跟踪,进入getConnection()语句,发现带入的参数都是空。为什么呢?是不是我设
的别的参数什么有问题:向Config library之类的,我加了
zip:///[C%|/oracle/ora92/jdbc/lib/classes111_g.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes111.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12_g.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12.jar]
zip:///[C%|/oracle/ora92/jdbc/lib/classes12dms_g.jar]
zip:///[C%|/oracle/or |
w******n 发帖数: 692 | 2 It doesn't look like a java problem. I guess you don't configure
Oracle client. Can you connect oracle database using sqlplus in
the machine?
【在 w*******l 的大作中提到】 : 下面是这段程序,运行时报的错误: : Io exception: Connection : refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO : DE=12505)(EMFI=4)))) : 断点跟踪,进入getConnection()语句,发现带入的参数都是空。为什么呢?是不是我设 : 的别的参数什么有问题:向Config library之类的,我加了 : zip:///[C%|/oracle/ora92/jdbc/lib/classes111_g.jar] : zip:///[C%|/oracle/ora92/jdbc/lib/classes111.jar] : zip:///[C%|/oracle/ora92/jdbc/lib/classes12_g.jar] : zip:///[C%|/oracle/ora92/jdbc/lib/classes12.jar]
|
w*******l 发帖数: 14 | 3 可以!
refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO
我设
好像只要class12.jar就可以了,可是如果我只加这个,去掉别的,他就说找不到oracle.
oracle.jdbc.driver.OracleDriver(););
【在 w******n 的大作中提到】 : It doesn't look like a java problem. I guess you don't configure : Oracle client. Can you connect oracle database using sqlplus in : the machine?
|