远程连接数据库问题

plsql developer可以连接远程服务器 但是tomcat在eclipse里跑程序的时候报出

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor


这样的错误 但是plsql就没问题 谁能解决一下啊 我分析了 说是sid不识别 但是pl就是用那个连接的没问题  要是监听的问题pl sql 就能连接  请问怎么回事

猜你喜欢

转载自yyanwhj0.iteye.com/blog/2068645