日期:2014-05-17  浏览次数:20611 次

Oracle连接JDBC的一个问题
我在scott用户下建了一张student表 也插入了几条数据
为什么
conn = DriverManager.getConnection(
"jdbc:oracle:thin:@192.168.1.101:1521:scott", "scott",
"tiger"); 这句有错???
 Io 异常: The Network Adapter could not establish the connection
IP 没错啊 我通过ipconfig看过了
到底哪里有错啊

------解决方案--------------------
楼上说的没错,sid错了 ,oracle一般默认sid是orcl