TNS names
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 10
- Joined: Fri May 12, 2006 12:31 am
TNS names
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?
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
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
Hikcbland 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.
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)
)
)
Avishek Mukherjee
Data Integration Architect
Chicago, IL, USA.
Data Integration Architect
Chicago, IL, USA.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.