: ORA-01008: not all variables bound

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vcannadevula
Charter Member
Charter Member
Posts: 143
Joined: Thu Nov 04, 2004 6:53 am

: ORA-01008: not all variables bound

Post by vcannadevula »

We recently upgraded the 6.0.1 jobs to 7.5.1. After the upgradation we are testing the jobs. In the process we are getting this error
"ORA-01008: not all variables bound" .

The design of the jobs is simple, with a source a oracle 9i lookup, loading to a target hash file.

The error is basically occuring at the lookup while executing the SQL
"SELECT * FROM PGM WHERE PGM.PGM_S_ID=:1 "

PGM_S_ID is the primary key in this table and so the PGM.PGM_S_ID=:1 is generated by datastage.

Now , if i remove this "PGM.PGM_S_ID=:1" it works fine. If i keep it and run the job iam getting the ": ORA-01008: not all variables bound"

any one has any idea how to resolve this?????what is causing this error??
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Usually I'd asume the table definition doesn't have the PK checked for any column in your case; is it?
Or perhaps a change in scheme ?
Performing a "select * ... " is a perfect way to have jobs fail along time due to scheme changes.

It might also have something to do with the fact that 7.5.1 has an ORAOCI stage and 6 version had ORAOCI9 stage, so you might want to check it as well.

If none of the above was the issue simply try rebuilding this stage/link

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
vcannadevula
Charter Member
Charter Member
Posts: 143
Joined: Thu Nov 04, 2004 6:53 am

Re: : ORA-01008: not all variables bound

Post by vcannadevula »

vcannadevula wrote:We recently upgraded the 6.0.1 jobs to 7.5.1. After the upgradation we are testing the jobs. In the process we are getting this error
"ORA-01008: not all variables bound" .

The design of the jobs is simple, with a source a oracle 9i lookup, loading to a target hash file.

The error is basically occuring at the lookup while executing the SQL
"SELECT * FROM PGM WHERE PGM.PGM_S_ID=:1 "

PGM_S_ID is the primary key in this table and so the PGM.PGM_S_ID=:1 is generated by datastage.

Now , if i remove this "PGM.PGM_S_ID=:1" it works fine. If i keep it and run the job iam getting the ": ORA-01008: not all variables bound"

any one has any idea how to resolve this?????what is causing this error??


Well, I could resolve the issue.........But can any one explain the concpet behind the ":1"??????? what datastage internally does...
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

That represents the (one) key value supplied for the reference link.
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

HI

You can keep the sql as it is "SELECT * FROM PGM WHERE PGM.PGM_S_ID=:1 " but uncheck the checkbox for "Pre 4.2 user-defined sql". Then compile. By default this checkbox gets checked.

I tried this way once.

Regards
Sreenivasulu
aqtl
Participant
Posts: 3
Joined: Mon Feb 09, 2004 2:34 pm

Post by aqtl »

This is a bug of OCI Stage in DS 7.5.1. Here is the link for the information :

http://www.ascentialsoftware.com/eservi ... tches.html

Gook luck ...
Post Reply