ITPub博客

首页 > 应用开发 > IT综合 > TABLE LOCK

TABLE LOCK

原创 IT综合 作者:tsinglee 时间:2008-04-08 11:26:29 0 删除 编辑

Oracle Database permits DDL operations on a table only if the table can be locked
during the operation. Such table locks are not required during DML operations.
Note: Table locks are not acquired on temporary tables.

ENABLE TABLE
LOCK Specify ENABLE TABLE LOCK to enable table locks, thereby
allowing DDL operations on the table. All currently executing transactions must
commit or roll back before Oracle Database enables the table lock.
Caution: Oracle Database waits until active DML transactions in the
database have completed before locking the table. Sometimes the
resulting delay is considerable.

DISABLE TABLE LOCK
Specify DISABLE TABLE LOCK to disable table locks, thereby
preventing DDL operations on the table.

[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10599713/viewspace-1002050/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
  • 博文量
    740
  • 访问量
    2002850