ORA-12514 TNS:listener does not currently know of service requested in connect descriptor报错解决

ORA-12514 TNS:listener does not currently know of service requested in connect descriptor报错问题解决方法

 

解决方法:

 

1.停掉监听:

lsnrctl stop

2.编辑监听文件:

vim /u01/oracle/app/product/11.2/dbhome_1/network/admin/listener.ora

 

我这里的环境是双oracle做的主备,两台oracle服务器IP分别为

150.31.125.113150.31.125.114

这里的监听文件我设置的主备虚拟IP150.31.125.115

另外还要加上一句:

SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = ebank)(SID_NAME=ebank)))

注解:GLOBAL_DBNAME = ebank    把ebank改为自己的实例名。

保存退出;

3.重启监听可以解决问题了。(生产环境,解决问题后就没有拍照),欢迎大家留言交流。ORA-12514 TNS:listener does not currently know of service requested in connect descriptor报错解决_第1张图片

你可能感兴趣的:(ORA-12514 TNS:listener does not currently know of service requested in connect descriptor报错解决)