{"id":2653,"date":"2021-03-14T08:26:36","date_gmt":"2021-03-14T08:26:36","guid":{"rendered":"https:\/\/swiv.com.br\/how-to-add-a-listener-on-oracle-restart\/"},"modified":"2026-05-27T20:02:51","modified_gmt":"2026-05-27T19:02:51","slug":"how-to-add-a-listener-on-oracle-restart","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/03\/14\/how-to-add-a-listener-on-oracle-restart\/","title":{"rendered":"How to add a Listener on Oracle Restart"},"content":{"rendered":"\n<p>Checando que o listener LISTENERDR n\u00e3o est\u00e1 configurado no Oracle Restart:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ crsctl stat res -t\n--------------------------------------------------------------------------------\nName           Target  State        Server                   State details\n--------------------------------------------------------------------------------\nLocal Resources\n--------------------------------------------------------------------------------\nora.DG_DATA.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_FRA.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_GRID.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_RECO.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.LISTENER.lsnr\n               ONLINE  ONLINE       fornix2                  STABLE\nora.asm\n               ONLINE  ONLINE       fornix2                  Started,STABLE\nora.ons\n               OFFLINE OFFLINE      fornix2                  STABLE\n--------------------------------------------------------------------------------\nCluster Resources\n--------------------------------------------------------------------------------\nora.cortexdr.db\n      1        ONLINE  ONLINE       fornix2                  Open,HOME=\/oracle\/19\n                                                             .3.0\/product,STABLE\nora.cssd\n      1        ONLINE  ONLINE       fornix2                  STABLE\nora.diskmon\n      1        OFFLINE OFFLINE                               STABLE\nora.evmd\n      1        ONLINE  ONLINE       fornix2                  STABLE\n--------------------------------------------------------------------------------\n&#x5B;grid@fornix2 ~]$\n<\/pre><\/div>\n\n\n<p>E o mesmo j\u00e1 est\u00e1 no ar:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ ps -ef | grep lsnr\ngrid      3000     1  0 04:37 ?        00:00:00 \/grid\/19.3.0\/product\/bin\/tnslsnr LISTENER -no_crs_notify -inherit\ngrid      3680     1  0 04:39 ?        00:00:00 \/grid\/19.3.0\/product\/bin\/tnslsnr LISTENERDR -inherit\ngrid      6944  6808  0 05:20 pts\/1    00:00:00 grep --color=auto lsnr\n<\/pre><\/div>\n\n\n<p>Executando o comando abaixo para adicion\u00e1-lo. Como o mesmo j\u00e1 est\u00e1 no ar, \u00e9 reportado um conflito de porta:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ srvctl add listener -l LISTENERDR -p TCP:1522 -o \/grid\/19.3.0\/product\nPRCN-2061 : Failed to add listener ora.LISTENERDR.lsnr\nPRCN-2065 : Ports 1522 are not available on the nodes given\nPRCN-2067 : Port 1522 is not available on nodes: fornix2\n<\/pre><\/div>\n\n\n<p>Utilizando o par\u00e2metro -s, essa confer\u00eancia de conflitos \u00e9 ignorada:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ srvctl add listener -l LISTENERDR -p TCP:1522 -s -o \/grid\/19.3.0\/product\n<\/pre><\/div>\n\n\n<p>Parando e ligando listener:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ srvctl stop listener -l LISTENERDR\nPRCC-1016 : LISTENERDR was already stopped\nPRCR-1005 : Resource ora.LISTENERDR.lsnr is already stopped\n \n&#x5B;grid@fornix2 ~]$ srvctl start listener -l LISTENERDR\n<\/pre><\/div>\n\n\n<p>Checando status:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ srvctl status listener -l LISTENERDR\nListener LISTENERDR is enabled\nListener LISTENERDR is running on node(s): fornix2\n<\/pre><\/div>\n\n\n<p>Checando servi\u00e7o incluso no Oracle Restart:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;grid@fornix2 ~]$ crsctl stat res -t\n--------------------------------------------------------------------------------\nName           Target  State        Server                   State details\n--------------------------------------------------------------------------------\nLocal Resources\n--------------------------------------------------------------------------------\nora.DG_DATA.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_FRA.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_GRID.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.DG_RECO.dg\n               ONLINE  ONLINE       fornix2                  STABLE\nora.LISTENER.lsnr\n               ONLINE  ONLINE       fornix2                  STABLE\nora.LISTENERDR.lsnr\n               ONLINE  ONLINE       fornix2                  STABLE\nora.asm\n               ONLINE  ONLINE       fornix2                  Started,STABLE\nora.ons\n               OFFLINE OFFLINE      fornix2                  STABLE\n--------------------------------------------------------------------------------\nCluster Resources\n--------------------------------------------------------------------------------\nora.cortexdr.db\n      1        ONLINE  ONLINE       fornix2                  Open,HOME=\/oracle\/19\n                                                             .3.0\/product,STABLE\nora.cssd\n      1        ONLINE  ONLINE       fornix2                  STABLE\nora.diskmon\n      1        OFFLINE OFFLINE                               STABLE\nora.evmd\n      1        ONLINE  ONLINE       fornix2                  STABLE\n--------------------------------------------------------------------------------\n&#x5B;grid@fornix2 ~]$\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Checando que o listener LISTENERDR n\u00e3o est\u00e1 configurado no Oracle Restart: E o mesmo j\u00e1 est\u00e1 no ar: Executando o comando abaixo para adicion\u00e1-lo. Como o mesmo j\u00e1 est\u00e1 no ar, \u00e9 reportado um conflito de porta: Utilizando o par\u00e2metro -s, essa confer\u00eancia de conflitos \u00e9 ignorada: Parando e ligando listener: Checando status: Checando servi\u00e7o [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2653","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=2653"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2653\/revisions"}],"predecessor-version":[{"id":9234,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/2653\/revisions\/9234"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=2653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=2653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=2653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}