Page 1 of 1

Parameters in Stored Procedure Stage

Posted: Mon Feb 08, 2010 3:29 am
by kamalshil
Hi All,
I am trying to call 1 stored procedure from datastage job.
But if in any of feild for database,password,username or schemaname if i give job parameter.
i am getting fatal error.
TNS-ORA-Could not resolve.

And if i do hard coding it is working fine.

So how do i use job parameters in stored procedure stage?

Posted: Mon Feb 08, 2010 7:26 am
by bmarko22
If you have the parms in quotes take them out. Fixed it for us.

Posted: Mon Feb 08, 2010 7:31 am
by kamalshil
No they are not in quotes
they are like this

Code: Select all

#$username#

Posted: Mon Feb 08, 2010 8:20 am
by chulett
And you actually have a job parameter defined in the job named '$username' - all lower-case, just like that?

Posted: Mon Feb 08, 2010 3:29 pm
by ray.wurlod
The "$" character will cause DataStage to seek out an environment variable in the project. Is that how your project is set up?

Posted: Tue Feb 09, 2010 12:24 am
by kamalshil
ray.wurlod wrote:The "$" character will cause DataStage to seek out an environment variable in the project. Is that how your project is set up? ...
Yes.

Posted: Tue Feb 09, 2010 5:29 am
by Sainath.Srinivasan
Do you get an oracle error code ?

Include a command stage to echo the value for oracle connection string.