{"id":1476,"date":"2015-05-13T00:48:15","date_gmt":"2015-05-13T03:48:15","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=1476"},"modified":"2015-05-13T22:55:19","modified_gmt":"2015-05-14T01:55:19","slug":"ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/","title":{"rendered":"OCM 11g Preparation &#8211; Configure the network environment to allow connections to multiple databases"},"content":{"rendered":"<p>You can run multiple listeners in the same server. Thus, it&#8217;s possible to:<\/p>\n<ul>\n<li>Have 1 listener pointing to multiple databases services.<\/li>\n<li>Have multiple listeners pointing to a single service.<\/li>\n<li>Have multiple listeners pointing to multiple services.<\/li>\n<\/ul>\n<p>By default, when you start a listener without a\u00a0listener.ora, it will listen on 2 addresses:<\/p>\n<p style=\"padding-left: 30px;\"><code>(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521)))<br \/>\n(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))<\/code><\/p>\n<p>Also, by default, the database will register itself to the TCP listener running on localhost\u00a0and\u00a0port <strong>1521<\/strong>. The PMON is the process responsible for it\u00a0and does that every 60 seconds. You can force the register running: &#8220;<strong>alter system register<\/strong>&#8220;.<\/p>\n<p>So, if you have a lot of databases in the same environment, all of them will be automatically registered to the default listener as soon as it is running and the local_listener is with the default value as well.<\/p>\n<p>If you want to set up the static listener pointing to all the DBs, you must need to know how to define static entries. This is very important and needed for a lot of DB tasks, like rman duplication, data guard FSFO, etc.<\/p>\n<p>For this topic, what I recommend studying is:<\/p>\n<ul>\n<li>How to set up static listener in listener.ora<\/li>\n<li>The ways local_listener parameter can\u00a0be defined (even\u00a0adding an entry in tnsnames.ora and referring\u00a0to it)<\/li>\n<\/ul>\n<p><strong>Path to Documentation<\/strong>:<\/p>\n<p><span style=\"color: #800000;\">Database Administration -&gt; Net Services Administrator&#8217;s Guide -&gt; 9 Configuring and Administering Oracle Net Listener<\/span><\/p>\n<br>\r\nClick here to go back to the <a title=\"OCM 11g Preparation\" href=\"\/?page_id=923\">Main OCM 11g Preparation<\/a> page.\r\n<br><br>\r\nHave you enjoyed? Please leave a comment or give a \ud83d\udc4d!\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-1476 jlk' href='javascript:void(0)' data-task='like' data-post_id='1476' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-1476 lc'>+3<\/span><\/a><\/div><\/div> <div class='status-1476 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>You can run multiple listeners in the same server. Thus, it&#8217;s possible to: Have 1 listener pointing to multiple databases services. Have multiple listeners pointing to a single service. Have multiple listeners pointing to multiple services. By default, when you start a listener without a\u00a0listener.ora, it will listen on 2 addresses: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hostname)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) Also, by &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-1476","post","type-post","status-publish","format-standard","hentry","category-ocm11g-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OCM 11g Preparation - Configure the network environment to allow connections to multiple databases - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"Configure the network environment to allow connections to multiple databases for Oracle OCM 11g Certification\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"OCM 11g Preparation &#8211; Configure the network environment to allow connections to multiple databases\",\"datePublished\":\"2015-05-13T03:48:15+00:00\",\"dateModified\":\"2015-05-14T01:55:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/\"},\"wordCount\":248,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"OCM 11g Preparation\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/\",\"name\":\"OCM 11g Preparation - Configure the network environment to allow connections to multiple databases - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2015-05-13T03:48:15+00:00\",\"dateModified\":\"2015-05-14T01:55:19+00:00\",\"description\":\"Configure the network environment to allow connections to multiple databases for Oracle OCM 11g Certification\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2015\\\/05\\\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCM 11g Preparation - Configure the network environment to allow connections to multiple databases\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OCM 11g Preparation - Configure the network environment to allow connections to multiple databases - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Configure the network environment to allow connections to multiple databases for Oracle OCM 11g Certification","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"OCM 11g Preparation &#8211; Configure the network environment to allow connections to multiple databases","datePublished":"2015-05-13T03:48:15+00:00","dateModified":"2015-05-14T01:55:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/"},"wordCount":248,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["OCM 11g Preparation"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/","url":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/","name":"OCM 11g Preparation - Configure the network environment to allow connections to multiple databases - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2015-05-13T03:48:15+00:00","dateModified":"2015-05-14T01:55:19+00:00","description":"Configure the network environment to allow connections to multiple databases for Oracle OCM 11g Certification","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2015\/05\/ocm-11g-preparation-configure-the-network-environment-to-allow-connections-to-multiple-databases\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"OCM 11g Preparation - Configure the network environment to allow connections to multiple databases"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/1476","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=1476"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/1476\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=1476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=1476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=1476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}