Oracle 11gR1
DBA_DDL_LOCKS
lists all DDL locks held in the database and all outstanding requests for a DDL lock.
Column | Datatype | NULL | Description |
|
| | Session identifier |
|
| | Owner of the lock |
|
| | Name of the lock |
|
| | Lock type: · · · · · · · · · |
|
| | Lock mode: · · · · |
|
| | Lock request type: · · · · |
Note:
1. Show all ddl locks in the system
select ses.username , ddl.session_id , ses.serial# , owner || '.' || ddl.name object , ddl.type , ddl.mode_held from dba_ddl_locks ddl , v$session ses where owner like '%userid%' and ddl.session_id = ses.sid; |
Oracle dynamic performance views
No comments:
Post a Comment