ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
在连接配置未变更的情况下报此错误解决方式:
1、在Oracle服务器中检查监听状态(命令:lsnrctl status)
2、若出现如上截图(The listener supports no services)问题,找到如图Listener Parameter File文件加入如下代码
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
)
)
3、重启监听,执行如下命令
su - oracle
lsnrctl stop
lsnrctl start
学以致用,只争朝夕,不负韶华。