WEB开发网
开发学院数据库Oracle DB2和 Oracle的并发控制(锁)比较 阅读

DB2和 Oracle的并发控制(锁)比较

 2008-09-08 12:53:33 来源:WEB开发网   
核心提示: Locks held currently = 7Lock waits = 75Time database waited on locks (ms) = 82302438Lock list memory in use (Bytes)= 20016Deadlocks detected = 0L

Locks held currently            = 7
Lock waits                 = 75
Time database waited on locks (ms)     = 82302438
Lock list memory in use (Bytes)      = 20016
Deadlocks detected             = 0
Lock escalations              = 8
Exclusive lock escalations         = 8
Agents currently waiting on locks     = 0
Lock Timeouts               = 20

db2 get snapshot for database on dbname |find /i "locks"(NT平台)

db2 get snapshot for locks for applications agentid 45(注:45为应用程序句柄)

Application handle             = 45
Application ID               = *LOCAL.db2dev.030815021827
Sequence number              = 0001
Application name              = tp
Authorization ID              = SAPR3
Application status             = UOW Waiting
Status change time             =
Application code page           = 819
Locks held                 = 7
Total wait time (ms)            = 0
List Of Locks
Lock Object Name      = 1130185838
Node number lock is held at = 0
Object Type         = Key Value
Tablespace Name       = PSAPBTABD
Table Schema        = SAPR3
Table Name         = TPLOGNAMES
Mode            = X
Status           = Granted
Lock Escalation       = NO
Lock Object Name      = 14053937
Node number lock is held at = 0
Object Type         = Row
Tablespace Name       = PSAPBTABD
Table Schema        = SAPR3
Table Name         = TPLOGNAMES
Mode            = X
Status           = Granted
Lock Escalation       = NO

也可以执行下列表函数(注:在DB2 V8之前只能通过命令,DB2 V8后可以通过表函数,推荐使用表函数来进行锁的监控)

上一页  4 5 6 7 8 9 10  下一页

Tags:DB Oracle 并发

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接