Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8530045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:10:05+00:00 2026-06-11T09:10:05+00:00

I have a wrapper procedure(proc_main) that calls some procedures within. create or replace Procedure

  • 0

I have a wrapper procedure(proc_main) that calls some procedures within.

create or replace Procedure proc_main
as
begin

proc_child1;

proc_child2;

proc_child3;

proc_compile_invalids; -- This invokes "alter procedure <procedure_name> compile" statement for all the invalids.

end;
/

proc_child procedures apply some processing logic that involves some steps to rename the tables within.

This invalidates the procedures which is the reason why I have the proc_compile_invalids procedure to set them to a valid state again.

My problem is: when I execute the proc_main procedure, it invalidates the main procedure along with the inner child ones.
Hence, When the proc_compile_invalids is called as a last step, it hangs as it is trying to recompile the main calling procedure.

Obviously, it is not an issue if i remove the last step and execute it separately.

I know I could separate them out as 2 different calls by commenting the compile proc and executing it as a stand alone.
And i also am aware it is a cosmetic step as oracle would try to compile a procedure before executing the next time. So, the invalids become valid anyway.
But, at the end of the execution for that day, they all are in an invalid state and I get questioned by the powers be if it can be avoided !

So, just wanted to know if I can avoid separating the calls and still retain it as a last step in the main procedure.

Any thoughts/pointers much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:10:07+00:00Added an answer on June 11, 2026 at 9:10 am

    You can use dynamic SQL to break the dependency:

    CREATE OR REPLACE PROCEDURE proc_main AS
    BEGIN
    
       EXECUTE IMMEDIATE 'BEGIN proc_child1; END;';
    
       EXECUTE IMMEDIATE 'BEGIN proc_child2; END;';
    
       EXECUTE IMMEDIATE 'BEGIN proc_child3; END;';
    
       proc_compile_invalids;  -- This invokes 
                               -- "alter procedure <procedure_name> compile" 
                               -- statement for all the invalids.
    
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wrapper class around some objects that I want to use as
I have some wrapper code that runs a set of NUnit tests that scan
I have a wrapper div that contains arbitrary content (I don't know its length).
I have a main wrapper div that is set 100% width. Inside that i
Background - I have a client that has an Oracle database with many procedures
I'm looking to write a C# SQL Server wrapper to call some stored procedures.
I have this wrapper to load a symfony project from within Joomla class NZGBCComponentHelper
Does PHP have a wrapper for UNIX tempfile? Or is it just tmpnam() that
I have two stored procedures that I want execute wrapped in a transaction. For
I want to make some re-useable, somewhat-dynamic TSQL code that can be called within

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.