我正在尝试使用以下 url 将 oracle 与 jdbc 连接
String url = "jdbc:oracle:thin:@<host>:1522:dev;includeSynonyms=true";
但它抛出以下错误。
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:
<host>:1522:dev;includeSynonyms=true
如果我从 url 中删除属性(includeSynonyms=true),我可以连接。
我在用ojdbc14.jar
请帮我