How to connect to SQL Server from LINUX - multi-instances.

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
pnetti
Participant
Posts: 17
Joined: Fri Jan 07, 2005 7:28 am

How to connect to SQL Server from LINUX - multi-instances.

Post by pnetti »

I am trying to setup the odbc.ini Address entry for a SQL Server connection. However there are multiple instances of sql server on the box.

I am told by others connecting to the database that the address is

Address=servername\inst2,1433

However this name does not work.

I get a message

DSR.MetaGeta(GET.TABLES)(SQLConnect('Siebeldb','SADMIN')): BCI Error:
SQLSTATE=0,CODE=11,[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][libssclient20]
SQLSTATE=01000,CODE=11,[DataStage][SQL Client][ODBC][DataDirect][ODBC SQL Server Driver][libssclient20]ConnectionOpen (corptsql01\inst2,1433()).

Does anyone know how to setup the odbc.ini in this case?
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Re: How to connect to SQL Server from LINUX - multi-instance

Post by Ultramundane »

The others are connecting using datastage? I had a similar configuration and I had to disable named pipes for the named instance in order to get it to work. IBM nor datadirect could find the problem. Hopefully you will have same problem and workaround. If so, please report it to IBM.
pnetti
Participant
Posts: 17
Joined: Fri Jan 07, 2005 7:28 am

Re: How to connect to SQL Server from LINUX - multi-instance

Post by pnetti »

Ultramundane wrote:The others are connecting using datastage? I had a similar configuration and I had to disable named pipes for the named instance in order to get it to work. IBM nor datadirect could find the problem. Hopefully you will have same problem and workaround. If so, please report it to IBM.
[quote="How do I disable named pipes for the named instance? Is this something a server admin needs to do, or is this something that can be done within DataStage?[/quote]
pnetti
Participant
Posts: 17
Joined: Fri Jan 07, 2005 7:28 am

Re: How to connect to SQL Server from LINUX - multi-instance

Post by pnetti »

How do I disable named pipes for the named instance? Is this something a server admin needs to do, or is this something that can be done within DataStage?
fkana
Participant
Posts: 17
Joined: Tue Apr 20, 2004 2:01 am

Re: How to connect to SQL Server from LINUX - multi-instance

Post by fkana »

Hi,

Did u solve this issue.

Faeez
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Re: How to connect to SQL Server from LINUX - multi-instance

Post by Ultramundane »

You disable named pipes for the sql server instance. So either your windows admin or your Sql server DBA will need to disable named pipes (if enabled). Make sure that the only protocol selected is tcp/ip.

Once they have done this hopefully you will be able to connect using:
Address=ServerAlias\SQLinstance
pnetti
Participant
Posts: 17
Joined: Fri Jan 07, 2005 7:28 am

New Drivers Required

Post by pnetti »

I am being told by IBM that this problem has been corrected in the new 5.1 odbc drivers for REDHAT. There is also a set of 5.2 odbc drivers for REDHAT.

I will download/test and put the results in a reply.
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Re: New Drivers Required

Post by Ultramundane »

I was told that as well and they gave us the 5.2 drivers that had the fix. It still did not work and we had to do what I mentioned above. IBM nor datadirect were able to find the cause of the problem.
BIuser
Premium Member
Premium Member
Posts: 238
Joined: Thu Feb 02, 2006 4:03 am
Location: South Africa

Post by BIuser »

added QEWSD=39001 it worked
[SQLServerdb]
Driver=/home/EMPIRE/dsadm/Ascential/DataStage/branded_odbc/lib/VMmsss20.so
Description=DataDirect SQL Server Wire Protocol
Database=Onyx
LogonID=sa
Password=sasybase
Address=SAONYX,1433
QuotedId=No
QEWSD=39001
AnsiNPW=No
-------------------------
https://www.ssa.co.za
pnetti
Participant
Posts: 17
Joined: Fri Jan 07, 2005 7:28 am

ODBC Drivers 5.1

Post by pnetti »

The problem is corrected in the odbc 5.1 drivers. I downloaded them from the IBM website.

The correct syntax for the Address entry is
Address=servername,port

Where the port number is the port of the target instance.

FYI: I also tested the 5.2 drivers but they did not work.
Ultramundane
Participant
Posts: 407
Joined: Mon Jun 27, 2005 8:54 am
Location: Walker, Michigan
Contact:

Re: ODBC Drivers 5.1

Post by Ultramundane »

There all multiple correct forms. For instance, this is also correct:
Address=ServerAlias\SQLinstance
Post Reply