db2中的PlanLock是什么

我的一个数据库中,有很多planlock。而lockname基本上都是同一个。请问这个planlock是什么?

aaaa.bmp



这个程序最后执行的sql都是:

  Last executed statements :

    Package cache ID :                            0x0000000103D10000

    Anchor ID :                                   977

    Statement UID :                               1

    SQL Type :                                    Dynamic

    Statement Type :                              DML, Select (blockable)

    Statement :                                   select 1 from sysibm.sysdummy

参与7

3同行回答

DB-TrendSetterDB-TrendSetter联盟成员数据库架构师公司
Internal Plan Lock(P lock) (Package Cache/ Plan Lock): Any execution of SQL, whether static or dynamic, must be done while holding a \'package lock\'. This ensures that no-one can drop the package that is being executed显示全部

Internal Plan Lock(P lock) (Package Cache/ Plan Lock): Any execution of SQL, whether static or dynamic, must be done while holding a \'package lock\'. This ensures that no-one can drop the package that is being executed

收起
电信运营商 · 2017-03-16
浏览3106
weishu_yhrweishu_yhr项目经理云南微数科技有限公司
执行计划锁,当使用该执行计划的时候加锁。显示全部

执行计划锁,当使用该执行计划的时候加锁。

收起
互联网服务 · 2017-03-15
浏览3085
执行计划锁,当使用该执行计划的时候加锁。显示全部

执行计划锁,当使用该执行计划的时候加锁。

收起
证券 · 2017-02-22
浏览3128

提问者

wangzk0206
数据库管理员scrcu

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2017-02-20
  • 关注会员:4 人
  • 问题浏览:4820
  • 最近回答:2017-03-16
  • X社区推广