Types of Locks (340)
Oracle automatically uses different types of locks to control concurrent access to data
and to prevent destructive interaction between users. Oracle automatically locks a
resource on behalf of a transaction to prevent other transactions from doing something
also requiring exclusive access to the same resource. The lock is released automatically
when some event occurs so that the transaction no longer requires the resource.
Throughout its operation, Oracle automatically acquires different types of locks at
different levels of restrictiveness depending on the resource being locked and the
operation being performed.
Oracle locks fall into one of three general categories.
DML locks (data locks) : DML locks protect data. For example, table locks lock entire
tables, row locks lock selected rows.
DDL locks (dictionary locks) : DDL locks protect the structure of schema objects—for
example, the definitions of tables and views.
Internal locks and latches : Internal locks and latches protect internal database
structures such as datafiles. Internal locks and latches
are entirely automatic.
鎖的型別
1. Oracle 能夠根據加鎖的資源及其執行的操作自動獲取鎖及對資源的限制級別
2. 鎖通常分為3類 :
a. DML鎖(資料鎖) : 保護資料
b. DDL鎖(字典鎖) : 保護方案物件
c. 內部鎖和閂鎖 : 保護資料庫的內部結構
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-990928/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- PostgreSQL DBA(158) - Locks(tuple locks)SQL
- PostgreSQL DBA(85) - Locks(lightweight locks)SQL
- EF Core – Owned Entity Types & Complex Types
- PostgreSQL DBA(76) - Locks(Advisory Locks):What You Should KnowSQL
- PostgreSQL DBA(78) - Locks(When Postgres blocks 7 tips for dealing with locks)SQLBloC
- TypeScript @typesTypeScript
- PostgreSQL 原始碼解讀(238)- Locks(OOM & max_locks_per_transaction)SQL原始碼OOM
- Trusted Types APIRustAPI
- PostgreSQL 原始碼解讀(239)- Locks(OOM & max_locks_per_transaction#2)SQL原始碼OOM
- 【譯】 Types are moving to the right
- TypeScript 之 Conditional TypesTypeScript
- TypeScript 之 Object TypesTypeScriptObject
- 譯|There Are No Reference Types in GoGo
- PostgreSQL DBA(77) - Locks(Lock Monitoring)SQL
- DataTransfer.types 屬性
- TypeScript 之 Indexed Access TypesTypeScriptIndex
- PostgreSQL DBA(81) - Locks(FOR UPDATE SKIP LOCKED)SQL
- CF340B的題解
- PostgreSQL DBA(80) - Object Identifier TypesSQLObjectIDE
- Task03 : Data Types and Operators
- PostgreSQL 原始碼解讀(219)- Locks(Overview)SQL原始碼View
- PostgreSQL DBA(79) - Locks(pg_blocking_pids)SQLBloC
- PostgreSQL 原始碼解讀(220)- Locks(LOCK Struct)SQL原始碼Struct
- PostgreSQL 原始碼解讀(221)- Locks(PROCLOCK Struct)SQL原始碼Struct
- RabbitMQ 訊息佇列之 Exchange TypesMQ佇列
- 02. 複合型別(Composite Types)型別
- [20210223]sys與Extended Data Types.txt
- [20231212]impdp content=metadata_only locks the stats.txt
- PostgreSQL 原始碼解讀(223)- Locks(Fast Path Locking)SQL原始碼AST
- PostgreSQL 原始碼解讀(224)- Locks(The Deadlock Detection Algorithm)SQL原始碼Go
- PostgreSQL DBA(75) - Locks(locktype:transactionid):What You Should KnowSQL
- PostgreSQL DBA(157) - pgAdmin(OOM & max_locks_per_transaction )SQLOOM
- ch340和影像模組的接線
- 淺析Kubernrtes服務型別(Service Types)型別
- Utility class to convert Hex strings to ByteArray or String types.
- PostgreSQL DBA(74) - Locks(Row-Level):What You Should KnowSQL
- PostgreSQL DBA(71) - Locks(Table-Level):What You Should KnowSQL
- PostgreSQL 原始碼解讀(222)- Locks(Lock Manager Internal Locking)SQL原始碼
- 搞懂 TypeScript 中的對映型別(Mapped Types)TypeScript型別APP