Solved

ORA-01008: not all variables bound

Posted on 2009-04-15
1
1,413 Views
Last Modified: 2013-12-18
In Toad I am trying to execute an stored procedure which return an out variable O_RetMessage.
But when I try to execute the code I get error message as:
ORA-01008: not all variables bound
DECLARE  

    I_SerialNo NVARCHAR2;

    I_Status NUMBER;

    I_WONUMBER NVARCHAR2;

    I_EngineBuildProperty NUMBER;

    I_WorkStation NVARCHAR2;

    I_EmployeeNumber NVARCHAR2;

    O_RetMessage  NVARCHAR2;

    BEGIN 

    I_SerialNo :='1';

    I_Status  :='2';

    I_WONUMBER  :='3';

    I_EngineBuildProperty  :='4';

    I_WorkStation  :='5';

    I_EmployeeNumber  :='6';

    O_RetMessage :='7';

     --BEGIN

       execute immediate  MYSP(I_SerialNo,I_Status,I_WONUMBER,I_EngineBuildProperty,I_WorkStation,I_EmployeeNumber,O_RetMessage);

      --END;

      DBMS_OUTPUT.PUT_LINE('oRetMessage: ' || :O_RetMessage);
 

    END ;

Open in new window

0
Comment
Question by:thermalsun
1 Comment
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
ID: 24148271
remove the :  on :O_RetMessage


DBMS_OUTPUT.PUT_LINE('oRetMessage: ' || O_RetMessage);
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Oracle RAC 12c 8 60
ORA-12560: TNS:protocol adapter error 8 87
selective queries 7 22
Shredding xml into an oracle 11g Database 2 29
Note: You must have administrative privileges in order to configure lead or case queues. Salesforce.com (http://www.Salesforce.com) is a cloud-based customer relationship management (CRM) system. It is widely used around the world by sales and ma…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

895 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now