WebLogic 12c和DataSource

时间:2014-12-11 14:36:41

标签: database oracle weblogic datasource

我无法在weblogic中配置数据源并获得错误

Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor 

但db和listener是启动的,我可以从SQLDeveloper和jdbc的简单java代码连接到db。我将Oracle DB客户端安装到服务器并将其添加到" PATH",但它不起作用。

在侦听器日志中

    11-ДЕК-2014 17:37:33 * service_update * rtu1 * 0
11-ДЕК-2014 17:38:20 * service_update * nsi * 0
11-ДЕК-2014 17:38:48 * service_update * rtuwh1 * 0
11-ДЕК-2014 17:39:53 * service_update * nsi * 0
11-ДЕК-2014 17:40:23 * (CONNECT_DATA=(SID=RTUARCH)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=fedorov))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.15.15)(PORT=1245)) * establish * RTUARCH * 0
11-ДЕК-2014 17:40:23 * (CONNECT_DATA=(SID=RTU1)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=fedorov))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.15.15)(PORT=1246)) * establish * RTU1 * 0
11-ДЕК-2014 17:40:23 * (CONNECT_DATA=(SID=RTU1)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=fedorov))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.15.15)(PORT=1247)) * establish * RTU1 * 0
11-ДЕК-2014 17:40:23 * (CONNECT_DATA=(SID=RTU1)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=fedorov))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.15.15)(PORT=1248)) * establish * RTU1 * 0
11-ДЕК-2014 17:40:23 * (CONNECT_DATA=(SID=RTUHW1)(CID=(PROGRAM=JDBC Thin Client)(HOST=__jdbc__)(USER=fedorov))) * (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.15.15)(PORT=1249)) * establish * RTUHW1 * 12505
TNS-12505

感谢。

1 个答案:

答案 0 :(得分:0)

如您所看到的错误日志,您的数据源存在问题。仔细检查您的数据源。此外,还可以选择在监控选项卡下测试数据源。

enter image description here

enter image description here

enter image description here

enter image description here

它必须给你成功的结果。