<?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; Error1204</title>
	<atom:link href="http://www.dbainfo.net/tag/error1204/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>ASE12.5.3 Error 1204错误的解决方法</title>
		<link>https://www.dbainfo.net/trouble-shooting-error-1204.htm</link>
		<comments>https://www.dbainfo.net/trouble-shooting-error-1204.htm#comments</comments>
		<pubDate>Thu, 20 Oct 2011 14:30:49 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[ASE]]></category>
		<category><![CDATA[Error1204]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=1224</guid>
		<description><![CDATA[Sybase ASE12.5.3ESD#7的错误日志文件中频繁报下面的错误信息： Error 1204, Severity 17, State 2 occurred for User &#39;sa&#39;. Client IP address is &#39;XXX.XXX.XXX.XXX&#39;. SQL Text: select xxxx from xxxxx where xxxxx 查询Sybase错误信息手册，Error 1204是由锁数量不够导致的。 Error 1204的错误信息内容应该为： SQL Server has run out of LOCKS. Re-run your command when there are fewer active users, or contact a user with System Administrator (SA) role to [...]]]></description>
			<content:encoded><![CDATA[<p>Sybase ASE12.5.3ESD#7的错误日志文件中频繁报下面的错误信息：</p>
<pre>Error 1204, Severity 17, State 2 occurred for User &#39;sa&#39;. Client IP address is &#39;XXX.XXX.XXX.XXX&#39;.
SQL Text: select xxxx from xxxxx where xxxxx</pre>
<p>查询Sybase错误信息手册，Error 1204是由锁数量不够导致的。</p>
<p>Error 1204的错误信息内容应该为：</p>
<pre>SQL Server has run out of LOCKS. Re-run your command when there are fewer active users, or contact a user with System Administrator (SA) role to reconfigure SQL Server with more LOCKS.
</pre>
<p>自ASE12.5.2后，数据库引擎向错误日志文件中记录Error1204时还记录一些额外的信息，比如：客户端IP地址，登录用户名以及执行的SQL语句。</p>
<p>我这次看到的错误日志文件中仅有一些额外信息，比如：for User &#39;sa&#39;. Client IP address is &#39;XXX.XXX.XXX.XXX&#39;. SQL Text: sql_clause，并没有显示SQL Server has run out of LOCKS.这一行信息。<span id="more-1224"></span></p>
<p>验证一下是否锁数量不够导致的Error 1204？</p>
<pre>1&gt; sp_monitorconfig &quot;number of locks&quot;
2&gt; go
Usage information at date and time: Oct 20 2011  3:31PM.

 Name                      Num_free    Num_active  Pct_act <span style="color:#f00;"><strong>Max_Used</strong></span>
         Num_Reuse
 ------------------------- ----------- ----------- ------- -----------
         -----------
 number of locks                298531        1469   0.49      <span style="color:#f00;"><strong> 301452</strong></span>
                   0
(return status = 0)
</pre>
<p>曾经用过的最大锁数量301452已经超过配置的number of locks参数值300000了。</p>
<p><span style="font-size:16px;"><strong>解决方法：<br />
	</strong></span></p>
<p>不管显示不显示run out of LOCKS信息，已经确定是锁数量不够。适当增大number of locks试试解决此错误。</p>
<pre>sp_configure &quot;number of locks&quot;,400000
go
</pre>
<p>将锁的数量加到40万。</p>
<p><strong>PS：<br />
	</strong></p>
<p>关于Error 1204显示的错误信息内容，Targeted CR List for ASE 12.5.4 ESD #7中有一个bug id ：<font face="Arial" size="2">468870 可能与之有关。<br />
	</font></p>
<p><font face="Arial" size="2">When printed in the error log, the message &quot;Error 1204, Severity 17,State 1 occurred for User &#39; &lt; user &gt; &#39;. Client IP address is &#39; &lt; address &gt; &#39;&quot; uses an inconsistent format making it difficult to search for within the error log.</font></p>
<p><font face="Arial" size="2">这可能是我没在ASE12.5.3的错误日志文件中看到</font>SQL Server has run out of LOCKS.类似信息的原因。</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/trouble-shooting-error-1204.htm">https://www.dbainfo.net/trouble-shooting-error-1204.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/trouble-shooting-error-1204.htm">ASE12.5.3 Error 1204错误的解决方法</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>2019-04-12 -- <a href="https://www.dbainfo.net/sybase-ase-asa-recovery-service.htm" title="Sybase ASE及SQL Anywhere数据库修复专家">Sybase ASE及SQL Anywhere数据库修复专家</a> (0)</li><li>2015-01-16 -- <a href="https://www.dbainfo.net/one-way-to-recover-master-configuration-area.htm" title="master数据库配置区域(configuration area)损坏的一种修复方法">master数据库配置区域(configuration area)损坏的一种修复方法</a> (1)</li><li>2014-10-10 -- <a href="https://www.dbainfo.net/ase-object-name-length-limit.htm" title="ASE对象名称长度限制">ASE对象名称长度限制</a> (0)</li><li>2014-06-09 -- <a href="https://www.dbainfo.net/count_all_tables_rowcount.htm" title="统计用户数据库内所有表的行数">统计用户数据库内所有表的行数</a> (0)</li><li>2013-11-19 -- <a href="https://www.dbainfo.net/showplan_html_format.htm" title="以HTML格式显示ASE查询计划">以HTML格式显示ASE查询计划</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation5.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 5、安装后的配置工作">Sybase ASE 15.0.3 for windows平台安装文档 – 5、安装后的配置工作</a> (1)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation4.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 4、安装Sybase数据库服务">Sybase ASE 15.0.3 for windows平台安装文档 – 4、安装Sybase数据库服务</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation3.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 3、升级到 Sybase 15.0.3 ESD #3">Sybase ASE 15.0.3 for windows平台安装文档 – 3、升级到 Sybase 15.0.3 ESD #3</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation2.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 2、安装Sybase ASE程序">Sybase ASE 15.0.3 for windows平台安装文档 – 2、安装Sybase ASE程序</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation1.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 1、安装前的准备工作">Sybase ASE 15.0.3 for windows平台安装文档 – 1、安装前的准备工作</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/trouble-shooting-error-1204.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
