ORA-12505, TNS:listener does not currently know of SID given in connect descript

错误:
java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect 

且不能修改数据库的配置文件。
解决:
select instance_name from v$instance

查找数据库SID
替换到url中,jdbc就可连接到数据库了。

你可能感兴趣的:(listener)