Problem Connecting to ODBC

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
nani1974
Premium Member
Premium Member
Posts: 52
Joined: Fri Aug 31, 2007 10:59 am

Problem Connecting to ODBC

Post by nani1974 »

Hi,
I am not able to connect the SQL Server through ODBC in my production environment where as i can connect the same in Development with same ID & Password................i can read the source data in development through ODBC but not in Production...i checked all the settings in .ODBC.ini file and UVODBC Config file............they are same .....i don't understand where the problem is......can any help me out.

Thanks In Advance
Kumar
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

Can you post the error message?
You are the creator of your destiny - Swami Vivekananda
g_rkrish
Participant
Posts: 264
Joined: Wed Feb 08, 2006 12:06 am

Re: Problem Connecting to ODBC

Post by g_rkrish »

nani1974 wrote:Hi,
I am not able to connect the SQL Server through ODBC in my production environment where as i can connect the same in Development with same ID & Password................i can read the source data in development through ODBC but not in Production...i checked all the settings in .ODBC.ini file and UVODBC Config file............they are same .....i don't understand where the problem is......can any help me out.

Thanks In Advance
Kumar
can you able to ping the SQLserver from production. does it respond.
RK
nani1974
Premium Member
Premium Member
Posts: 52
Joined: Fri Aug 31, 2007 10:59 am

Post by nani1974 »

Hi,
When i am trying to read the source it's showing the error,........

DSR.MetaGeta(Get.Tables)(SQLConnect('BRETAIN','dsnid')):
BCI Error:
SQLSTATE=08001,CODE=11,[DataStage][SQLClient][ODBC]
[DataDirect][ODBC SQL Server Driver][libssClient22]
General Network Error.Check your Network Documentation.
SQLSTATE=01000,CODE=11,[DataStage][SQL Client][ODBC]
[DataDirect][ODBC SQL Server Driver][libssClient22]
ConnectionOpen (,()).

Thanks
Kumar
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

You are the creator of your destiny - Swami Vivekananda
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

Is the IP address and hostname of the SQL server added to "etc\hosts" file of the client system?

--Tony
nani1974
Premium Member
Premium Member
Posts: 52
Joined: Fri Aug 31, 2007 10:59 am

Post by nani1974 »

Tony,
I did not get you, etc\hosts?...............
why we add this and where we add this because we never did that in any of our project...we just add database in .odbc.ini and uvodbd.config as per my knowledge....

Thanks
Kumar
Neerav
Participant
Posts: 2
Joined: Mon Mar 26, 2007 8:50 am

Post by Neerav »

Can you connect to SQLServer thru external tools like sql server management studio.
Neerav Jain
nani1974
Premium Member
Premium Member
Posts: 52
Joined: Fri Aug 31, 2007 10:59 am

Post by nani1974 »

Yes, i can connect through SQL Assistant,and i develped the job in Development too.......with same settings....the problem is i cannot connect to the source in production environment which i mentioned earlier with the error i am getting....

Kumar.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you ping the SQL Server host machine from your production server?

Is connectivity blocked by a firewall setting?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

nani1974 wrote:Tony,
I did not get you, etc\hosts?...............
why we add this and where we add this because we never did that in any of our project...we just add database in .odbc.ini and uvodbd.config as per my knowledge....

Thanks
Kumar
Kumar,

We had a similar issue like you are facing when moving from One server to other and it resolved once I added the required IP addresses to the \etc\hosts file of both the server and the client systems.

I'd suggest to give it a try.

--Tony
antonyraj.deva
Premium Member
Premium Member
Posts: 138
Joined: Wed Jul 16, 2008 9:51 pm
Location: Kolkata

Post by antonyraj.deva »

The location of the hosts file is "C:\WINDOWS\system32\drivers\etc\hosts" for a windows system.

And in a AIX system the location is just "\etc\hosts" I guess.

--Tony
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not quite. On any UNIX system it's /etc/hosts

(On UNIX, \etc\hosts would become etchosts.)
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