ODBC connector connect to SQL Server failed with TLS1.2

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
lkevin1210
Participant
Posts: 5
Joined: Thu Dec 13, 2018 6:11 pm

ODBC connector connect to SQL Server failed with TLS1.2

Post by lkevin1210 »

Hi, our datastage server is version 9.1.2 on AIX.
We have a very simple job to get the data from source database sql server and load to target database DB2.
In the SQL server, we have recently applied a security fix on it to enable TLS1.2 and disable SSL2.0 and SSL3.0.

After the security fix is applied, we could not connect to the sql server with ODBC connector.
When we test the data source connection in the ODBC connector, it prompts the following error:
ODBC function "SQLConnect" reported: SQLSTATE=08001; Native Error Code=0: Msg=[IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]SSL Negotiation failed.

Then, in the datastage engine server, we upgraded the data direct OEM SQL Server wire protocol driver from 7.1.0 to 7.1.6 and test the connection again, this time it prompts the following error:
ODBC function "SQLConnect" reported: SQLSTATE=28000; Native Error Code=18,456: Msg=[IBM(DataDirect OEM)][ODBC SQL Server Wire Protocol driver]Login failed for user 'user1'.

Our .odbcini is as simple as following:
[data_source]
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMsqls00.so
Description=SQL Server connection
Database=mydb1
ConnectionRetryCount=3
Address=10.7.134.131,1433
LogonID=user1
Password=Abcd!234
QuotedID=No
AnsiNPW=No
EncryptionMethod=1
ValidateServerCertificate=0

Has anyone encountered similar issues? Thanks in advance.
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

I think it means your connection works OK now but you have a bad user/password combination. Verify it works outside of the ODBC driver first.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply