{"id":15847,"date":"2021-03-03T15:51:23","date_gmt":"2021-03-03T14:51:23","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/"},"modified":"2021-03-03T15:51:23","modified_gmt":"2021-03-03T14:51:23","slug":"how-to-configure-additional-listeners-on-oda","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/","title":{"rendered":"How to configure additional listeners on ODA"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>Oracle Database Appliance has quite a lot of nice features, but when looking into the documentation, at least one thing is missing. How to configure multiple listeners? Odacli apparently doesn&#8217;t know what&#8217;s a listener. Let&#8217;s find out how to add new ones.<\/p>\n<h2>odacli<\/h2>\n<p>Everything should be done using odacli on ODA, but unfortunately odacli has no commands for configuring listeners:  <\/p>\n<p><code><strong>odacli -h | grep listener<\/strong><br \/>\n<em>nothing!<\/em><br \/>\n<\/code><\/p>\n<h2>The wrong way to configure a listener<\/h2>\n<p>One could tell me that configuring a listener is easy, you just have to describe it into the listener.ora file, for example:<\/p>\n<p><code><strong>echo \"DBI_LSN=(DESCRIPTION_LIST=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oda-dbi-test)(PORT=1576))))\" &gt;&gt; $ORACLE_HOME\/network\/admin\/listener.ora<\/strong><\/code><\/p>\n<p>&#8230; and start it with:<br \/>\n<code><strong>lsnrctl start DBI_LSN<\/strong><\/code><\/p>\n<p>But if it works fine, it&#8217;s not the best way to do that. Why? Simply because it will not survive a reboot.<\/p>\n<h2>A better way to configure a listener: through Grid Intrastructure<\/h2>\n<p>ODA makes use of Grid Infrastructure for its default listener on port 1521. The listener is an Oracle service running in Grid Infrastructure, so additional listeners should be declared in the Grid Infrastructure using srvctl. This is an example to configure a new listener on port 1576:<\/p>\n<p><code><strong>su - grid<br \/>\nwhich srvctl<\/strong><br \/>\n\/u01\/app\/19.0.0.0\/oracle\/bin\/srvctl<br \/>\n<strong>srvctl add listener -listener DBI_LSN -endpoints 1576<br \/>\nsrvctl config listener -listener DBI_LSN<\/strong><br \/>\nName: DBI_LSN<br \/>\nType: Database Listener<br \/>\nNetwork: 1, Owner: grid<br \/>\nHome:<br \/>\nEnd points: TCP:1576<br \/>\nListener is enabled.<br \/>\nListener is individually enabled on nodes:<br \/>\nListener is individually disabled on nodes:<br \/>\n<strong>srvctl start listener -listener DBI_LSN<br \/>\nps -ef | grep tnslsn | grep DBI<\/strong><br \/>\noracle   71530     1  0 12:41 ?        00:00:00 \/u01\/app\/19.0.0.0\/oracle\/bin\/tnslsnr DBI_LSN -no_crs_notify -inherit<br \/>\n<\/code><\/p>\n<p>The new listener is running fine, and the listener.ora has been completed with this new item:<\/p>\n<p><code><strong>cat \/u01\/app\/19.0.0.0\/oracle\/network\/admin\/listener.ora | grep DBI<\/strong><br \/>\nDBI_LSN=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=DBI_LSN))))              # line added by Agent<br \/>\nENABLE_GLOBAL_DYNAMIC_ENDPOINT_DBI_LSN=ON               # line added by Agent<br \/>\nVALID_NODE_CHECKING_REGISTRATION_DBI_LSN=SUBNET         # line added by Agent<br \/>\n<\/code><\/p>\n<p>For sure, configuring a listener on a particular port is only possible if this port is not in use.<\/p>\n<h2>Removing a listener<\/h2>\n<p>If you want to remove a listener, you just need to remove the service from Grid Infrastructure:<br \/>\n<code><strong>su - grid<br \/>\nsrvctl stop listener -listener DBI_LSN<br \/>\nsrvctl remove listener -listener DBI_LSN<br \/>\nps -ef | grep tnslsn | grep DBI<\/strong><br \/>\n<em>no more listener DBI_LSN running<\/em><br \/>\n<strong>cat \/u01\/app\/19.0.0.0\/oracle\/network\/admin\/listener.ora | grep DBI<\/strong><br \/>\n<em>no more configuration in the listener.ora file<\/em><br \/>\n<\/code><\/p>\n<p>Obviously, if you plan to remove a listener, please make sure that no database is using it prior removing it.<\/p>\n<h2>How to use this listener for my database<\/h2>\n<p>Since 12c, a new LREG process in the instance is doing the registration of the database in a listener. Previously, this job was done by PMON process. The default behavior is to register the instance in the standard listener on 1521. If you want to configure your database with the new listener you just created with srvctl, configure the local_listener parameter:<\/p>\n<p><code><strong>su - oracle<br \/>\n. oraenv &lt;&lt;&lt; DBTEST<br \/>\nsqlplus \/ as sysdba<br \/>\nalter system set local_listener=&#039;(ADDRESS=(PROTOCOL=TCP)(HOST=oda-dbi-test)(PORT=1576))&#039; scope=both;<br \/>\nalter system register;<br \/>\nexit;<\/strong><\/code><\/p>\n<p>No need to reboot anything.<\/p>\n<h2>What about standard 1521 listener?<\/h2>\n<p>You may think about removing the standard listener on port 1521. But I wouldn&#8217;t do that. I think it&#8217;s better to keep this default one, even if none of your databases are using it. It could later cause troubles when patching or configuring something else on your ODA.<\/p>\n<h2>Conclusion<\/h2>\n<p>The listener management with odacli could come one day, but for now (19.9 and before) you still have to configure it using Grid Infrastructure. It&#8217;s quite easy and pretty straightforward if you do it the proper way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Oracle Database Appliance has quite a lot of nice features, but when looking into the documentation, at least one thing is missing. How to configure multiple listeners? Odacli apparently doesn&#8217;t know what&#8217;s a listener. Let&#8217;s find out how to add new ones. odacli Everything should be done using odacli on ODA, but unfortunately odacli [&hellip;]<\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229,198,199,59],"tags":[2265,2266,2267,2268,2269,2270,79,2271,2272,365,2273,1330,1331,1332,1697,1698,1699],"type_dbi":[],"class_list":["post-15847","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","category-database-management","category-hardware-storage","category-oracle","tag-add-a-listener","tag-additional-listener","tag-configure-a-listener","tag-listener-management","tag-listener-ora","tag-lsnrctl","tag-oda","tag-odacli-add-listener","tag-odacli-configure-listener","tag-oracle-database-appliance","tag-srvctl","tag-x7-2ha","tag-x7-2m","tag-x7-2s","tag-x8-2ha","tag-x8-2m","tag-x8-2s"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to configure additional listeners on ODA - dbi Blog<\/title>\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.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to configure additional listeners on ODA\" \/>\n<meta property=\"og:description\" content=\"Introduction Oracle Database Appliance has quite a lot of nice features, but when looking into the documentation, at least one thing is missing. How to configure multiple listeners? Odacli apparently doesn&#8217;t know what&#8217;s a listener. Let&#8217;s find out how to add new ones. odacli Everything should be done using odacli on ODA, but unfortunately odacli [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-03T14:51:23+00:00\" \/>\n<meta name=\"author\" content=\"J\u00e9r\u00f4me Dubar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"J\u00e9r\u00f4me Dubar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\"},\"author\":{\"name\":\"J\u00e9r\u00f4me Dubar\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\"},\"headline\":\"How to configure additional listeners on ODA\",\"datePublished\":\"2021-03-03T14:51:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\"},\"wordCount\":424,\"commentCount\":0,\"keywords\":[\"add a listener\",\"additional listener\",\"configure a listener\",\"listener management\",\"listener.ora\",\"lsnrctl\",\"ODA\",\"odacli add listener\",\"odacli configure listener\",\"Oracle database appliance\",\"srvctl\",\"X7-2HA\",\"X7-2M\",\"X7-2S\",\"x8-2ha\",\"x8-2m\",\"x8-2s\"],\"articleSection\":[\"Database Administration &amp; Monitoring\",\"Database management\",\"Hardware &amp; Storage\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\",\"name\":\"How to configure additional listeners on ODA - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2021-03-03T14:51:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to configure additional listeners on ODA\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\",\"name\":\"J\u00e9r\u00f4me Dubar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"caption\":\"J\u00e9r\u00f4me Dubar\"},\"description\":\"J\u00e9r\u00f4me Dubar has more than 15 years of experience in the field of Information Technology. Ten years ago, he specialized in the Oracle Database technology. His expertise is focused on database architectures, high availability (RAC), disaster recovery (DataGuard), backups (RMAN), performance analysis and tuning (AWR\/statspack), migration, consolidation and appliances, especially ODA (his main projects during the last years). Prior to joining dbi services, J\u00e9r\u00f4me Dubar worked in a Franco-Belgian IT service company as Database team manager and main consultant for 7 years. He also worked for 5 years in a software editor company as technical consultant across France. He was also teaching Oracle Database lessons for 9 years. J\u00e9r\u00f4me Dubar holds a Computer Engineering degree from the Lille Sciences and Technologies university in northern France. His branch-related experience covers the public sector, retail, industry, banking, health, e-commerce and IT sectors.\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/jerome-dubar\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to configure additional listeners on ODA - dbi Blog","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.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/","og_locale":"en_US","og_type":"article","og_title":"How to configure additional listeners on ODA","og_description":"Introduction Oracle Database Appliance has quite a lot of nice features, but when looking into the documentation, at least one thing is missing. How to configure multiple listeners? Odacli apparently doesn&#8217;t know what&#8217;s a listener. Let&#8217;s find out how to add new ones. odacli Everything should be done using odacli on ODA, but unfortunately odacli [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/","og_site_name":"dbi Blog","article_published_time":"2021-03-03T14:51:23+00:00","author":"J\u00e9r\u00f4me Dubar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"J\u00e9r\u00f4me Dubar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/"},"author":{"name":"J\u00e9r\u00f4me Dubar","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd"},"headline":"How to configure additional listeners on ODA","datePublished":"2021-03-03T14:51:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/"},"wordCount":424,"commentCount":0,"keywords":["add a listener","additional listener","configure a listener","listener management","listener.ora","lsnrctl","ODA","odacli add listener","odacli configure listener","Oracle database appliance","srvctl","X7-2HA","X7-2M","X7-2S","x8-2ha","x8-2m","x8-2s"],"articleSection":["Database Administration &amp; Monitoring","Database management","Hardware &amp; Storage","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/","url":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/","name":"How to configure additional listeners on ODA - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2021-03-03T14:51:23+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/how-to-configure-additional-listeners-on-oda\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to configure additional listeners on ODA"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd","name":"J\u00e9r\u00f4me Dubar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","caption":"J\u00e9r\u00f4me Dubar"},"description":"J\u00e9r\u00f4me Dubar has more than 15 years of experience in the field of Information Technology. Ten years ago, he specialized in the Oracle Database technology. His expertise is focused on database architectures, high availability (RAC), disaster recovery (DataGuard), backups (RMAN), performance analysis and tuning (AWR\/statspack), migration, consolidation and appliances, especially ODA (his main projects during the last years). Prior to joining dbi services, J\u00e9r\u00f4me Dubar worked in a Franco-Belgian IT service company as Database team manager and main consultant for 7 years. He also worked for 5 years in a software editor company as technical consultant across France. He was also teaching Oracle Database lessons for 9 years. J\u00e9r\u00f4me Dubar holds a Computer Engineering degree from the Lille Sciences and Technologies university in northern France. His branch-related experience covers the public sector, retail, industry, banking, health, e-commerce and IT sectors.","url":"https:\/\/www.dbi-services.com\/blog\/author\/jerome-dubar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=15847"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/15847\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=15847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=15847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=15847"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=15847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}