Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Oracle Error 1008

Posted on 1998-07-01
1
Medium Priority
?
2,035 Views
Last Modified: 2008-02-01
When I run a PL/SQL script I get
ORA-01008 not all variables bound.
When I check all host variables using Print they have values.
What is causing the error.
Digital UNIX 4.0D
Oracle 7.3.4
Pl/SQL 2.3.4
SQL*Plus 3.3.4
0
Comment
Question by:rdoggart
[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 3

Accepted Solution

by:
poncejua earned 200 total points
ID: 1083232
This error usually occurs when you reference a bind variable in other than a PL/SQL statement, such as a SQL statement, containing substitution variables that was executed without all variables bound.  All substitution variables must have a substituted value before the SQL statement is executed.  In OCI, use an OBIND or OBINDN call to substitute the required values.

Bind variable can only be referenced in PL/SQL. You cannot use it in SQL*Plus commands. Note that bind variable can be used in EXECUTE command which runs one PL/SQL
statement.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

670 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