一、jdbc的drive选择:
oracle官网说明:
http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html
ojdbc5.jar (2,095,932 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types. | |
ojdbc5_g.jar (3,426,203 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code. | |
ojdbc6.jar (2,714,189 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types. | |
ojdbc6_g.jar (4,463,274 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code. |
二、选择正确的驱动后解决
Io 异常: The Network Adapter could not establish the connection