oracle 各种问题

 

一:ORA-12505

问题

Could not open JDBC Connection for transaction; 
nested exception is 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

  TNS:监听器当前不知道连接描述符中给出的SID

解决方法:

例如,正确的jdbc字符串应该是......

jdbc:oracle:thin:@myserver:1521/XE

但是我使用的jdbs字符串是......

jdbc:oracle:thin:@myserver:1521:XE

(注意:之间1521和XE应该是/)

 

上一篇:Oracle数据 11 和12不同带来连接字符串的坑


下一篇:Navcat连接Mysql报错1521