锁定资源错误 [英] Lock Resource error

查看:110
本文介绍了锁定资源错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有TSQL语句,我正在批处理插入到表中。大约9600万,并以500K批次进行。经过几次迭代后,它抛出了以下错误。有任何建议吗?

(受影响的行数为500000行)



(受影响的行数为500000行)



(受影响的行数为500000行)



(受影响的行数为500000行)

< br $> b $ b(受影响的行数500000)



(受影响的行数500000行)



(受影响的行数为500000行)



(受影响的行数为500000行)

$
(受影响的行数500000)



(受影响的行数500000行)



(受影响的行数为500000行)



(受影响的行数为500000行)



( 500000行受影响)

消息1204,级别19,状态4,行209

SQL Server实例数据库引擎此时无法获取LOCK资源。当活跃用户较少时,重新运行您的语句。请数据库管理员检查此实例的锁定和内存配置,或检查
是否存在长时间运行的事务。




sami


I have TSQL Statements where I am doing Batch Insert in to a table. Almost 96 Million and doing it in 500K batches. After few iterations It threw the below error. Any suggestions ?
(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)

(500000 row(s) affected)
Msg 1204, Level 19, State 4, Line 209
The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions.


sami

推荐答案

服务器有多少内存?您设置为MAX内存参数的内存量是多少?
How much memory does the server have? How much memory you set to MAX memory param?


这篇关于锁定资源错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆