1. 程式人生 > 其它 >oracle常見檢視彙總

oracle常見檢視彙總

1.關於資料庫/例項的動態效能檢視
v$database :displays information about the database from the control file.
v$instance :displays the state of the current instance(當前例項的狀況)
v$option :displays oracle database options and features(資料庫的選項和特性)
        option must be separately licensed(選項單獨認證設定)
        whereas features come with the product and are enabled based on
         the product that is running(產品特性的發揮也是要產品執行才能體現)
v$parameter :displays information about the initialization parameter that
           are currently in effect for the session.A new session inherits
           parameter values from the instance-wide values displayed by the
           v$system_parameter view.
v$backup    :display the backup status of all online datafiles.(所有線上資料檔案的備份情況)
v$px_process_sysstat :contains information about the sessions running parallel execution (包含並行執行會話的資訊)
v$process :displays information about the currently active processes(活動程序的資訊)
v$waitstat: displays block contention statistics.this table is only updated when timed statistics are enabled(顯示熱塊競爭的統計,當時間統計引數啟動時,這個表只能更新)
v$system_event :total waits for an event(事件的總等待時間)
2.關於磁碟檔案的檢視
v$datafile :datafile information from the control file
v$filestat :displays the number of physical reads and writes done and the total number of single-block and multiblock I/Os done at file level(在檔案級別顯示物理讀寫和io資訊)
v$log    :displays log file information from the control file
v$log_history :log history information from the control file
v$dbfile :all datafiles making up the database
v$tempfile :tempfile information
v$tempstat :file read/write statistics(檔案讀寫的統計)
v$segment_statistics :segment-level statistics
3.contention競爭的檢視
v$lock :lists the locks currently held by the oracle database and outstanding requests for a lock or latch (正在使用的鎖和過多的請求對鎖)
v$rollname :lists the names of all online rollback segments(線上回滾段的資訊)
v$rollstat :contains rollback segment statistics(回滾段的統計情況)
v$waitstat :block contention statistics(塊爭用統計)
v$latch :aggregate latch statistics (閂鎖的總和統計)
4.memory 的檢視
v$buffer_pool_statistics :statistics about all buffer pools available for the instance(例項所有可用的快取池的統計)
v$db_object_cache:database objects thatare cached inthe library cache(被快取在庫快取區的物件)
v$librarycache :contains statistics about library cache performance and activity (庫快取區的效能和活動的統計資訊)
v$rowcache :statistics for data dictionary activity(資料字典活動資訊統計)
v$sysstat:system statistics
v$sgastat :detailed information on the system global area(sga)
5.使用者/會話的檢視
v$lock :lists the locks currently held by the oracle database and outstanding requests for a lock or latch (正在使用的鎖和過多的請求對鎖)
v$open_cursor :list cursors that each user session currently has opened and parsed,or cached (當前會話開啟的遊標列表)
v$process :displays information about the currently active processes(活動程序的資訊)
v$transaction :lists the active transaction in the system (列出系統活動的事物)
v$px_sesstat :parallel execution(px),contains information about the sessions running (正在執行會話的並行執行情況 統計)
v$px_session :parallel execution(px),contains information about the sessions running
v$sesstat :user session statistics
v$session_event :on waits for an event by a session(會話等待事件)
v$sort_usage :在11g好像就沒有了
v$sort_segment:displays information about every sort segment in given instance  顯示例項中給出的每個回滾段的資訊。
v$session_wait :current or last wait for each session(當前或上次的等待資訊)
v$session
v$session_object_cache :object cache statistics for the current user session on the local server(instance)
6.等待事件相關的幾個檢視:
v$session:  代表資料庫活動的開始,視為源起。
v$session_wait: 檢視用以實時記錄活動SESSION的等待情況,是當前資訊。
v$session_wait_history: 是對V$SESSION_WAIT的簡單增強,記錄活動SESSION的最近10次等待。
v$sqltext: 當資料庫出現瓶頸時,通常可以從V$SESSION_WAIT找到那些正在等待資源的SESSION,通過SESSION的SID,聯合V$SESSION和V$SQLTEXT檢視就可以捕獲這些SESSION正在執行的SQL語句。
v$active_session_history: 是ASH的核心,用以記錄活動SESSION的歷史等待資訊,每秒取樣一次,這部分內容記錄在記憶體中,期望值是記錄一個小時的內容。
wrh#_active_session_history : 是V$ACTIVE_SESSION_HISTORY在AWR的儲存地。
v$active_session_history: 中的資訊會被定期(每小時一次)的重新整理到負載庫中,並預設保留一個星期用於分析。
dba_hist_active_sess_history: 檢視是WRH#_ACTIVE_SESSION_HISTORY檢視和其他幾個檢視的聯合展現,通常通過這個檢視進行歷史資料的訪問。
v$system_event 由於v$session記錄的是動態資訊,和SESSION的生命週期相關,而並不記錄歷史資訊,所以ORACLE提供檢視V$SYSTEM_EVENT來記錄資料庫自啟動以來所有等待事件的彙總資訊。通過這個檢視,使用者可以迅速獲得資料庫執行的總體概況。