启动tomcat错误 哪位高手可解。。。。现在报的是这个错误 又是什么原因呢?

2025-01-05 04:27:19
推荐回答(4个)
回答1:

ORA-12505: TNS:listener does not currently know of SID given in connect descriptor
Cause: The listener received a request to establish a connection to a database or other service. The connect descriptor received by the listener specified a SID for an instance (usually a database instance) that either has not yet dynamically registered with the listener or has not been statically configured for the listener. This may be a temporary condition such as after the listener has started, but before the database instance has registered with the listener.

oracle数据库实例名不对吧,赏你解决办法:
1. 首先确保你的数据库实例名拼写正确,具体可以在dos下输入services.msc命令查看系统服务,找到OracleService开头的服务,其后就是oracle数据库实例名,比如我的服务名为
OracleServiceORCL,那么我的oracle数据库实例名就是ORCL
2. 打开dos命令,输入lsnrctl status查看你的监听器当前监听了哪些数据库实例
3. 在确保实例名没错,并且被监听器监听后,稍等一下重新启动tomcat就会好了
说明:oracle服务刚启动的时候,数据库实例并没有在监听器上注册,要过一下才可以使用的

回答2:

你先确认oracle是否运行正常,就是看看客户端工具能否正常连接oracle
然后你再确认一下你oracle的实例名是sunwayhis吗?看看是不是打错了

回答3:

oracle 配置正确

回答4:

你的oracle数据源sid读不到.就报错了.