dba:rac_parallel_query
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
dba:rac_parallel_query [2010/10/05 11:40] – angelegt gpipperr | dba:rac_parallel_query [2010/10/05 11:44] – gpipperr | ||
---|---|---|---|
Zeile 16: | Zeile 16: | ||
| | ||
| | ||
- | < | + | </code> |
+ | Script für die Analyse: | ||
+ | <code parallel.sql> | ||
+ | col username for a12 | ||
+ | col "QC SID" for A6 | ||
+ | col " | ||
+ | col " | ||
+ | col "Req. DOP" for 9999 | ||
+ | col " | ||
+ | col " | ||
+ | col "Slave INST" for A9 | ||
+ | col "QC INST" for A6 | ||
+ | |||
+ | set pages 300 lines 300 | ||
+ | |||
+ | col wait_event format a30 | ||
+ | |||
+ | select | ||
+ | decode(px.qcinst_id, | ||
+ | ' - ' | ||
+ | length(pp.SERVER_NAME)-4, | ||
+ | decode(px.qcinst_id, | ||
+ | to_char( px.server_set) " | ||
+ | to_char(s.sid) " | ||
+ | to_char(px.inst_id) "Slave INST", | ||
+ | decode(sw.state,' | ||
+ | case sw.state WHEN ' | ||
+ | decode(px.qcinst_id, | ||
+ | to_char(px.qcinst_id) "QC INST", | ||
+ | px.req_degree "Req. DOP", | ||
+ | px.degree " | ||
+ | from gv$px_session px, | ||
+ | gv$session s , | ||
+ | gv$px_process pp, | ||
+ | gv$session_wait sw | ||
+ | where px.sid=s.sid (+) | ||
+ | and px.serial# | ||
+ | and px.inst_id = s.inst_id(+) | ||
+ | and px.sid = pp.sid (+) | ||
+ | and px.serial# | ||
+ | and sw.sid = s.sid | ||
+ | and sw.inst_id = s.inst_id | ||
+ | order by | ||
+ | decode(px.QCINST_ID, | ||
+ | px.QCSID, | ||
+ | decode(px.SERVER_GROUP, | ||
+ | px.SERVER_SET, | ||
+ | px.INST_ID | ||
+ | / | ||
+ | |||
+ | set pages 300 lines 300 | ||
+ | col wait_event format a30 | ||
+ | |||
+ | select | ||
+ | sw.SID as RCVSID, | ||
+ | decode(pp.server_name, | ||
+ | NULL, 'A QC', | ||
+ | | ||
+ | sw.inst_id as RCVRINST, | ||
+ | case sw.state WHEN ' | ||
+ | decode(bitand(p1, | ||
+ | | ||
+ | ' | ||
+ | bitand(p1, 16711680) - 65535 as SNDRINST, | ||
+ | decode(bitand(p1, | ||
+ | | ||
+ | | ||
+ | sid | ||
+ | from | ||
+ | gv$px_process | ||
+ | where | ||
+ | server_name = ' | ||
+ | inst_id = bitand(sw.p1, | ||
+ | ) as SNDRSID, | ||
+ | | ||
+ | from | ||
+ | gv$session_wait sw, | ||
+ | gv$px_process pp, | ||
+ | gv$px_session ps | ||
+ | where | ||
+ | sw.sid = pp.sid (+) and | ||
+ | sw.inst_id = pp.inst_id (+) and | ||
+ | sw.sid = ps.sid (+) and | ||
+ | sw.inst_id = ps.inst_id (+) and | ||
+ | p1text | ||
+ | bitand(p1, 268435456) = 268435456 | ||
+ | order by | ||
+ | decode(ps.QCINST_ID, | ||
+ | ps.QCSID, | ||
+ | decode(ps.SERVER_GROUP, | ||
+ | ps.SERVER_SET, | ||
+ | ps.INST_ID | ||
+ | / | ||
+ | |||
+ | set pages 300 lines 300 | ||
+ | |||
+ | col " | ||
+ | col " | ||
+ | col " | ||
+ | col "Slave INST" for A9 | ||
+ | col "QC SID" for A6 | ||
+ | col "QC INST" for A6 | ||
+ | col " | ||
+ | col " | ||
+ | |||
+ | select | ||
+ | decode(px.qcinst_id, | ||
+ | ' - ' | ||
+ | length(pp.SERVER_NAME)-4, | ||
+ | decode(px.qcinst_id, | ||
+ | to_char( px.server_set) " | ||
+ | to_char(px.inst_id) "Slave INST", | ||
+ | substr(opname, | ||
+ | substr(target, | ||
+ | sofar, | ||
+ | totalwork, | ||
+ | units, | ||
+ | start_time, | ||
+ | timestamp, | ||
+ | decode(px.qcinst_id, | ||
+ | to_char(px.qcinst_id) "QC INST" | ||
+ | from gv$px_session px, | ||
+ | gv$px_process pp, | ||
+ | gv$session_longops s | ||
+ | where px.sid=s.sid | ||
+ | and px.serial# | ||
+ | and px.inst_id = s.inst_id | ||
+ | and px.sid = pp.sid (+) | ||
+ | and px.serial# | ||
+ | order by | ||
+ | decode(px.QCINST_ID, | ||
+ | px.QCSID, | ||
+ | decode(px.SERVER_GROUP, | ||
+ | px.SERVER_SET, | ||
+ | px.INST_ID | ||
+ | / | ||
+ | </code> |
dba/rac_parallel_query.txt · Zuletzt geändert: 2014/04/02 12:56 von gpipperr