程序连接oracle失败
发布时间:2020-12-12 15:29:13 所属栏目:百科 来源:网络整理
导读:记录一次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 i
记录一次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.OracleDriver jdbc.url=jdbc:oracle:thin:@192.168.118.197:1521:orcl jdbc.username=learn_in jdbc.password=123456 下面为正确的: jdbc.driverClassName=oracle.jdbc.driver.OracleDriver jdbc.url=jdbc:oracle:thin:@//192.168.118.197:1521/orcl jdbc.username=learn_in jdbc.password=123456 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |