【Oracle】gv$px_session 檢視介紹
在rac 系統中可以使用gv$px_session檢視來檢視系統中正在執行的並行sql的一些資訊,該檢視的欄位如下:
Column Datatype Description
INSTANCE NUMBER rac中的節點號
SADDR RAW(4 | 8) Session 地址
SID NUMBER Session identifier
SERIAL# NUMBER Session serial number
QCSID NUMBER 並行協調程式的sid
QCSERIAL# NUMBER 並行協調程式的sid的序列號
QCINST_ID NUMBER parallel coordinator所在的instance id
SERVER_GROUP NUMBER The logical group of servers to which this cluster database process belongs
SERVER_SET NUMBER The logical set of servers to which this cluster database process belongs. A single server group will have at most two server sets.
SERVER# NUMBER The logical number of the cluster database process within a server set
DEGREE NUMBER 實際是使用的並行度
REQ_DEGREE NUMBER 使用者在語句中指定要求的並行度,並且優先於其他資源,使用者,負載均衡要求減少的值(load balancing reductions)
主要使用的是QCSID,SID,SERIAL# 比如:其中QCSID是發起並行操作的session ID
ops$admin@yangdb>select * from gv$px_session;
INST_ID SADDR SID SERIAL# QCSID QCSERIAL# QCINST_ID SERVER_GROUP SERVER_SET SERVER# DEGREE REQ_DEGREE
---------- ---------------- ---------- ---------- ---------- ---------- ---------- ------------ ---------- ---------- ---------- ----------
1 0000000A10B86320 969 58951 1111 27913 1 1 1 1 2 2
1 0000000A58C349F8 1111 27913 1111
2 0000000A10C180C0 1298 41171 1111 27913 1 1 1 2 2 2
例子中的(1111,27913)會話執行的sql有DEGREE為2,(969,58951)在節點1 上執行,(1298,41171)在節點2上執行!
檢視並行會話的等待事件:
ops$admin@yangdb>select p.inst_id,p.sid,p.qcsid,s.event,s.p1,s.p2,s.p3
2 from gv$px_session p,
3 gv$session_wait s
4 where p.qcsid=&sid
5 and s.sid=p.sid
6 and p.inst_id=s.inst_id;
Enter value for sid: 1063
old 4: where p.qcsid=&sid
new 4: where p.qcsid=1063
INST_ID SID QCSID EVENT P1 P2 P3
---------- ---------- ---------- ---------------------------------------------------------------- ---------- ---------- ----------
1 3 1063 PX Deq Credit: send blkd 268566527 1 4.4023E+10
1 246 1063 PX Deq: Execution Msg 268566527 915 4.4022E+10
1 396 1063 PX Deq: Execution Msg 268566527 912 4.4022E+10
1 1063 1063 db file sequential read 485 1900503 1
1 1498 1063 PX Deq: Execution Msg 268566527 749 4.4022E+10
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-720663/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE 檢視介紹Oracle
- oracle動態檢視v$,v_$,gv$,gv_$與x$之間的關係Oracle
- MySQL檢視介紹MySql
- 【AWR】Oracle awr相關檢視及體系介紹Oracle
- 簡介oracle檢視Oracle
- 轉:物化檢視(Materialized View)介紹ZedView
- ThinkPHP框架檢視詳細介紹View檢視–模板(九)PHP框架View
- 【TUNE_ORACLE】Oracle檢查點(一)檢查點(Checkpoint)概念介紹Oracle
- MySQL檢視版本號的五種方式介紹MySql
- 機器視覺汽車配件檢測流程介紹視覺
- Linux 檔案內容檢視工具介紹Linux
- SAP ABAP CDS view 檢視的 Replacement 技術介紹View
- 介紹三種檢視MySQL字符集的方法MySql
- RAC:在子查詢使用gv$檢視,有時查詢不出資料
- oracle資料庫dba_hist等檢視中的Delta相關欄位介紹Oracle資料庫
- ORACLE OWI介紹Oracle
- ORACLE ORION介紹Oracle
- oracle VPD介紹Oracle
- Oracle recyclebin介紹Oracle
- ORACLE鎖介紹Oracle
- Oracle ACE 介紹Oracle
- oracle job 介紹Oracle
- Oracle Spatial 介紹Oracle
- MySQL 檢視簡介MySql
- Qt開發技術:圖形檢視框架(一)基本介紹QT框架
- Oracle ADDM 自動診斷監視工具 介紹Oracle
- 檢視、修改oracle字符集,檢視oracle版本Oracle
- 【TUNE_ORACLE】Oracle檢查點(三)增量檢查點四個關鍵引數介紹Oracle
- win10任務檢視怎麼用 win10任務檢視功能詳細介紹Win10
- Oracle DRM原理介紹Oracle
- Oracle ADR介紹Oracle
- Oracle BBED 工具介紹Oracle
- Oracle RAC 概念介紹Oracle
- 【轉】Oracle ASM介紹OracleASM
- ORACLE函式介紹Oracle函式
- ORACLE TSPITR 介紹Oracle
- Oracle dblink介紹Oracle
- Oracle Data Guard 介紹Oracle