<?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: Recompiling invalid objects</title>
	<atom:link href="http://technology.amis.nl/2005/04/11/recompiling-invalid-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://technology.amis.nl/2005/04/11/recompiling-invalid-objects/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=recompiling-invalid-objects</link>
	<description></description>
	<lastBuildDate>Fri, 12 Apr 2013 10:04:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Matthias Nordwig</title>
		<link>http://technology.amis.nl/2005/04/11/recompiling-invalid-objects/#comment-2031</link>
		<dc:creator>Matthias Nordwig</dc:creator>
		<pubDate>Thu, 24 Aug 2006 16:22:29 +0000</pubDate>
		<guid isPermaLink="false">/?p=503#comment-2031</guid>
		<description><![CDATA[DBMS_DDL.ALTER_COMPILE won&#039;t work with views!
 Check out this:

http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10802/d_ddl.htm#996814]]></description>
		<content:encoded><![CDATA[<p>DBMS_DDL.ALTER_COMPILE won&#8217;t work with views!<br />
 Check out this:</p>
<p><a href="http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10802/d_ddl.htm#996814" rel="nofollow">http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10802/d_ddl.htm#996814</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marco Gralike</title>
		<link>http://technology.amis.nl/2005/04/11/recompiling-invalid-objects/#comment-2030</link>
		<dc:creator>Marco Gralike</dc:creator>
		<pubDate>Thu, 14 Apr 2005 12:41:06 +0000</pubDate>
		<guid isPermaLink="false">/?p=503#comment-2030</guid>
		<description><![CDATA[Regarding your first remark about $ORACLE_HOME\rdbms\admin\utlrp.sql. It&#039;s more handy than you think. Nowadays utlrp.sql calls script utlrcmp.sql . It states in the heading:

NAME
utlrcmp.sql - Utility package for dependency-based recompilation of invalid objects sequentially or in parallel.

DESCRIPTION
This script provides a packaged interface to recompile invalid PL/SQL modules, Java classes, indextypes and operators in a database sequentially or in parallel.

This script is particularly useful after a major-version upgrade. A major-version upgrade typically invalidates all PL/SQL and Java objects. Although invalid objects are recompiled automatically on use, it is useful to run this script ahead of time (e.g. as one of the last steps in your migration), since this will either eliminate or minimize subsequent latencies caused due to on-demand automatic recompilation at runtime.

PARALLELISM AND PERFORMANCE
Parallel recompilation can exploit multiple CPUs to reduce the time taken to recompile invalid objects. The degree of parallelism is specified by the first argument to utl_recomp.recomp_parallel().  In general, a parallelism setting of one thread per available CPU provides a good initial setting.

EXAMPLES
1. Recompile all objects sequentially:

   execute utl_recomp.recomp_serial();

2. Recompile objects in schema SCOTT sequentially:

   execute utl_recomp.recomp_serial(&#039;SCOTT&#039;);

3. Recompile all objects using 4 parallel threads:

   execute utl_recomp.recomp_parallel(4);

4. Recompile objects in schema JOE using the number of threads
   specified in the paramter JOB_QUEUE_PROCESSES:

   execute utl_recomp.recomp_parallel(NULL, &#039;JOE&#039;);

5. Recompile all objects using 2 parallel threads, but allow
   other applications to use the job queue concurrently:

   execute utl_recomp.recomp_parallel(2, NULL,utl_recomp.share_job_queue);

6. Restore the job queue after a failure in recomp_parallel:

   execute utl_recomp.restore_job_queue();

In other words - after it is installed you can use it to recompile your objects. You need privileges from the SYS environment on the utl_recomp package to use it. An advantage right now is that the source is not WRAPPED, disadvantage - you need the dba to install it. Nethertheless my &quot;buikgevoel&quot;says that it will be production worthy soon. As usual the moment has a &quot;production&quot; marker, the source will be WRAPPED by Oracle...]]></description>
		<content:encoded><![CDATA[<p>Regarding your first remark about $ORACLE_HOME\rdbms\admin\utlrp.sql. It&#8217;s more handy than you think. Nowadays utlrp.sql calls script utlrcmp.sql . It states in the heading:</p>
<p>NAME<br />
utlrcmp.sql &#8211; Utility package for dependency-based recompilation of invalid objects sequentially or in parallel.</p>
<p>DESCRIPTION<br />
This script provides a packaged interface to recompile invalid PL/SQL modules, Java classes, indextypes and operators in a database sequentially or in parallel.</p>
<p>This script is particularly useful after a major-version upgrade. A major-version upgrade typically invalidates all PL/SQL and Java objects. Although invalid objects are recompiled automatically on use, it is useful to run this script ahead of time (e.g. as one of the last steps in your migration), since this will either eliminate or minimize subsequent latencies caused due to on-demand automatic recompilation at runtime.</p>
<p>PARALLELISM AND PERFORMANCE<br />
Parallel recompilation can exploit multiple CPUs to reduce the time taken to recompile invalid objects. The degree of parallelism is specified by the first argument to utl_recomp.recomp_parallel().  In general, a parallelism setting of one thread per available CPU provides a good initial setting.</p>
<p>EXAMPLES<br />
1. Recompile all objects sequentially:</p>
<p>   execute utl_recomp.recomp_serial();</p>
<p>2. Recompile objects in schema SCOTT sequentially:</p>
<p>   execute utl_recomp.recomp_serial(&#8216;SCOTT&#8217;);</p>
<p>3. Recompile all objects using 4 parallel threads:</p>
<p>   execute utl_recomp.recomp_parallel(4);</p>
<p>4. Recompile objects in schema JOE using the number of threads<br />
   specified in the paramter JOB_QUEUE_PROCESSES:</p>
<p>   execute utl_recomp.recomp_parallel(NULL, &#8216;JOE&#8217;);</p>
<p>5. Recompile all objects using 2 parallel threads, but allow<br />
   other applications to use the job queue concurrently:</p>
<p>   execute utl_recomp.recomp_parallel(2, NULL,utl_recomp.share_job_queue);</p>
<p>6. Restore the job queue after a failure in recomp_parallel:</p>
<p>   execute utl_recomp.restore_job_queue();</p>
<p>In other words &#8211; after it is installed you can use it to recompile your objects. You need privileges from the SYS environment on the utl_recomp package to use it. An advantage right now is that the source is not WRAPPED, disadvantage &#8211; you need the dba to install it. Nethertheless my &#8220;buikgevoel&#8221;says that it will be production worthy soon. As usual the moment has a &#8220;production&#8221; marker, the source will be WRAPPED by Oracle&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anton Scheffer</title>
		<link>http://technology.amis.nl/2005/04/11/recompiling-invalid-objects/#comment-2029</link>
		<dc:creator>Anton Scheffer</dc:creator>
		<pubDate>Mon, 11 Apr 2005 15:42:26 +0000</pubDate>
		<guid isPermaLink="false">/?p=503#comment-2029</guid>
		<description><![CDATA[The Oracle &lt;a href=&quot;http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_ddl.htm#996814&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;Documentation &lt;/a&gt;states that the only types allowed for dbms_ddl.alter_compile are: PACKAGE, PACKAGE BODY, PROCEDURE, FUNCTION, or TRIGGER. So it is not possible to compile invalid views with this procedure.]]></description>
		<content:encoded><![CDATA[<p>The Oracle <a href="http://download-west.oracle.com/docs/cd/B14117_01/appdev.101/b10802/d_ddl.htm#996814" target="_blank" rel="nofollow">Documentation </a>states that the only types allowed for dbms_ddl.alter_compile are: PACKAGE, PACKAGE BODY, PROCEDURE, FUNCTION, or TRIGGER. So it is not possible to compile invalid views with this procedure.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
