Sybase 中默认可用的锁数量是多少
Sybase 抛出以下错误“发生死锁或所有锁均已被占用”。所以我想检查问题是否是由于 Sybase 耗尽可用锁而发生的。
有谁知道可用的默认锁,以及如何查找可用的锁数量
Sybase is throwing following error "a deadlock has occured or all locks were taken". So I wanted to check if the issue happened because of Sybase running out of available locks.
Does anyone know the default locks available, and also how to find the available number of locks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为你应该阅读有关 sp_lock、sp_sysmon 锁定管理和 sp_configure“锁数量”命令的手册。
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs156.htm
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs207.htm
http://infocenter.sybase。 com/help/index.jsp?topic=/com.sybase.dc20021_1251/html/locking/locking51.htm
I think you should read manual about sp_lock, sp_sysmon Lock Management and sp_configure "number of locks" commands.
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs156.htm
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.help.ase_15.0.sprocs/html/sprocs/sprocs207.htm
http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc20021_1251/html/locking/locking51.htm
由于 ASE 在服务器级别维护锁,并且我认为默认情况下 Sybase 可以使用配置参数处理最多 5000 个锁。因此,可能所有 5000 个锁都已被您的单个数据库对象或不同数据库中的对象消耗,因为在这些许多锁之后,查询开始自动终止。
As ASE maintains the locks at the server level and i think by default Sybase can handle maximum 5000 locks, using configuration paramter. So probably all 5000 locks has been consumed by your single database objects or objects in different different databases, because after these many locks query starts terminating automatically.
检查..
sp_helpconfig“锁的数量:
check..
sp_helpconfig "number of locks: