ORA-12154 Error and Possible Job Corruption

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

durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

ORA-12154 Error and Possible Job Corruption

Post by durgaps »

Job Design 1:

Seq_File1 ==> TRANSFORMER1 ===> STP(Stored Proc) ===> TRANSFORMER2 ==> Seq_File2

I was getting the following error.
Error: ORA-12154: TNS:could not resolve service name

Checked all the ODBC entries in the respective locations. They look ok as there are other jobs using the same connection and executing successfully.


Next, I removed the Seq_File1 stage and put a Row_Generator stage and passed the input values from Job Parameters window.


Job Design 2:

Row_Generator ==> TRANSFORMER1 ===> STP(Stored Proc) ===> TRANSFORMER2 ==> Seq_File2


Guess what, the job ran without any hitch. I still do not understand why and how it was aborting when the Seq_File1 stage was on. I ran this job (design 1) in <project1> multiple times and every time it aborted with the ORA error.

And one more thing is, I have the same job (design 1) in <project2>. It runs fine without any issues.

Any idea why this might be happening? Is the job corrupted? Has anybody faced these issues before?

Thanks,
Durga Prasad
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

What information you pass from sequential file to STP stage?
What other information you get apart from this error?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

Post by durgaps »

From Sequential File, i pick up a column value and pass it to the Transformer and then pass it to STP.

Right now, I pass a value from Job Parameters to the column in Transformer. And it works fine.
Durga Prasad
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

So you should check the data value that been extracted from Sequential file.
Dont you get any other error message other that the noted one?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

Post by durgaps »

Thanks for the reply Kumar. I am afraid there is no other error message other than this. I have cross-checked the extracted value. No issues with it. Is it a possibility that the Stages can get corrupted?
Durga Prasad
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

There is no reason the Stage can get corrupted. But with different stage and different method you are passing a different value atlest by different means.
Are you trying to pass input parameter values through Sequential stage via Transformer? Can you check what is the difference between passing the value from File vs passing it as parameter. You can find it out by writing in to another sequential file. You can give both input as well as parameters into different fields and compare one to one.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Go back. The error is "TNS name can not be resolved". Work out why.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
csrazdan
Participant
Posts: 127
Joined: Wed May 12, 2004 6:03 pm
Location: Chicago IL

Post by csrazdan »

Just that you know Stored Procedure stage used ODBC connection only for loading MetaData. When the job executes Stored Procedure stage uses OCI connection. What it means that the connect string which you enter in Stored Procedure stage should be available in tnsnames.ora file on the your DataStage Server.

Try connecting to Oracle from UNIX SQL prompt with your connect string before debugging your job.

Hope it helps....
Assume everything I say or do is positive
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If the same jobs runs if the Sequential file is replace by Other stage, would reveal the fact that the tnsnames had that entry in the file.
Need to check, whats mystery with the earlier design.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

Post by durgaps »

Hi Ray/Kumar,

Tried Kumar's suggestion. Both are having the same values. No change. (No space, No junk characters etc ).

Moreover I had the same job running successfully a week back with the same inputs. Now, with the same input, same scenario the job is failing.

Rather strange.

Thanks,
Durga Prasad
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

We are missing something here.
Let me confirm, the data passed either from Row Generator or Sequential file or data from Parameter is just the input argument to the Stored procedure called by the STP stage?
And there is not change in connection parameters, like Schema, Tablename, usernaname or password??
And there is tnsentry for the schema that you are trying to connect for all the time is available in Server tnsnames.ora file?
Was the above all true?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Do you have the job that fails?

Can you run it again and confirm the results?

Can you connect to Oracle from DS Server via sqlplus with same parameters like those to STP?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

durgaps wrote:Hi Ray/Kumar,

Tried Kumar's suggestion. Both are having the same values. No change. (No space, No junk characters etc ).

Moreover I had the same job running successfully a week back with the same inputs. Now, with the same input, same scenario the job is failing.

Rather strange.

Thanks,
So, what's changed?

Who changed the tnsnames.ora file?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
durgaps
Participant
Posts: 74
Joined: Sat Jul 08, 2006 4:09 am
Location: Melbourne, Australia
Contact:

Post by durgaps »

Hi All,

'Yes' is the answer to all questions asked by Kumar_S & Sainath. I really dont have a clue as to what might be the reason for this. Please let know if anybody has any leads on this.

Thanks,
Durga Prasad
oacvb
Participant
Posts: 128
Joined: Wed Feb 18, 2004 5:33 am

Post by oacvb »

What are the info you are passing from Sequential File to Transformer and then to STP. Just curious, Are you passing any db details (Login, Password, Schema) from sequential file?
Post Reply