TNS names

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
rprasanna28
Participant
Posts: 10
Joined: Fri May 12, 2006 12:31 am

TNS names

Post by rprasanna28 »

I have installed Oracle in my system as well as datastage. Oracle is working properly with Datasource name "Ora", username "scott". But when I use OCI stage in Datastage and when I try to connec to database with same DSN ........Iam getting an error message " TNS name couldn't be resolved". Can anyone tell me where the problem is ? whether is it in Oracle installation or Datastage installation?
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Try using tnsping and your dsn entry name. If that doesn't resolve, use the fully qualified name.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ramcste
Participant
Posts: 1
Joined: Mon Oct 02, 2006 7:10 pm

Post by ramcste »

Hi all, I have same problem with "TNS couldn't resolve service name".
Kenneth, I also executed tnsping command with dnsname. Still couldn't
resolve it.
Can you please help us. thanks a lot. - RAM
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Look at your tnsnames.ora file, use the short name of the SID or the longer name, sometimes it looks like "xxxxx.world" or "xxxxx.abc.net". Look at the service_name value and try that.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
avi21st
Charter Member
Charter Member
Posts: 135
Joined: Thu May 26, 2005 10:21 am
Location: USA

Post by avi21st »

kcbland wrote:Look at your tnsnames.ora file, use the short name of the SID or the longer name, sometimes it looks like "xxxxx.world" or "xxxxx.abc.net". Look at the service_name value and try that.
Hi

TNSNAMES.ORA is the network configuration file- you need to have it defined at your client to access a Oracle database. It is usually present in your Oracle path -C:\Oracle\product\10.1.0\Client_3

Then in \network\admin folder

The standard format of a TNSNAMES.ORA file is given where you have the details of your development (here WSI1D) or your test (WSIS) or the production environment details

Code: Select all

WSI1D.WORLD = 
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.246.155.55)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SID = wsi1d) 
      (SRVR = DEDICATED)
    )
  )

WSI1S.WORLD = 
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.7.240.129)(PORT = 1524))
    )
    (CONNECT_DATA =
      (SID = wsi1s) 
      (SRVR = DEDICATED)
    )
  )
Let me know if you have any issues
Avishek Mukherjee
Data Integration Architect
Chicago, IL, USA.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Since the DataStage job is the Oracle client application, the tnsnames.ora file must be correctly configured on the DataStage server machine. Also, the dsenv file on the DataStage server machine must have the Oracle environment variables correctly set.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply