<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; ASE 16.0</title>
	<atom:link href="http://www.dbainfo.net/tag/ase-16-0/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sybase ASE 16.0数据库无法连接报错There is a protocol packet error. An illegal length was received</title>
		<link>https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm</link>
		<comments>https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm#comments</comments>
		<pubDate>Sun, 02 Aug 2020 03:05:50 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[ASE 16.0]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=3073</guid>
		<description><![CDATA[1、问题现象： 使用isql无法连接Sybase ASE 16.0数据库服务器，报错： CT-LIBRARY error: &#160;&#160;&#160;&#160;&#160;&#160;&#160; ct_connect(): network packet layer: external error: There is a protocol packet error. An illegal length was received 查看Sybase ASE 16.0的错误日志文件，发现除了Cannot send, host process disconnected: XXXXXX-PC 29464 suid: 1外无任何错误信息。 数据库服务器版本：Adaptive Server Enterprise/16.0/EBF 22383 SMP/P/x86_64/Enterprise Linux/asecepheus/3530/64-bit/FBO/Sun Feb 16 06:09:40 2014 2、问题分析： 当前Sybase ASE 16.0服务器上已有连接919个。 在Sybase ASE 16.0数据库服务器所在操作系统平台上使用tcpdump抓包： tcpdump&#160; -i ens33 [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-size:16px;">1、问题现象：<br />
	</span></strong></p>
<p>使用isql无法连接Sybase ASE 16.0数据库服务器，报错：</p>
<p>CT-LIBRARY error:<br />
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ct_connect(): network packet layer: external error: There is a protocol packet error. An illegal length was received</p>
<p>查看Sybase ASE 16.0的错误日志文件，发现除了Cannot send, host process disconnected: XXXXXX-PC 29464 suid: 1外无任何错误信息。</p>
<p>
	数据库服务器版本：Adaptive Server Enterprise/16.0/EBF 22383 SMP/P/x86_64/Enterprise Linux/asecepheus/3530/64-bit/FBO/Sun Feb 16 06:09:40 2014</p>
<p><strong><span style="font-size:16px;">2、问题分析：</span></strong><br />
	当前Sybase ASE 16.0服务器上已有连接919个。</p>
<p>在Sybase ASE 16.0数据库服务器所在操作系统平台上使用tcpdump抓包：<br />
	tcpdump&nbsp; -i ens33 port 5000 -s0 -X -vvvv</p>
<p>再次使用isql尝试登录ASE 16.0数据库服务器，依然无法登录报错There is a protocol packet error. An illegal length was received。</p>
<p>tcpdump抓包显示，从Sybase ASE服务器返回给客户端的数据包中包含错误信息：</p>
<p>There is in sufficient heap memory to allocate 3064 bytes . Please increase configuration parameter &#39;heap memory per user&#39; or try again when there is less activity on the system.<br />
	Invalid role string &#39;&#39; entered <br />
	<span id="more-3073"></span></p>
<p>查看ASE 16.0的参数文件发现heap memory per user为默认值4096。</p>
<p>参数heap memory per user配置每个用户的堆内存量。堆内存池是启动时创建的内部内存，任务根据需要用它来动态分配内存。<br />
	如果运行使用宽列的任务，它需要使用堆栈中的大量内存，此时内存池就显得非常重要。堆内存分配临时缓冲区，以使这些宽列任务顺利完成。任务结束后，任务所用的堆内存返回堆内存池中。内存池的大小取决于用户的连接数。SAP 建议将 heap memory per user 设置为逻辑页大小的三倍。</p>
<p>
	<strong><span style="font-size:16px;">3、问题处理：</span></strong></p>
<p>当前使用isql无法连接Sybase ASE 16.0数据库服务器无法在线增加参数heap memory per user的值。</p>
<p>等待一段时间，其它数据库连接退出了释放了heap memory per user；</p>
<p>或者在Sybase ASE 16.0数据库服务器所在操作系统平台上终止客户端进程（如果有）：</p>
<p>netstat -anp | grep 5000 | grep -v &#39;/dataserver&#39;</p>
<p>如果使用isql能够连接Sybase ASE 16.0数据库服务器，在线修改参数：heap memory per user</p>
<p>sp_configure &quot;heap memory per user&quot;, 32768</p>
<p>如果仍然无法连接Sybase ASE 16.0数据库服务器，那么修改参数文件：</p>
<p>heap memory per user = 32768</p>
<p>然后重启Sybase ASE 16.0数据库服务器。</p>
<p><strong><span style="font-size:16px;">4、CR 815501：</span></strong></p>
<p>CR 815501 </p>
<p>Insufficient heap memory message generated without a 712 error reported in the ASE error log. User with sa_role is then unable to log in to ASE to configure an increase in heap memory, attempting to do so gets unhelpful error message &quot;network packet layer: external error: There is a protocol packet error. An illegal length was received.</p>
<p>This CR reserves some heap memory for the emergency login reserved for users with sa_role.</p>
<p>CR 815501 截止2020-08暂时没有补丁修复。只能通过增加参数heap memory per user来防止该问题。</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm">https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm">Sybase ASE 16.0数据库无法连接报错There is a protocol packet error. An illegal length was received</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">随机日志</h2><ul class="related_post"><li>2009-12-28 -- <a href="https://www.dbainfo.net/securecrt-display-problem.htm" title="Secure CRT 乱码问题解决">Secure CRT 乱码问题解决</a> (0)</li><li>2010-05-13 -- <a href="https://www.dbainfo.net/sybase-will-be-auquired-by-sap-3-ase-asa-iq.htm" title="sybase公司将被SAP收购">sybase公司将被SAP收购</a> (0)</li><li>2015-03-08 -- <a href="https://www.dbainfo.net/sap-ase-cr-number-5.htm" title="SAP Adaptive Server Enterprise的所有已知BUG列表（5）">SAP Adaptive Server Enterprise的所有已知BUG列表（5）</a> (0)</li><li>2011-09-26 -- <a href="https://www.dbainfo.net/install-sybase-ase15-0-2-on-ubuntu.htm" title="在Ubuntu7.04上安装sybase ASE 15.0.2">在Ubuntu7.04上安装sybase ASE 15.0.2</a> (0)</li><li>2010-12-20 -- <a href="https://www.dbainfo.net/ase-character-set-support-simplified-chinese.htm" title="Sybae ASE中支持简体中文的字符集">Sybae ASE中支持简体中文的字符集</a> (2)</li><li>2012-06-11 -- <a href="https://www.dbainfo.net/i-have-the-tool-can-recover-from-asa-db-file.htm" title="研发成功了从Sybase SQL Anywhere的DB文件上恢复数据的工具">研发成功了从Sybase SQL Anywhere的DB文件上恢复数据的工具</a> (3)</li><li>2013-07-18 -- <a href="https://www.dbainfo.net/create-ase-server-by-manual.htm" title="手动创建ASE服务器">手动创建ASE服务器</a> (0)</li><li>2010-11-15 -- <a href="https://www.dbainfo.net/use-powerdesigner15-common-problems.htm" title="使用PowerDesigner15时的15个问题">使用PowerDesigner15时的15个问题</a> (3)</li><li>2011-10-14 -- <a href="https://www.dbainfo.net/install-centos-6-0-from-pxe-hangggg.htm" title="解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题">解决通过网络(PXE)安装CentOS6.0 x86_64时无法初始化硬件的问题</a> (0)</li><li>2013-09-08 -- <a href="https://www.dbainfo.net/get-current-running-sql.htm" title="查看ASE v15正在执行的SQL语句内容">查看ASE v15正在执行的SQL语句内容</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/ase-16-0-can-not-connect-an-illegal-length-was-received.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
