SAP Knowledge Base Article - Preview

3227227 - There is a tds protocol error 8192 when connecting from application - SDK ASE

Symptom

  • isql connects to ASE, but the application cannot make a connection.
  • The connection is not hitting the Database.
  • Errors displayed in the strace: 
    • d for a CS_CANCEL_CURRENT operat"..., 8192) = 8192
    • There is a tds protocol erro"..., 8192) = 8192
    • Failed to connect to SYBASE database
  • Complete strace shows:

00002b97b2a3d1f0] close(5<TCP:[xxxx:####1->xxxxxx:####]>) = 0
 > /usr/lib64/libc-2.17.so(__close+0x10) [0xf01f0]
......
 > /sybase/OCS-16_0/lib/libsybtcl64.so(sybsoc_close+0x7c) [0x1cd0c]
 > /sybase/OCS-16_0/lib/libsybtcl64.so(sybnet_close+0x7b) [0xea0b]
 > /sybase/OCS-16_0/lib/libsybct64.so(np_io_close+0xb4) [0x5ee64]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_async_exec_stack+0x96) [0x26ce6]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_connect+0x4bc) [0x311cc]
..............
 > /usr/lib64/libc-2.17.so(__libc_start_main+0xf4) [0x22554]
..
[00002b97b2a3c900] open("/sybase/locales/message/us_english/ctlib.loc", O_RDONLY) = 5</sybase/locales/message/us_english/ctlib.loc>
 > /usr/lib64/libc-2.17.so(open+0x10) [0xef900]
........
 > /sybase/OCS-16_0/lib/libsybintl64.so(intl_iocsfopen_perms+0x63) [0x3483]
 > /sybase/OCS-16_0/lib/libsybintl64.so(intl_open+0x33) [0x4ce3]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(comn__open_msgfile+0x13f) [0x3ca6f]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com__err_getcache+0x18f) [0x343ef]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com_err_msg+0x1b) [0x346bb]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com_notrunc_errmsg+0xfa) [0x4efba]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct__error+0x276) [0x42046]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct__api_connect_fail+0x116) [0x30a56]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct__50cont_connect+0x35) [0x30ab5]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_async_exec_stack+0x96) [0x26ce6]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_connect+0x4bc) [0x311cc]

[00002b97b2a3cb40] read(5</sybase/locales/message/us_english/ctlib.loc>, "d for a CS_CANCEL_CURRENT operat"..., 8192) = 8192
[00002b97b2a3cb40] read(5</sybase/locales/message/us_english/ctlib.loc>, "Z, \"There is a tds protocol erro"..., 8192) = 8192
 > /usr/lib64/libc-2.17.so(__read+0x10) [0xefb40]
 > /sybase/OCS-16_0/lib/libsybintl64.so(intl_iocsfgets+0x1d0) [0x3750]
 > /sybase/OCS-16_0/lib/libsybintl64.so(intl_nextline+0x77) [0x4127]
 > /sybase/OCS-16_0/lib/libsybintl64.so(intl_nextentry+0x11a) [0x3fda]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com__err_load_errors+0x6a) [0x337da]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com__err_getcache+0x1ed) [0x3444d]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com_err_msg+0x1b) [0x346bb]
 > /sybase/OCS-16_0/lib/libsybcomn64.so(com_notrunc_errmsg+0xa12) [0x4f8d2]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct__error+0x276) [0x42046]
 > /sybaset/OCS-16_0/lib/libsybct64.so(ct__api_connect_fail+0x116) [0x30a56]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct__50cont_connect+0x35) [0x30ab5]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_async_exec_stack+0x96) [0x26ce6]
 > /sybase/OCS-16_0/lib/libsybct64.so(ct_connect+0x4bc) [0x311cc]
......
 [00002b97b2a3cba0] write(1</dev/pts/48<char 136:48>>, "\tFailed to connect to SYBASE datab"..., 85) = 85


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) Software Developer Kit (SDK) 16.0 all
  • Open Client Client-Library
  • ctlibrary

Product

SAP Adaptive Server Enterprise 16.0 ; SAP Adaptive Server Enterprise SDK 16.0

Keywords

ctlibs , KBA , BC-SYB-SDK , SDK , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.