ORACLE9i_性能调优基础十四(LOCK)
2015-04-26 19:05
351 查看
Locking Mechanism
1.排他锁:在锁修改之前 不能被其他seesion锁2.共享锁:在共享锁上 不能加排他锁
Two Types of Locks
DML or data locks;Table-level locks
Row-level locks
DDL or dictionary locks
一个DML事物 得倒至少两把锁: 一个共享的表锁 一个排他的行锁
select sid, type, id1,id2,lmode,request from v$lock;
对于排他性的tx锁, ID1分为 高 16,低16位,分别对应 v$transaction 的 xidusn, xidslot 的两列
对于共享的tm锁, id1对应user_obects中的OBJECT_ID
Table Lock Modes
手动操作锁:lock table t in row exclusive mode
DDL Locks
Diagnostic Tools
ORA-00060 Deadlock detected while waiting for resource
相关文章推荐
- ORACLE9i_性能调优基础十一(Data Storage Structures)
- ORACLE9i_性能调优基础六(Optimizing Sort Operations)
- ORACLE9i_性能调优基础四(Buffer Cache )
- ORACLE9i_性能调优基础九(Managing Statistics)
- ORACLE9i_性能调优基础一(Diagnostic and Tuning Tools)
- ORACLE9i_性能调优基础八(SQL tuning)
- ORACLE9i_性能调优基础十二(Application Tuning)
- ORACLE9i_性能调优基础十三(Materialized Views)
- ORACLE9i_性能调优基础三(Tuning the Shared Pool)
- ORACLE9i_性能调优基础五(Sizing Other SGA structures)
- ORACLE9i_性能调优基础七(Using Resource Manager)
- ORACLE9i_性能调优基础二(Database Configuration and IO Issues)
- ORACLE9i_性能调优基础十(Oracle Blocks Efficiently)
- jvm性能调优 之 基础知识
- Redis 宝典 | 基础、高级特性与性能调优
- Redis 基础、高级特性与性能调优
- 性能调优基础--OWI学习笔记(一)
- Redis基础、高级特性与性能调优
- Redis基础、高级特性与性能调优
- 性能调优之基础知识