您好,登錄后才能下訂單哦!
在安裝oracle 11g rac時,使用dbca建庫的過程中提示需要創(chuàng)建監(jiān)聽:
Default Listener "LISTENER" is not configured in Grid Infrantructure home.Use NetCA to configure Default Listener and return DBCA
因為oracle 11g rac在安裝過程中會自動創(chuàng)建監(jiān)聽,無需手動創(chuàng)建,首先使用grid用戶登錄查看監(jiān)聽狀態(tài):
[grid@node1 ~]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE node1 ora....N1.lsnr ora....er.type ONLINE ONLINE node1 ora.OCRVOTE.dg ora....up.type ONLINE ONLINE node1 ora.asm ora.asm.type ONLINE ONLINE node1 ora.cvu ora.cvu.type ONLINE ONLINE node1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE node1 ora....SM1.asm application ONLINE ONLINE node1 ora.node1.gsd application OFFLINE OFFLINE ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip ora....t1.type ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora.node2.gsd application OFFLINE OFFLINE ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip ora....t1.type ONLINE ONLINE node2 ora.oc4j ora.oc4j.type ONLINE ONLINE node1 ora.ons ora.ons.type ONLINE ONLINE node1 ora.scan1.vip ora....ip.type ONLINE ONLINE node1
使用命令crs_stat -t查看各資源狀態(tài),發(fā)現(xiàn)沒有監(jiān)聽資源,下面查看詳細信息:
[grid@node1 ~]$ crs_stat NAME=ora.DATA.dg TYPE=ora.diskgroup.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.LISTENER_SCAN1.lsnr TYPE=ora.scan_listener.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.OCRVOTE.dg TYPE=ora.diskgroup.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.asm TYPE=ora.asm.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.cvu TYPE=ora.cvu.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.gsd TYPE=ora.gsd.type TARGET=OFFLINE STATE=OFFLINE NAME=ora.net1.network TYPE=ora.network.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.gsd TYPE=application TARGET=OFFLINE STATE=OFFLINE NAME=ora.node1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.vip TYPE=ora.cluster_vip_net1.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node2.ASM2.asm TYPE=application TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.node2.gsd TYPE=application TARGET=OFFLINE STATE=OFFLINE NAME=ora.node2.ons TYPE=application TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.node2.vip TYPE=ora.cluster_vip_net1.type TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.oc4j TYPE=ora.oc4j.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.ons TYPE=ora.ons.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.scan1.vip TYPE=ora.scan_vip.type TARGET=ONLINE STATE=ONLINE on node1
手動添加監(jiān)聽資源:
[grid@node1 admin]$ srvctl status listener PRCN-2044 : No listener exists [grid@node1 admin]$ [grid@node1 admin]$ srvctl add listener [grid@node1 admin]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is not running [grid@node1 admin]$ [grid@node1 admin]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE node1 ora....ER.lsnr ora....er.type OFFLINE OFFLINE ora....N1.lsnr ora....er.type ONLINE ONLINE node1 ora.OCRVOTE.dg ora....up.type ONLINE ONLINE node1 ora.asm ora.asm.type ONLINE ONLINE node1 ora.cvu ora.cvu.type ONLINE ONLINE node1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE node1 ora....SM1.asm application ONLINE ONLINE node1 ora....E1.lsnr application OFFLINE OFFLINE ora.node1.gsd application OFFLINE OFFLINE ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip ora....t1.type ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application OFFLINE OFFLINE ora.node2.gsd application OFFLINE OFFLINE ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip ora....t1.type ONLINE ONLINE node2 ora.oc4j ora.oc4j.type ONLINE ONLINE node1 ora.ons ora.ons.type ONLINE ONLINE node1 ora.scan1.vip ora....ip.type ONLINE ONLINE node1
手動啟動監(jiān)聽:
[grid@node1 admin]$ srvctl start listener [grid@node1 admin]$ [grid@node1 admin]$ srvctl status listener Listener LISTENER is enabled Listener LISTENER is running on node(s): node2,node1 [grid@node1 admin]$ [grid@node1 admin]$ crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DATA.dg ora....up.type ONLINE ONLINE node1 ora....ER.lsnr ora....er.type ONLINE ONLINE node1 ora....N1.lsnr ora....er.type ONLINE ONLINE node1 ora.OCRVOTE.dg ora....up.type ONLINE ONLINE node1 ora.asm ora.asm.type ONLINE ONLINE node1 ora.cvu ora.cvu.type ONLINE ONLINE node1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE node1 ora....SM1.asm application ONLINE ONLINE node1 ora....E1.lsnr application ONLINE ONLINE node1 ora.node1.gsd application OFFLINE OFFLINE ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip ora....t1.type ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application ONLINE ONLINE node2 ora.node2.gsd application OFFLINE OFFLINE ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip ora....t1.type ONLINE ONLINE node2 ora.oc4j ora.oc4j.type ONLINE ONLINE node1 ora.ons ora.ons.type ONLINE ONLINE node1 ora.scan1.vip ora....ip.type ONLINE ONLINE node1
發(fā)現(xiàn)監(jiān)聽正常啟動,查看詳細資源信息:
[grid@node1 admin]$ [grid@node1 admin]$ crs_stat NAME=ora.DATA.dg TYPE=ora.diskgroup.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.LISTENER.lsnr TYPE=ora.listener.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.LISTENER_SCAN1.lsnr TYPE=ora.scan_listener.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.OCRVOTE.dg TYPE=ora.diskgroup.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.asm TYPE=ora.asm.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.cvu TYPE=ora.cvu.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.gsd TYPE=ora.gsd.type TARGET=OFFLINE STATE=OFFLINE NAME=ora.net1.network TYPE=ora.network.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.ASM1.asm TYPE=application TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.LISTENER_NODE1.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.gsd TYPE=application TARGET=OFFLINE STATE=OFFLINE NAME=ora.node1.ons TYPE=application TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node1.vip TYPE=ora.cluster_vip_net1.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.node2.ASM2.asm TYPE=application TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.node2.LISTENER_NODE2.lsnr TYPE=application TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.node2.gsd TYPE=application TARGET=OFFLINE STATE=OFFLINE NAME=ora.node2.ons TYPE=application TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.node2.vip TYPE=ora.cluster_vip_net1.type TARGET=ONLINE STATE=ONLINE on node2 NAME=ora.oc4j TYPE=ora.oc4j.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.ons TYPE=ora.ons.type TARGET=ONLINE STATE=ONLINE on node1 NAME=ora.scan1.vip TYPE=ora.scan_vip.type TARGET=ONLINE STATE=ONLINE on node1
免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經查實,將立刻刪除涉嫌侵權內容。