<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Setting up Network ACLs in Oracle 11g&#8230; For Dummies</title>
	<atom:link href="http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/</link>
	<description>News and views from Pythian DBAs</description>
	<lastBuildDate>Fri, 10 Feb 2012 13:01:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Don Seiler</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-606365</link>
		<dc:creator>Don Seiler</dc:creator>
		<pubDate>Mon, 03 Oct 2011 15:46:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-606365</guid>
		<description>@Mohammad, interesting, I&#039;ll see if the COMMIT is necessary.

@John, did you use a / at the end of the begin/end block to execute the PL/SQL? Either way, use the DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE procedure to verify:

http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_networkacl_adm.htm#CHDFJHHJ</description>
		<content:encoded><![CDATA[<p>@Mohammad, interesting, I&#8217;ll see if the COMMIT is necessary.</p>
<p>@John, did you use a / at the end of the begin/end block to execute the PL/SQL? Either way, use the DBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE procedure to verify:</p>
<p><a href="http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_networkacl_adm.htm#CHDFJHHJ" rel="nofollow">http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_networkacl_adm.htm#CHDFJHHJ</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-606171</link>
		<dc:creator>Mohammad</dc:creator>
		<pubDate>Mon, 03 Oct 2011 05:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-606171</guid>
		<description>Thanks man, you are a life saver.

I&#039;ve been wondering for a while to resolve the PDF printing issue in Apex. After executing your script it worked fine.
 
I just want to add a note that it is better to add commit statement at the end.</description>
		<content:encoded><![CDATA[<p>Thanks man, you are a life saver.</p>
<p>I&#8217;ve been wondering for a while to resolve the PDF printing issue in Apex. After executing your script it worked fine.</p>
<p>I just want to add a note that it is better to add commit statement at the end.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Heinrich</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-501357</link>
		<dc:creator>John Heinrich</dc:creator>
		<pubDate>Wed, 26 Jan 2011 09:13:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-501357</guid>
		<description>What i&#039;m i doing wrong??
DB version is 11.2.0.1.0
Creation code (as dba-user):
begin

  -- Create the new ACL, naming it &quot;netacl.xml&quot;, with a description.
  -- Also, provide one starter privilege, granting user ACLTEST
  -- the privilege to connect.
  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(&#039;netacl.xml&#039;,
      &#039;Allow usage to the UTL network packages&#039;, &#039;ACLTEST&#039;, TRUE, &#039;connect&#039;);

  -- Now grant privilege to resolve DNS names for ACLTEST,
  DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(&#039;netacl.xml&#039; ,&#039;ACLTEST&#039;, TRUE, &#039;resolve&#039;);

  -- Specify which hosts this ACL applies to,
  -- for simplicity, we&#039;re saying all (*)
  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(&#039;netacl.xml&#039;,&#039;*&#039;);
  commit;

end;

Excecution code (as acltest):
declare
    l_conn  UTL_TCP.connection;
    v_file ftp.TStringTable;
    l_list     ftp.t_string_table;

begin
     l_conn := ftp.Logind(&#039;DOMAIN&#039;, 21, &#039;USERNAME&#039;, &#039;PASSWORD&#039;);
     FTP.LIST(l_conn,&#039;\&#039;,l_list);
     ftp.logout(l_conn);
end;

Error stack
ORA-24247: network access denied by access control list (ACL)
ORA-06512: at &quot;SYS.UTL_TCP&quot;, line 17
ORA-06512: at &quot;SYS.UTL_TCP&quot;, line 246
ORA-06512: at &quot;COMMON.FTP&quot;, line 784
ORA-06512: at line 7</description>
		<content:encoded><![CDATA[<p>What i&#8217;m i doing wrong??<br />
DB version is 11.2.0.1.0<br />
Creation code (as dba-user):<br />
begin</p>
<p>  &#8212; Create the new ACL, naming it &#8220;netacl.xml&#8221;, with a description.<br />
  &#8212; Also, provide one starter privilege, granting user ACLTEST<br />
  &#8212; the privilege to connect.<br />
  DBMS_NETWORK_ACL_ADMIN.CREATE_ACL(&#8216;netacl.xml&#8217;,<br />
      &#8216;Allow usage to the UTL network packages&#8217;, &#8216;ACLTEST&#8217;, TRUE, &#8216;connect&#8217;);</p>
<p>  &#8212; Now grant privilege to resolve DNS names for ACLTEST,<br />
  DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(&#8216;netacl.xml&#8217; ,&#8217;ACLTEST&#8217;, TRUE, &#8216;resolve&#8217;);</p>
<p>  &#8212; Specify which hosts this ACL applies to,<br />
  &#8212; for simplicity, we&#8217;re saying all (*)<br />
  DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL(&#8216;netacl.xml&#8217;,'*&#8217;);<br />
  commit;</p>
<p>end;</p>
<p>Excecution code (as acltest):<br />
declare<br />
    l_conn  UTL_TCP.connection;<br />
    v_file <a href="http://ftp.TStringTable" rel="nofollow">http://ftp.TStringTable</a>;<br />
    l_list     <a href="http://ftp.t_string_table" rel="nofollow">http://ftp.t_string_table</a>;</p>
<p>begin<br />
     l_conn := <a href="http://ftp.Logind" rel="nofollow">http://ftp.Logind</a>(&#8216;DOMAIN&#8217;, 21, &#8216;USERNAME&#8217;, &#8216;PASSWORD&#8217;);<br />
     <a href="http://FTP.LIST" rel="nofollow">http://FTP.LIST</a>(l_conn,&#8217;\',l_list);<br />
     <a href="http://ftp.logout" rel="nofollow">http://ftp.logout</a>(l_conn);<br />
end;</p>
<p>Error stack<br />
ORA-24247: network access denied by access control list (ACL)<br />
ORA-06512: at &#8220;SYS.UTL_TCP&#8221;, line 17<br />
ORA-06512: at &#8220;SYS.UTL_TCP&#8221;, line 246<br />
ORA-06512: at &#8220;COMMON.FTP&#8221;, line 784<br />
ORA-06512: at line 7</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-454267</link>
		<dc:creator>Christoph</dc:creator>
		<pubDate>Fri, 20 Aug 2010 16:36:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-454267</guid>
		<description>Thanks! That&#039;s just what I needed. Simple and straight forward. Not too much brain power expended.
:)</description>
		<content:encoded><![CDATA[<p>Thanks! That&#8217;s just what I needed. Simple and straight forward. Not too much brain power expended.<br />
:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Setting up Network ACLs in Oracle 11g… For Dummies &#171; die Seilerwerks</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-370553</link>
		<dc:creator>Setting up Network ACLs in Oracle 11g… For Dummies &#171; die Seilerwerks</dc:creator>
		<pubDate>Wed, 19 Aug 2009 18:38:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-370553</guid>
		<description>[...] leave a comment &#187;  Originally posted on The Pythian Group blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] leave a comment &raquo;  Originally posted on The Pythian Group blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 24/07/2009 – 31/07/2009 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://www.pythian.com/news/3434/setting-up-network-acls-in-oracle-11g-for-dummies/#comment-368308</link>
		<dc:creator>Blogroll Report 24/07/2009 – 31/07/2009 &#171; Coskan&#8217;s Approach to Oracle</dc:creator>
		<pubDate>Sat, 01 Aug 2009 01:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pythian.com/news/?p=3434#comment-368308</guid>
		<description>[...] Seiler &#8211; Setting up Network ACLs in Oracle 11g… For Dummies    Leave a [...]</description>
		<content:encoded><![CDATA[<p>[...] Seiler &#8211; Setting up Network ACLs in Oracle 11g… For Dummies    Leave a [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

