oracle 锁机制42(Oracle锁机制42).doc

  1. 1、本文档共11页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
oracle 锁机制42(Oracle锁机制42)

oracle 锁机制42(Oracle锁机制42) ORACLE lock mechanism A database is a shared resource that is used by multiple users. When multiple users concurrently access data, in the database will produce multiple transactions simultaneously access to the same data. If you do not control concurrent operations, you may read and store incorrect data and destroy the consistency of the database. Locking is a very important technique to realize concurrency control of database. When a transaction is operating on a data object, it first issues a request to the system and locks it. After locking, the transaction has a certain control over the data object, and other transactions can not update the data object until the transaction releases the lock. There are two basic types of locks in the database: the exclusive lock (Exclusive Locks, the X lock) and the shared lock (Share Locks, that is, the S lock). When a data object is added to its lock, other transactions cannot read and modify it. Data objects that share shared locks can be read by other transactions, but cannot be modified. The database uses the two basic types of locks to concurrency control of transactions on the database. The lock type of the Oracle database According to the different objects of protection, Oracle database lock can be divided into the following categories: DML lock (data locks, data lock), to protect the integrity of the data; DDL lock (Dictionary locks, the dictionary lock) used to protect structure, database objects, such as tables and indexes, the structure of the internal lock and definition; the latch (internal locks and latches), the protection of the internal structure of the database. The purpose of DML locks is to ensure data integrity in concurrent situations,. In Oracle database, DML lock mainly includes TM lock and TX lock, in which TM lock is called table level lock, and TX lock is called transaction lock or row level lock. When the Oracle executes the DML statement, the system automatically applies t

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档