<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Running the UTLRP.SQL Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020521#M909183</link>
    <description>...i grabbed this from the utlrp.sql script itself, if you haven't already looked at it...&lt;BR /&gt;&lt;BR /&gt;Rem&lt;BR /&gt;Rem  Copyright (c) Oracle Corporation 1998, 1999. All Rights Reserved.&lt;BR /&gt;Rem&lt;BR /&gt;Rem    NAME&lt;BR /&gt;Rem      utlrp.sql - UTiLity script Recompile invalid Pl/sql modules&lt;BR /&gt;Rem&lt;BR /&gt;Rem    DESCRIPTION&lt;BR /&gt;Rem&lt;BR /&gt;Rem     This is a fairly general script that can be used at any time to&lt;BR /&gt;Rem     recompile all existing invalid PL/SQL modules in a database.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     If run as one of the last steps during migration/upgrade/downgrade&lt;BR /&gt;Rem     (see the README notes for your current release and the Oracle&lt;BR /&gt;Rem     Migration book), this script  will validate all PL/SQL modules&lt;BR /&gt;Rem     (procedures, functions, packages, triggers, types, views) during&lt;BR /&gt;Rem     the migration step itself.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     Although invalid PL/SQL modules get automatically recompiled on use,&lt;BR /&gt;Rem     it is useful to run this script ahead of time (e.g. as one of the last&lt;BR /&gt;Rem     steps in your migration), since this will either eliminate or&lt;BR /&gt;Rem     minimize subsequent latencies caused due to on-demand automatic&lt;BR /&gt;Rem     recompilation at runtime.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     Oracle highly recommends running this script towards the end of&lt;BR /&gt;Rem     of any migration/upgrade/downgrade.&lt;BR /&gt;Rem&lt;BR /&gt;Rem   NOTES&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * Must be connected as internal to run this.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * The scripts expects the following packages to have been created with&lt;BR /&gt;Rem       VALID status.&lt;BR /&gt;Rem         STANDARD      (standard.sql)&lt;BR /&gt;Rem         DBMS_STANDARD (dbmsstdx.sql)&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * There should be no other DDL on the database while running&lt;BR /&gt;Rem       the script. Not following this recommendation may lead to&lt;BR /&gt;Rem       deadlocks.</description>
    <pubDate>Thu, 10 Jul 2003 18:30:04 GMT</pubDate>
    <dc:creator>James A. Donovan</dc:creator>
    <dc:date>2003-07-10T18:30:04Z</dc:date>
    <item>
      <title>Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020517#M909179</link>
      <description>Quick question, is it OK to run this script while the database is up and running and users are accessing it?  This is an HP-UX 11.00 OS running an Oracle 8.1.7 database.</description>
      <pubDate>Thu, 10 Jul 2003 17:06:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020517#M909179</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2003-07-10T17:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020518#M909180</link>
      <description>I would say that 999 times out of 1000, it's OK to run the utlrp.sql script.  All it is doing is recompiling invalid objects.</description>
      <pubDate>Thu, 10 Jul 2003 18:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020518#M909180</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-07-10T18:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020519#M909181</link>
      <description>Sounds good to me!  It's a test instance anyway but I didn't want to create any unnecessary problems.&lt;BR /&gt;&lt;BR /&gt;Thanks for the quick response!</description>
      <pubDate>Thu, 10 Jul 2003 18:11:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020519#M909181</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2003-07-10T18:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020520#M909182</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;At high load, i won't do it!&lt;BR /&gt;&lt;BR /&gt;Anyway, all this script does is recompile all objects (invalid objects).&lt;BR /&gt;&lt;BR /&gt;You may choose not to do it as they will fix themselves as they are executed or accessed.  I never worry about some invalid objects -- you'll almost always have some somewhere.  &lt;BR /&gt;&lt;BR /&gt;If you really want to do it, here is a better way (in pseudo code):&lt;BR /&gt;&lt;BR /&gt;create table already_tried( object_type, object_name );&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;create function get_invalid_object return varchar2&lt;BR /&gt;as&lt;BR /&gt;begin&lt;BR /&gt;   select ... into ... from user_objects &lt;BR /&gt;    where not exists ( select null from already_tried a&lt;BR /&gt;                         where a.object_type = user_objects.object_type ...)&lt;BR /&gt;     and status  = 'INVALID'&lt;BR /&gt;     and rownum = 1;&lt;BR /&gt;&lt;BR /&gt;   return ...&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;begin&lt;BR /&gt;    delete from already_tried;&lt;BR /&gt;    loop&lt;BR /&gt;       compile the output of get_invalid_object;&lt;BR /&gt;       insert into already_tried;&lt;BR /&gt;    end loop;&lt;BR /&gt;exception&lt;BR /&gt;    when no_data_found then done&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;it works by getting AN invalid object that we haven't yet tried to compile.  It compiles it (which will recursively compile all needed objects -- the first invalid object may well fix ALL invalid objects).&lt;BR /&gt;&lt;BR /&gt;We remember we did that one&lt;BR /&gt;&lt;BR /&gt;Go onto the next.&lt;BR /&gt;&lt;BR /&gt;done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Thu, 10 Jul 2003 18:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020520#M909182</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2003-07-10T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020521#M909183</link>
      <description>...i grabbed this from the utlrp.sql script itself, if you haven't already looked at it...&lt;BR /&gt;&lt;BR /&gt;Rem&lt;BR /&gt;Rem  Copyright (c) Oracle Corporation 1998, 1999. All Rights Reserved.&lt;BR /&gt;Rem&lt;BR /&gt;Rem    NAME&lt;BR /&gt;Rem      utlrp.sql - UTiLity script Recompile invalid Pl/sql modules&lt;BR /&gt;Rem&lt;BR /&gt;Rem    DESCRIPTION&lt;BR /&gt;Rem&lt;BR /&gt;Rem     This is a fairly general script that can be used at any time to&lt;BR /&gt;Rem     recompile all existing invalid PL/SQL modules in a database.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     If run as one of the last steps during migration/upgrade/downgrade&lt;BR /&gt;Rem     (see the README notes for your current release and the Oracle&lt;BR /&gt;Rem     Migration book), this script  will validate all PL/SQL modules&lt;BR /&gt;Rem     (procedures, functions, packages, triggers, types, views) during&lt;BR /&gt;Rem     the migration step itself.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     Although invalid PL/SQL modules get automatically recompiled on use,&lt;BR /&gt;Rem     it is useful to run this script ahead of time (e.g. as one of the last&lt;BR /&gt;Rem     steps in your migration), since this will either eliminate or&lt;BR /&gt;Rem     minimize subsequent latencies caused due to on-demand automatic&lt;BR /&gt;Rem     recompilation at runtime.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     Oracle highly recommends running this script towards the end of&lt;BR /&gt;Rem     of any migration/upgrade/downgrade.&lt;BR /&gt;Rem&lt;BR /&gt;Rem   NOTES&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * Must be connected as internal to run this.&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * The scripts expects the following packages to have been created with&lt;BR /&gt;Rem       VALID status.&lt;BR /&gt;Rem         STANDARD      (standard.sql)&lt;BR /&gt;Rem         DBMS_STANDARD (dbmsstdx.sql)&lt;BR /&gt;Rem&lt;BR /&gt;Rem     * There should be no other DDL on the database while running&lt;BR /&gt;Rem       the script. Not following this recommendation may lead to&lt;BR /&gt;Rem       deadlocks.</description>
      <pubDate>Thu, 10 Jul 2003 18:30:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020521#M909183</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-07-10T18:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020522#M909184</link>
      <description>Yes, I did look at this and this is why I asked the question.  I wasn't sure what was meant when it said;&lt;BR /&gt;&lt;BR /&gt;There should be no other DDL on the database while running the script. Not following this recommendation may lead to deadlocks.</description>
      <pubDate>Thu, 10 Jul 2003 18:32:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020522#M909184</guid>
      <dc:creator>Scott Buckingham</dc:creator>
      <dc:date>2003-07-10T18:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Running the UTLRP.SQL Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020523#M909185</link>
      <description>DDL =&amp;gt; data definition language =&amp;gt; creation/manipulation of database objects; typically DBA level stuff&lt;BR /&gt;&lt;BR /&gt;DML =&amp;gt; data manipulation language =&amp;gt; select/update/delete/insert of data, typically user level stuff</description>
      <pubDate>Thu, 10 Jul 2003 18:54:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-the-utlrp-sql-script/m-p/3020523#M909185</guid>
      <dc:creator>James A. Donovan</dc:creator>
      <dc:date>2003-07-10T18:54:14Z</dc:date>
    </item>
  </channel>
</rss>

