[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite

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

SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite

Post by SURA »

Hello All

I was struggling for fix an issue in SQL SERVER. My environment is Datastage 8.5 with SQL SERVER 2008.

Issue: Some of the job(s) keep on hanging / aborts with the error i mentioned in the subject. I was not able to find the reason for this and i raised a PMR and it is in progress. Meanwhile i found a workaround and i wish to share this! It may help others who is facing this issue.

If hangs: No useful information in the log

If fails:
Message Id: IIS-DSEE-MSSS-00001
Message: LND_MON_SITE_LANE_DATA,3: 01000 : [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite (send()).
08S01 : [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.

Workaround:

1. Made the SQL SERVER EE stage to run in Sequential. - This will run, but very poor performance.

2. Create a cluster index in that table - Running fine with good performance

I am working with IBM to find the solution. Until i get the solution / until i update this thread, if any one face the same issue, please try this option.

If it worked, good luck :lol:

Otherwise don't screw me :oops:
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionW

Post by SURA »

An update:
The pirticular table was having cluster index. I dropped the index and ran the job. It starts to working fine. Then i recreated the same index again, but no issue, job is working fine. So i am not sure why the job was keep on failing for more than two weeks!

Anyhow i already provided the log details to IBM. I will update once i get any answer.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
egsalayon
Participant
Posts: 27
Joined: Sun Sep 23, 2007 9:21 pm

Post by egsalayon »

Hi Sura,

I also encountered the "hanging" of job with sql server enterprise stage as a target.

What's your IS version? Mine is IS 8.5 fix pack 1..
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Mine is same.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Please enable

1. Trace log in ODBC
2. Tack the log details in SQL Server
3. SELECT * FROM sys.dm_os_ring_buffers where ring_buffer_type='RING_BUFFER_CONNECTIVITY'

Some time this may help you.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
egsalayon
Participant
Posts: 27
Joined: Sun Sep 23, 2007 9:21 pm

Post by egsalayon »

Hi Sura,

Would you mind to discuss a bit more detail on these items? I only know how to execute the 3rd item...

Regards,
Eric
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Export the data into a text file. Data will be in xml format, still you can open it in text file. Then search for

DisconnectDueToReadError OR NetworkErrorFoundInInputStream and if it have 1 that means you have problem in these areas.

To be honnest it is a DBA task and i am not DBA. But beased on the google search i found this and noticed.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
egsalayon
Participant
Posts: 27
Joined: Sun Sep 23, 2007 9:21 pm

Post by egsalayon »

Hi Sura,

Mine is now running ok!
But my scenario only hangs and and doesnt have any error, unlike yours which has the error "[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionWrite"

What driver did you use in the creation of your DSN? The resolution I found out was to use the driver provided by Microsoft, "SQL Server".

Image

Previously, I use IBM provided driver for SQL Server.
I also tried using the driver "SQL Server Native Client" but also encountered error.

HTH,
Eric
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

We are using SQL Server 6.01.7600.16385 / SQ:SRVR32.DLL

We already tried native / IBM wire etc and none is working. I am not sure why IBM is not providing the native connectivity for SQL Server. In one of my email IBM replied, it is a limitation as of now.

If you use native, that will work with ODBC and not with SQL Server EE. Unfortunately ODBC doesn't have bulk load (Correct me if i am wrong).
ODBC is really it is making very slow.

For your question, yes we do have those hanging problem and it will happen in random and no permanent fix for that. I do raised one more question in this regards in the forum. I wish you should not face, but you will.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

SURA wrote:I am not sure why IBM is not providing the native connectivity for SQL Server.
They can't provide it on all platforms.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Yes Ray you are right. SERVER have OLEDB whereas PX dosen't and i can't understand why? is the reason i said.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Why not ask IBM? Not sure how anyone here would know...
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

DataDirect 6.1 ODBC drivers do offer native / bulk load for SQL Server. It appears that DataDirect 7.0 and 7.1 versions are also available. It looks like you're on Windows platform. I think if the Windows ODBC drivers say IBM, they're still made by DataDirect. Someone can correct me if wrong. Mabye you could check into using those.

Here is a template for the DSN from the .odbc.ini file. Bear in mind, this is from Unix; not Windows. Hopefully Windows has an equivalent.

Code: Select all

[SQL Server Native Wire Protocol]
Driver=/opt/IBM/IS01/Server/branded_odbc/lib/VMsqls25.so
Description=DataDirect SQL Server Native Wire Protocol
AlternateServers=
AlwaysReportTriggerResults=0
AnsiNPW=1
ApplicationName=
ApplicationUsingThreads=1
AuthenticationMethod=1
BulkBinaryThreshold=32
BulkCharacterThreshold=-1
BulkLoadBatchSize=1024
BulkLoadOptions=2
ConnectionReset=0
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=<database_name>
EnableBulkLoad=0
EnableQuotedIdentifiers=0
EncryptionMethod=0
FailoverGranularity=0
FailoverMode=0
FailoverPreconnect=0
FetchTSWTZasTimestamp=0
FetchTWFSasTime=1
GSSClient=native
HostName=<SQL_Server_host>
HostNameInCertificate=
InitializationString=
Language=
LoadBalanceTimeout=0
LoadBalancing=0
LoginTimeout=15
LogonID=
MaxPoolSize=100
MinPoolSize=0
PacketSize=-1
Password=
Pooling=0
PortNumber=<SQL_Server_server_port>
QueryTimeout=0
ReportCodePageConversionErrors=0
SnapshotSerializable=0
TrustStore=
TrustStorePassword=
ValidateServerCertificate=1
WorkStationID=
XML Describe Type=-10
Choose a job you love, and you will never have to work a day in your life. - Confucius
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

chulett wrote:Why not ask IBM?
I already asked IBM and i posted here; Just i wish to share my thoughts.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Hi Eric

Thanks for sharing this info. Let me check it and post the details.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Post Reply