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

oracle xe连接报错

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
The Connection descriptor used by the client was:
localhost:1521:XE

con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "ty", "ty");
 
大伙帮帮忙 我用的事oracle xe

------解决方案--------------------
cmd里面sqlplus能连上么