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來記錄數據庫自啓動以來全部等待事件的彙總信息。經過這個視圖,用戶能夠迅速得到數據庫運行的整體概況。




sql

相關文章
相關標籤/搜索