Oracle Restart enable database creation requries Default listener configured and running in Grid Infrastructure home,Use NETCA in Grid Infrastructure home - “/u01/app/11.2.0/grid" to configre a listener before proceeding.
如上图,错误描述十分清楚,找不到listener需要在grid用户下创建一个。
查看了一下crs后台服务
[grid@oel11g ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE oel11g
ora.DG01.dg ora....up.type ONLINE ONLINE oel11g
ora.asm ora.asm.type ONLINE ONLINE oel11g
ora.cssd ora.cssd.type ONLINE ONLINE oel11g
ora.diskmon ora....on.type ONLINE ONLINE oel11g
这里的服务显然没有listener
到这里我可能已经找到问题的所在了,虽然我手工的启动了listener,但是crs服务中没有注册到listener的服务,需要手工的添加一下
使用srvctl指令查看listener服务
[grid@oel11g ~]$ srvctl status listener
PRCN-2044 : No listener exists
以上证明确实没有listener服务添加入crs中
通过如下指令加listener加入到crs服务中
[grid@oel11g ~]$ srvctl add listener
[grid@oel11g ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is not running
[grid@oel11g ~]$ srvctl start listener
[grid@oel11g ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): oel11g
此时便可以继续安装过程了。