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

  • Home
  • SEARCH
  • 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 3303266
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:56:21+00:00 2026-05-17T20:56:21+00:00

I am trying to run a stored procedure that has multiple in and out

  • 0

I am trying to run a stored procedure that has multiple in and out parameters. The procedure can only be viewed in my Connections panel by navigating

Other Users | <user> | Packages | <package> | <procedure>

If I right click , the menu items are "Order Members By…" and "Create Unit Test" (greyed out). The ability to "Run" the procedure does not seem possible when it’s accessed by user.

I have been trying to find an example of how to create an anonymous block so that I can run the procedure as a SQL file, but haven’t found anything that works.

Does anyone know how I can execute this procedure from SQL Developer? I am using Version 2.1.1.64.

EDIT 1:

The procedure I want to call has this signature:

user.package.procedure(
   p_1 IN  NUMBER,
   p_2 IN  NUMBER,
   p_3 OUT VARCHAR2,
   p_4 OUT VARCHAR2,
   p_5 OUT VARCHAR2,
   p_6 OUT NUMBER)

If I write my anonymous block like this:

DECLARE
   out1 VARCHAR2(100);
   out2 VARCHAR2(100);
   out3 VARCHAR2(100);
   out4 NUMBER(100);
BEGIN
   EXECUTE user.package.procedure (33,89, :out1, :out2, :out3, :out4);
END;

I get the error:

Bind Varialbe "out1" is NOT DECLCARED
anonymous block completed

I’ve tried initializing the out* variables:

   out1 VARCHAR2(100) := '';

but get the same error:

EDIT 2:

Based on Alex’s answer, I tried removing the colons from in front of the params and get this:

Error starting at line 1 in command:
DECLARE
   out1 VARCHAR2(100);
   out2 VARCHAR2(100);
   out3 VARCHAR2(100);
   out4 NUMBER(100);
BEGIN
   EXECUTE user.package.procedure (33,89, out1, out2, out3, out4);
END;
Error report:
ORA-06550: line 13, column 17:
PLS-00103: Encountered the symbol "USER" when expecting one of the following:

   := . ( @ % ; immediate
The symbol ":=" was substituted for "USER" to continue.
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:
  • 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-05-17T20:56:21+00:00Added an answer on May 17, 2026 at 8:56 pm

    With simple parameter types (i.e. not refcursors etc.) you can do something like this:

    SET serveroutput on;
    DECLARE
        InParam1 number;
        InParam2 number;
        OutParam1 varchar2(100);
        OutParam2 varchar2(100);
        OutParam3 varchar2(100);
        OutParam4 number;
    BEGIN
        /* Assign values to IN parameters */
        InParam1 := 33;
        InParam2 := 89;
    
        /* Call procedure within package, identifying schema if necessary */
        schema.package.procedure(InParam1, InParam2,
            OutParam1, OutParam2, OutParam3, OutParam4);
    
        /* Display OUT parameters */
        dbms_output.put_line('OutParam1: ' || OutParam1);
        dbms_output.put_line('OutParam2: ' || OutParam2);
        dbms_output.put_line('OutParam3: ' || OutParam3);
        dbms_output.put_line('OutParam4: ' || OutParam4);
    END;
    /
    

    Edited to use the OP’s spec, and with an alternative approach to utilise :var bind variables:

    var InParam1 number;
    var InParam2 number;
    var OutParam1 varchar2(100);
    var OutParam2 varchar2(100);
    var OutParam3 varchar2(100);
    var OutParam4 number;
    
    BEGIN
        /* Assign values to IN parameters */
        :InParam1 := 33;
        :InParam2 := 89;
    
        /* Call procedure within package, identifying schema if necessary */
        schema.package.procedure(:InParam1, :InParam2,
            :OutParam1, :OutParam2, :OutParam3, :OutParam4);
    END;
    /
    
    -- Display OUT parameters
    print :OutParam1;
    print :OutParam2;
    print :OutParam3;
    print :OutParam4;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to run a stored procedure from Excel. I know how to
So I'm trying to call an Oracle stored procedure from my C# .NET application.
Referring to How to execute an Oracle stored procedure via a database link ,
I'm trying to write a query that reports the current database activity. The query
I'm trying to store in a database some GPS data that I get from
I have created a complex sql server 2008/coldfusion search page, that searches thru a
I've been trying to avoid using a cursor in this particular case just because
Been trying for over two weeks to backup / copy a database and script
I have taken over a departing programmer's Classic ASP object, and I'm trying to
I have an SQLite database within my Android application, which stores dates as integers.

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.