安装oracle的时候一般默认的监听端口为1521,过了一段时间想把端口修改为1531,在listener.ora文件中直接修改端口后,重启监听服务,发现报ora-12541:无监听服务错误。
解决方法:
登录sqlplus,运行命令:
alter system set local_listener="(address=(protocol=tcp)(host=win2008R2-93)(port=1531))" scope=both;
win2008R2-93:为服务器电脑名
错误解决。