{"id":10455,"date":"2017-09-10T19:39:21","date_gmt":"2017-09-10T17:39:21","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/"},"modified":"2017-09-10T19:39:21","modified_gmt":"2017-09-10T17:39:21","slug":"12c-access-control-lists","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/","title":{"rendered":"12c Access Control Lists"},"content":{"rendered":"<h2>By Franck Pachot<\/h2>\n<p>.<br \/>\nThere is already enough information about the new simplified 12c way to define Access Control Lists, such as in <a href=\"https:\/\/oracle-base.com\/articles\/12c\/fine-grained-access-to-network-services-enhancements-12cr1\" target=\"_blank\" rel=\"noopener noreferrer\">oracle-base<\/a>.<br \/>\nI&#8217;m just posting my example here to show how it is easy.<\/p>\n<p>If, as a non-SYS user you want to connect to a host with TCP, you get an error:<\/p>\n<pre><code>\nSQL&gt; connect DEMO1\/demo@\/\/localhost\/PDB1\nConnected.\nSQL&gt;\nSQL&gt;\nSQL&gt; declare\n  2   c utl_tcp.connection;\n  3   n number:=0;\n  4  begin\n  5   c:=utl_tcp.open_connection(remote_host=&gt;'towel.blinkenlights.nl',remote_port=&gt;23);\n  6  end;\n  7  \/\n&nbsp;\nError starting at line : 27 File @ \/media\/sf_share\/122\/blogs\/12cacl.sql\nIn command -\ndeclare\n c utl_tcp.connection;\n n number:=0;\nbegin\n c:=utl_tcp.open_connection(remote_host=&gt;'towel.blinkenlights.nl',remote_port=&gt;23);\nend;\nError report -\nORA-24247: network access denied by access control list (ACL)\nORA-06512: at \"SYS.UTL_TCP\", line 19\nORA-06512: at \"SYS.UTL_TCP\", line 284\nORA-06512: at line 5\n24247. 00000 -  \"network access denied by access control list (ACL)\"\n*Cause:    No access control list (ACL) has been assigned to the target\n           host or the privilege necessary to access the target host has not\n           been granted to the user in the access control list.\n*Action:   Ensure that an access control list (ACL) has been assigned to\n           the target host and the privilege necessary to access the target\n           host has been granted to the user.\nSQL&gt;\n<\/code><\/pre>\n<p>Here are the ACLs defined by default:<\/p>\n<pre><code>\nSQL&gt; connect sys\/oracle@\/\/localhost\/PDB1 as sysdba\nConnected.\n&nbsp;\nSQL&gt; select * from dba_host_acls;\n&nbsp;\nHOST  LOWER_PORT  UPPER_PORT  ACL                                           ACLID             ACL_OWNER\n----  ----------  ----------  ---                                           -----             ---------\n*                             NETWORK_ACL_4700D2108291557EE05387E5E50A8899  0000000080002724  SYS\n&nbsp;\nSQL&gt; select * from dba_host_aces;\n&nbsp;\nHOST  LOWER_PORT  UPPER_PORT  ACE_ORDER  START_DATE  END_DATE  GRANT_TYPE  INVERTED_PRINCIPAL  PRINCIPAL          PRINCIPAL_TYPE  PRIVILEGE\n----  ----------  ----------  ---------  ----------  --------  ----------  ------------------  ---------          --------------  ---------\n*                             1                                GRANT       NO                  GSMADMIN_INTERNAL  DATABASE        RESOLVE\n*                             2                                GRANT       NO                  GGSYS              DATABASE        RESOLVE\n<\/code><\/pre>\n<p>So, I add an ACL to access to towel.blinkenlights.nl on telnet port (23) for my user DEMO1:<\/p>\n<pre><code>\nSQL&gt; exec dbms_network_acl_admin.append_host_ace(host=&gt;'towel.blinkenlights.nl',lower_port=&gt;23,upper_port=&gt;23,ace=&gt;xs$ace_type(privilege_list =&gt;xs$name_list('connect'),principal_name=&gt;'DEMO1',principal_type =&gt;xs_acl.ptype_db));\n&nbsp;\nPL\/SQL procedure successfully completed.\n&nbsp;\nSQL&gt; select * from dba_host_acls;\n&nbsp;\nHOST                    LOWER_PORT  UPPER_PORT  ACL                                           ACLID             ACL_OWNER\n----                    ----------  ----------  ---                                           -----             ---------\ntowel.blinkenlights.nl  23          23          NETWORK_ACL_5876ADC67B6635CEE053684EA8C0F378  000000008000281F  SYS\n*                                               NETWORK_ACL_4700D2108291557EE05387E5E50A8899  0000000080002724  SYS\n&nbsp;\nSQL&gt; select * from dba_host_aces;\n&nbsp;\nHOST                    LOWER_PORT  UPPER_PORT  ACE_ORDER  START_DATE  END_DATE  GRANT_TYPE  INVERTED_PRINCIPAL  PRINCIPAL          PRINCIPAL_TYPE  PRIVILEGE\n----                    ----------  ----------  ---------  ----------  --------  ----------  ------------------  ---------          --------------  ---------\n*                                               1                                GRANT       NO                  GSMADMIN_INTERNAL  DATABASE        RESOLVE\n*                                               2                                GRANT       NO                  GGSYS              DATABASE        RESOLVE\ntowel.blinkenlights.nl  23          23          1                                GRANT       NO                  DEMO1              DATABASE        CONNECT\n<\/code><\/pre>\n<p>Now I can connect from my user:<\/p>\n<pre><code>\nSQL&gt; connect DEMO1\/demo@\/\/localhost\/PDB1\nConnected.\n&nbsp;\nSQL&gt; declare\n  2   c utl_tcp.connection;\n  3   n number:=0;\n  4  begin\n  5   c:=utl_tcp.open_connection(remote_host=&gt;'towel.blinkenlights.nl',remote_port=&gt;23);\n  6  end;\n  7  \/\n&nbsp;\nPL\/SQL procedure successfully completed.\n<\/code><\/pre>\n<p>If you don&#8217;t know why I used towel.blinkenlights.nl, then just try to telnet to it and have fun&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By Franck Pachot . There is already enough information about the new simplified 12c way to define Access Control Lists, such as in oracle-base. I&#8217;m just posting my example here to show how it is easy. If, as a non-SYS user you want to connect to a host with TCP, you get an error: SQL&gt;&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[59],"tags":[22,209],"class_list":["post-10455","post","type-post","status-publish","format-standard","category-oracle","tag-acl","tag-oracle-12c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>12c Access Control Lists - dbi services 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\/12c-access-control-lists\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"12c Access Control Lists\" \/>\n<meta property=\"og:description\" content=\"By Franck Pachot . There is already enough information about the new simplified 12c way to define Access Control Lists, such as in oracle-base. I&#8217;m just posting my example here to show how it is easy. If, as a non-SYS user you want to connect to a host with TCP, you get an error: SQL&gt;&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-10T17:39:21+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\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=\"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\\\/12c-access-control-lists\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"12c Access Control Lists\",\"datePublished\":\"2017-09-10T17:39:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/\"},\"wordCount\":111,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"ACL\",\"Oracle 12c\"],\"articleSection\":[\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/\",\"name\":\"12c Access Control Lists - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2017-09-10T17:39:21+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/12c-access-control-lists\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"12c Access Control Lists\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"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\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"12c Access Control Lists - dbi services 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\/12c-access-control-lists\/","og_locale":"en_US","og_type":"article","og_title":"12c Access Control Lists","og_description":"By Franck Pachot . There is already enough information about the new simplified 12c way to define Access Control Lists, such as in oracle-base. I&#8217;m just posting my example here to show how it is easy. If, as a non-SYS user you want to connect to a host with TCP, you get an error: SQL&gt;&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2017-09-10T17:39:21+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"12c Access Control Lists","datePublished":"2017-09-10T17:39:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/"},"wordCount":111,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["ACL","Oracle 12c"],"articleSection":["Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/","url":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/","name":"12c Access Control Lists - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2017-09-10T17:39:21+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/12c-access-control-lists\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"12c Access Control Lists"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"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":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10455","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=10455"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/10455\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=10455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=10455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=10455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}