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

posted @ 2020-08-20 14:39  a729360471  阅读(815)  评论(0编辑  收藏  举报