Location for TNS File

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
parsi_cnu
Charter Member
Charter Member
Posts: 43
Joined: Thu Dec 04, 2003 4:26 pm

Location for TNS File

Post by parsi_cnu »

Hi everybody,

I want to know the location where the TNS entry for the all databases are stored in the Datastage server.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

TNS entries are only for Oracle and not for all databases. Do you mean the odbc connection info?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
parsi_cnu
Charter Member
Charter Member
Posts: 43
Joined: Thu Dec 04, 2003 4:26 pm

Location?

Post by parsi_cnu »

[quote="DSguru2B"]TNS entries are only for Oracle and not for [b]all[/b] databases. Do you mean the odbc connection info?[/quote]

Yes to connect datastage server to any database it needs odbc entry right. where is the location of that file on the datastage server
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

On windows there is no .odbc.ini file. Refere to Ray's reply in thispost.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Post by mctny »

.odbc.ini is located in your DataStage server where as Tnsnames.ora file is located in your client machine.
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

mctny wrote:.odbc.ini is located in your DataStage server where as Tnsnames.ora file is located in your client machine.
Nope - at least not in a DataStage discussion. Both must be on the Server.
-craig

"You can never have too many knives" -- Logan Nine Fingers
mctny
Charter Member
Charter Member
Posts: 166
Joined: Thu Feb 02, 2006 6:55 am

Post by mctny »

chulett wrote:
mctny wrote:.odbc.ini is located in your DataStage server where as Tnsnames.ora file is located in your client machine.
Nope - at least not in a DataStage discussion. Both must be on the Server.
ok sorry, you are right, I was thinking when I am trying to connect to another oracle DB in another server, I need to have tnsnames.ora in my machine( i.e., client) , in order for the oracle to resolve the DB name, location etc of the oracle DB.
Thanks,
Chad
__________________________________________________________________
"There are three kinds of people in this world; Ones who know how to count and the others who don't know how to count !"
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Post by kommven »

TNS Entries are part of Oracle Client and should be a Oracle Database related.

ODBC is a Clientless Drivers to connect to variety of databases

You should have Oracle Client on DataStage Server to Use any Oracle Stage and cannot use Ora Stage just defining TNS Entry at ORACLE_HOME\network\ADMIN\tnsnames.ora
where ORACLE_HOME = c:/oracle in most cases.

You should be using ONLY ODBC Stage.

See for "Datasources (ODBC)" Manager on your Server Control Panel. It should be part of Administrative Tools.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

kommven wrote: You should be using ONLY ODBC Stage.
Psst.... :wink: DRS stage too
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

kommven wrote:You should be using ONLY ODBC Stage.
:? Why? I shun ODBC at every opportunity, preferring native interfaces whenever possible.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kommven
Charter Member
Charter Member
Posts: 125
Joined: Mon Jul 12, 2004 12:37 pm

Post by kommven »

For connecting to any database we DONT need tns entry location.

parsi_cnu wrote:
Yes to connect datastage server to any database it needs odbc entry right. where is the location of that file on the datastage server
Post Reply