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 8405357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:50:02+00:00 2026-06-09T22:50:02+00:00

When I try to run a stored procedure using EXECUTE, the proc runs fine.

  • 0

When I try to run a stored procedure using EXECUTE, the proc runs fine. When I use CALL, I get "ORA-06576: not a valid function or procedure name". I am connecting directly via toad. Why can’t I use call?

I have tried both of these Calls:

CALL(BPMS_OWNER.DAILY_PARTITION_NOROTATE('MIP_TEST',5,5,'MIP_TEST_',5,FALSE,TRUE));
CALL BPMS_OWNER.DAILY_PARTITION_NOROTATE('MIP_TEST',5,5,'MIP_TEST_',5,FALSE,TRUE);

The reason I need to use CALL is that our platform parses SQL before we send it to Oracle, which for whatever reason does not support EXECUTE.

  • 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-09T22:50:04+00:00Added an answer on June 9, 2026 at 10:50 pm

    Simply because call requires that you add parenthesis, for instance, call my_proc()

    If I set up a little test:

    SQL>
    SQL> create or replace procedure test is
      2  begin
      3     dbms_output.put_line('hi');
      4  end;
      5  /
    
    Procedure created.
    

    And run this several different ways you’ll see

    SQL> exec test
    hi
    
    PL/SQL procedure successfully completed.
    
    SQL> call test;
    call test
         *
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    
    
    SQL> call test();
    hi
    
    Call completed.
    

    Why do you need to use call? Isn’t exec, execute and begin ... end enough?


    Based on your update the problem is the booleans, which call doesn’t seem to support. Creating yet another small procedure

    SQL> create or replace procedure test (Pbool boolean ) is
      2  begin
      3     if Pbool then
      4        dbms_output.put_line('true');
      5     else
      6        dbms_output.put_line('false');
      7     end if;
      8  end;
      9  /
    
    Procedure created.
    
    SQL> show error
    No errors.
    

    and running it proves this

    SQL> call test(true);
    call test(true)
              *
    ERROR at line 1:
    ORA-06576: not a valid function or procedure name
    

    I don’t quite understand your reasoning behind why you can’t use exec or execute but assuming these are both off limits why not just use a traditional, anonymous PL/SQL block?

    SQL> begin
      2     test(true);
      3  end;
      4  /
    true
    
    PL/SQL procedure successfully completed.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I run the stored procedure manually, it works fine. However, whenever I try
i am using a stored procedure to run some queries in my database. The
What is the best way to make a call to a stored procedure using
I try to run the following raw query in android, it seems not work
I try to run jsf application in myeclipse using jboss web server and following
I try to run my project in windows. Project use android ndk. I install
I want to be able to get some output from mysql stored procedure within
I am joining against a view, in a stored procedure to try and return
I am using the following code to consume a CUBRID database java stored procedure.
When using a Stored procedure on SQL 2008 and C# 4.0, I am unable

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.