Stored Procedure Stage - Compilation issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Sudhindra_ps
Participant
Posts: 45
Joined: Thu Aug 31, 2006 3:13 am
Location: Bangalore

Stored Procedure Stage - Compilation issue

Post by Sudhindra_ps »

hi All,

Am using following job design.
ExternalSourceStage ->TransformerStage->StoredProcedureStage->SQFileStage

But this works fine with my ID. When I compile this job using different UserID and try to execute it gives Oracle-12154 TNS error on Stored Procedure stage. When I checked OSH script when compiled using my ID against Other ID's. It looks like OSH script is different for Stored Procedure stage in the ETL job. I guess, environmental parameters to connect to database are not getting recognised correctly when compiled with other UserID's. As I can see variable values being appended with keyword called "notLikely" in the OSH script. Please see below the OSH script attached for Variables in Stored Procedure stage when compiled with other UserID's.
-- OSH Script STP Dtage(When Job Compiled with other Datastage USerID's)---
DATASRC=\'NOTLIKELYDSCAPIOP_\$PPT_SERVER_NAMENOTLIKELY\',
USERID=\'NOTLIKELYDSCAPIOP_\$PPT_SCHEMA_USRNOTLIKELY\',
PASSWORD=\'[&"DSCAPIOP_$PPT_SCHEMA_PWD"]\',
DATABASE=\'NOTLIKELYDSCAPIOP_\$PPT_SERVER_NAMENOTLIKELY\',
------------------------------------------------------------------------------------

----- OSH Script STP Stage (When Job Compiled with my Datastage USerID)------
DATASRC=\'[&"DSCAPIOP_$PPT_SERVER_NAME"]\',
USERID=\'[&"DSCAPIOP_$PPT_SCHEMA_USR"]\',
PASSWORD=\'[&"DSCAPIOP_$PPT_SCHEMA_PWD"]\',
DATABASE=\'[&"DSCAPIOP_$PPT_SERVER_NAME"]\',
---------------------------------------------------------------------------------
Job works fine when compiled using my UserID i.e. it don't have keyword "NOT LIKELY" appended to "DSCAPIOP".
As far as privileges and roles are considered it is all same for my userID and that of others.
Can any body suggest me what could be the reason in getting this OSH script corrupted when compiled with other UserID's. Any suggestions is highly appreciated.

Thanks & regards
Sudhindra P S
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What's different about your ID? Do you, for example, have read permission to tnsnames.ora and the other ID does not?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sudhindra_ps
Participant
Posts: 45
Joined: Thu Aug 31, 2006 3:13 am
Location: Bangalore

Post by Sudhindra_ps »

hi Ray,

I don't see any difference about my User ID against other User ID's. All our UserID's belong to same group on ETL box and privileges set are also the same. I was browsing through couple of tech forums and found that this is potentially an bug in Datastage and there is an patch readily available for this with IBM. Anyhow, I have escalated this to IBM and let me see what they suggest so, that I could post the same here.

Thanks & regards
Sudhindra P S
Post Reply