JDBC 连接Oracle 10g 异常Connection reset如何解决
oracle10g的服务已启动代码好下:Class.forName(OpProperties.getValue("oracledriver"));conn=DriverM...
oracle10g 的服务已启动代码好下:Class.forName(OpProperties.getValue("oracledriver"));conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl","system","lwb");出现的异常:java.sql.SQLException: Io 异常: Connection reset at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:344) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.lwb.dao.daoutil.DBConnection.getConnecton(DBConnection.java:26) at com.lwb.dao.OpProduce.diplay(OpProduce.java:16) at com.lwb.dao.OpProduce.main(OpProduce.java:39)Exception in thread "main" java.lang.NullPointerException at com.lwb.dao.OpProduce.diplay(OpProduce.java:19) at com.lwb.dao.OpProduce.main(OpProduce.java:39)
展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询