Page 1 of 1

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

Posted: Mon Feb 02, 2009 10:17 pm
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

Posted: Mon Feb 02, 2009 11:26 pm
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.

Posted: Mon Feb 02, 2009 11:53 pm
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.

Posted: Tue Feb 03, 2009 12:17 am
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>

Posted: Tue Feb 03, 2009 8:15 am
by chulett
I would think the first question should be - is there an Oracle client installed on the DataStage server?