?
Solved

ORA-01008: not all variables bound

Posted on 2009-04-15
1
Medium Priority
?
1,422 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
[X]
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
1 Comment
 
LVL 74

Accepted Solution

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


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

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

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…
Read about achieving the basic levels of HRIS security in the workplace.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

770 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