程序连接oracle失败

2017-01-06 19:40:08来源:CSDN作者:shog808人点击

记录一次jdbc连接oracle失败的原因


ERROR [RMI TCP Connection(3)-127.0.0.1] - init datasource error

  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






jdbc配置如下:

jdbc.driverClassName=oracle.jdbc.driver.OracleDriverjdbc.url=jdbc:oracle:thin:@192.168.118.197:1521:orcljdbc.username=learn_injdbc.password=123456
下面为正确的:
	
jdbc.driverClassName=oracle.jdbc.driver.OracleDriverjdbc.url=jdbc:oracle:thin:@//192.168.118.197:1521/orcljdbc.username=learn_injdbc.password=123456


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台