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
数据库SID错误
// 2、设置数据源
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:oracle:thin:@172.11.14.113:1521:ORCL");
我的数据库SID不是ORCL,而是MTZF,所以要更改一下,就对了
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)