Myeclipse开发:ORA-12505,TNS:listener does not currently know of SID given in connect descriptor.
题目
Myeclipse开发:ORA-12505,TNS:listener does not currently know of SID given in connect descriptor.
开发环境:Myeclipse 6.5,Tomcat 5.5,oracle 10g,数据库服务器在IP为192.168.10.10的机子上,用户为:username.密码是:password,数据库实例为:test.
启动Tomcat时报错,错误信息如下:
[main] ERROR:org.hibernate.util.JDBCExceptionReporter#logExceptions :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
The Connection descriptor used by the client was:
localhost:1521:mydb
)
(16 ms) [main] WARN :org.hibernate.cfg.SettingsFactory#buildSettings :Could not obtain connection metadata
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
The Connection descriptor used by the client was:
localhost:1521:mydb
)<
答案
碰到过这种问题,改listener.ora 试试是否能解决.
解决方法:
打开Oracle的 listener.ora 文件:
(我的目录 oracle/oracle/product/10.2.0/db_1/network/admin/listener.ora)
可参照参考资料:
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
热门考点
- 英语翻译
- harvard university,which in 1363 ,is one of the o
- 有一个棱长8cm的长方体铁丝框架,把它改成长10cm、宽5cm的长方体框架.这个长方体框架的高是多少?
- 这个周末我们准备去远足用英语怎么说
- 在半径50mm的圆中 有一个三角形AOB 弦AB长50mm 求角AOB的度数并计算点O到AB的距离 两个同心圆...
- 物理电学 不仅要答案(C) 要解析
- 人脑几摄氏度时思维最为敏捷
- 甲乙分别从东,西两港同时出发相向而行,甲每时行18千米,乙每时行15千米,
- 分子式为c11h14o2的有机物,苯环上有两个取代基,能与碳酸氢钠反应产生气体 同分异构
- 设abc∈R,若a+b+c=1,a2+b2+c2=1,且a>b>c,求c的取值范围.