Recompile Stored Procedures in Ora10g

Posted on 2005-03-02
Medium Priority
Last Modified: 2012-08-14
I was wondering if there's a way to recompile stored procedures in SQL*Plus for ora10g?

We are in the process of upgrading from oracle 7.34 to 10g and the old way in SQL*Plus was
EXEC DBMS_UTILITY.Compile_Schema('dbname');

This command no longer works in 10g and we have to go through the Enterprise Manager and compile one by one.

Thank you.
Question by:goldieretriever
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 25

Accepted Solution

jrb1 earned 500 total points
ID: 13445271
One method per oracle is:

1) invalidate all pl/sqls:


2) recompile all pl/sqls:


LVL 13

Expert Comment

ID: 13446169
utlrp.sql will be available in oracle home/rdbms/admin
executing it will recompile all the pl/sql programs
LVL 11

Expert Comment

ID: 13448344
DBMS_UTILITY should be there. Are you getting ?

ERROR at line 1:
ORA-20000: You have insufficient privileges for an object in this
ORA-06512: at "SYS.DBMS_UTILITY", line 422
ORA-06512: at line 1

Then check ur previledges.

Author Comment

ID: 13452050
Thanks for the quick responses.

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question