{"id":4573,"date":"2015-05-18T07:00:15","date_gmt":"2015-05-18T05:00:15","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/"},"modified":"2015-05-18T07:00:15","modified_gmt":"2015-05-18T05:00:15","slug":"list-listeners-and-services-from-the-instance","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/","title":{"rendered":"List listeners and services from the instance"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nWant to know all your listeners &#8211; including scan listeners, and the services it listens for? It is possible from the instance, with the &#8211; undocumented &#8211; view V$LISTENER_NETWORK which is there since 11.2<\/p>\n<p>Let&#8217;s look at it from a RAC database:<\/p>\n<pre><code>SQL&gt; select * from GV$LISTENER_NETWORK<\/code><\/pre>\n<p>And here is the result:<\/p>\n<table border=\"1\" summary=\"Script output\" align=\"center\">\n<tbody>\n<tr>\n<th scope=\"col\">INST_ID<\/th>\n<th scope=\"col\">NETWORK<\/th>\n<th scope=\"col\">TYPE<\/th>\n<th scope=\"col\">VALUE<\/th>\n<th scope=\"col\">CON_ID<\/th>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>LOCAL LISTENER<\/td>\n<td>(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.62)(PORT=1521))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>racpdb1.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>racpdb2.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>swingbench.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>SYS$SYS.SCHEDULER$_EVENT_QUEUE.RACPDB1.RACATTACK<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.252)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.253)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.251)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">1<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>RAC.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>RAC.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>racpdb1.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>racpdb2.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>SERVICE NAME<\/td>\n<td>swingbench.racattack<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.253)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.252)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>REMOTE LISTENER<\/td>\n<td>(DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.251)(PORT=1521)))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<tr>\n<td align=\"right\">2<\/td>\n<td><\/td>\n<td>LOCAL LISTENER<\/td>\n<td>(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.78.61)(PORT=1521))<\/td>\n<td align=\"right\">1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You can see:<\/p>\n<ul>\n<li>The local listeners<\/li>\n<li>The remote listeners (SCAN listeners) with each IP address<\/li>\n<li>The services that are registered to those listeners<\/li>\n<\/ul>\n<p>Even if the view is not documented, it is a good way to have an overview of your network services for the database you are connected to.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . Want to know all your listeners &#8211; including scan listeners, and the services it listens for? It is possible from the instance, with the &#8211; undocumented &#8211; view V$LISTENER_NETWORK which is there since 11.2 Let&#8217;s look at it from a RAC database: SQL&gt; select * from GV$LISTENER_NETWORK And here is the [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[198,59],"tags":[96],"type_dbi":[],"class_list":["post-4573","post","type-post","status-publish","format-standard","hentry","category-database-management","category-oracle","tag-oracle"],"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>List listeners and services from the instance - dbi Blog<\/title>\n<meta name=\"description\" content=\"The V$LISTENER_NETWORK undocumented view\" \/>\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\/list-listeners-and-services-from-the-instance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"List listeners and services from the instance\" \/>\n<meta property=\"og:description\" content=\"The V$LISTENER_NETWORK undocumented view\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-18T05:00:15+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\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.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"List listeners and services from the instance\",\"datePublished\":\"2015-05-18T05:00:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\"},\"wordCount\":243,\"commentCount\":0,\"keywords\":[\"Oracle\"],\"articleSection\":[\"Database management\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\",\"name\":\"List listeners and services from the instance - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2015-05-18T05:00:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"description\":\"The V$LISTENER_NETWORK undocumented view\",\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"List listeners and services from the instance\"}]},{\"@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\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"List listeners and services from the instance - dbi Blog","description":"The V$LISTENER_NETWORK undocumented view","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\/list-listeners-and-services-from-the-instance\/","og_locale":"en_US","og_type":"article","og_title":"List listeners and services from the instance","og_description":"The V$LISTENER_NETWORK undocumented view","og_url":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/","og_site_name":"dbi Blog","article_published_time":"2015-05-18T05:00:15+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"List listeners and services from the instance","datePublished":"2015-05-18T05:00:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/"},"wordCount":243,"commentCount":0,"keywords":["Oracle"],"articleSection":["Database management","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/","url":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/","name":"List listeners and services from the instance - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2015-05-18T05:00:15+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"description":"The V$LISTENER_NETWORK undocumented view","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/list-listeners-and-services-from-the-instance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"List listeners and services from the instance"}]},{"@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\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4573","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\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=4573"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/4573\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=4573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=4573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=4573"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=4573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}