ORACLE建庫過程中自動生成的跟鎖相關的VIEW
之前一直沒有注意過,而且都是使用現成的文件來手工建庫,今天才發現我們的手冊沒有執行catblock.sql這個指令碼,所以就沒有建立這些檢視。這些檢視不是必須的,但是有了這些檢視可能會使用起來方便點。
ORACLE自動建立瞭如下幾個檢視:
DBA_KGLLOCK
DBA_LOCK
DBA_LOCK_INTERNAL
DBA_DML_LOCKS
DBA_DDL_LOCKS
DBA_WAITERS
DBA_BLOCKERS
他們各自的含義其實只要看catblock.sql指令碼中的註釋就可以了,這裡只是把註釋搬過來,記錄一下。
[@more@]DBA_KGLLOCK:
/* this is an auxiliary view containing the KGL locks and pins */
DBA_LOCK:
/*
* DBA_LOCK has a row for each lock that is being held, and
* one row for each outstanding request for a lock or latch.
* The columns of DBA_LOCK are:
* session_id - session holding or acquiring the lock
* type - type of lock
* mode_held - mode the lock is currently held in by the session
* mode_requested - mode that the lock is being requested in by the process
* lock_id1 - type specific identifier of the lock
* lock_id2 - type specific identifier of the lock
* last_convert - time (in seconds) since last convert completed
* blocking_others - is this lock blocking other locks
*/
DBA_LOCK_INTERNAL:
/*
* DBA_LOCK_INTERNAL has a row for each lock or latch that is being held, and
* one row for each outstanding request for a lock or latch.
* The columns of DBA_LOCK_INTERNAL are:
* session_id - session holding or acquiring the lock
* type - type of lock (DDL, LATCH, etc.)
* mode_held - mode the lock is currently held in by the session
* mode_requested - mode that the lock is being requested in by the process
* lock_id1 - type specific identifier of the lock
* lock_id2 - type specific identifier of the lock
*
* NOTE: this view can be very, very slow depending on the size of your
* shared pool area and database activity.
*/
DBA_DML_LOCKS:
/*
* DBA_DML_LOCKS has a row for each DML lock that is being held, and
* one row for each outstanding request for a DML lock. It is subset
* of DBA_LOCKS
*/
DBA_DDL_LOCKS:
/*
* DBA_DDL_LOCKS has a row for each DDL lock that is being held, and
* one row for each outstanding request for a DDL lock. It is subset
* of DBA_LOCKS
*/
DBA_WAITERS:
/*
* Show all the sessions waiting for locks and the session that holds the
* lock.
*/
DBA_BLOCKERS:
/*
* Show all the sessions that have someone waiting on a lock they hold, but
* that are not themselves waiting on a lock.
*/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25016/viewspace-1004706/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle11g 自動化建庫及調整相關引數Oracle
- C#連線Oracle資料庫,通過EF自動生成與資料庫表相關的實體類C#Oracle資料庫
- View 的繪製過程View
- 簡單介紹Oracle 19c RAC 手工建庫的過程Oracle
- 淺談移動端 View 的顯示過程View
- oracle鎖級別相關測試Oracle
- Android View的繪製過程AndroidView
- Android中View的測量和佈局過程AndroidView
- MySQL中鎖的相關問題DTQUMySql
- 25_解密Oracle redo生成過程解密Oracle Redo
- 模擬積體電路設計系列部落格——8.1.3 鎖相環的鎖相過程
- [20230220][20230110]生成相關備庫的awr報表
- faster rcnn中anchor的生成過程理解ASTCNN
- Django中的ORM如何通過資料庫中的表格資訊自動化生成Model 模型類?DjangoORM資料庫模型
- Flutter中的自定義View的基本流程和相關知識FlutterView
- 簡單瞭解 MySQL 中相關的鎖MySql
- Android View 原始碼解析(三) – View的繪製過程AndroidView原始碼
- 基於儲存過程的百萬級測試資料自動生成儲存過程
- 關於tsup工具構建專案庫使用過程
- framework——View新增過程FrameworkView
- Oracle 12.2 Heavy swapping 資料庫自動關閉OracleAPP資料庫
- Netty服務端啟動過程相關原始碼分析Netty服務端原始碼
- oracle的儲存過程Oracle儲存過程
- JPA透過表反向生成相關類
- SAP CDS view自學教程之一:如何測試基於SAP CDS view自動生成的OData服務View
- 淺析Spring Security 的認證過程及相關過濾器Spring過濾器
- Oracle資料庫啟動過程及狀態詳解Oracle資料庫
- Android原始碼完全解析——View的Measure過程Android原始碼View
- 通用元件:自動更新套件的使用過程元件套件
- OracleLinux上的Oracle開關機自啟動OracleLinux
- Flowistry是自動定位Rust程式碼中相關部分的Vscode工具RustVSCode
- 伺服器部署過程(node相關)伺服器
- 面試官問你 - 自定義View跟繪製流程相關知識點??面試View
- 自動生成相機標定軌跡
- python字串格式化的過程中自動改變了格式Python字串格式化
- MySQL鎖相關MySql
- DB2中如何實現Oracle的相關功能DB2Oracle
- 關於 鎖的四種狀態與鎖升級過程 圖文詳解