facing problem with ORA-12154: TNS:could not resolve service

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
justicevb
Participant
Posts: 10
Joined: Thu Jul 03, 2008 6:07 am

facing problem with ORA-12154: TNS:could not resolve service

Post by justicevb »

Hi,

Good morning.

am facing the problem with server jobs, when pulling the data into data base table from sequencial file.

here just reading the data and writing it into data base table

iam new to the data stage, i have installed the data stage software 7.5 and able to work with files

am facing the below error.

ORA-12154 : TNS : Could not resolve service name.

Please suggest me on this..

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

Post by ray.wurlod »

Probably the Oracle client file tnsnames.ora is not set up correctly or the Oracle environment variables (especially ORACLE_HOME) are not set up correctly so that tnsnames.ora can not even be found.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

To verify Ray's suggestion try

Code: Select all

tnsping {SID}
to test if your paths are set up and whether Oracle client can see the specified instance.
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
anugrah86
Participant
Posts: 5
Joined: Fri Feb 08, 2008 7:35 am
Location: India

Post by anugrah86 »

you need to check TNS entries in tnsnames.ora file.

This file can be located in $ORACLE_HOME/network/admin directory.

check if you can tnsping your database server from unix prompt.

>tnsping <database>.<domain>
~Anugrah
"Good Better Best. Don't take rest until Good becomes Better and Better becomes Best!!"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would think the first question should be - is there an Oracle client installed on the DataStage server?
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply