Skip to content

Commit 7a5f9d4

Browse files
authored
Update parallel-query-sessions.sql
1 parent e563c1d commit 7a5f9d4

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

parallel-query-sessions.sql

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
3-
set echo on
42
-- Parent
3+
-- http://www.dba-oracle.com/t_v$_px_session.htm
54

65
prompt Parent Sessions
6+
77
WITH px_session AS (
88
SELECT
99
qcsid,
@@ -35,52 +35,31 @@ AND
3535
sql.child_number = s.sql_child_number);
3636

3737
-- Child
38+
-- http://www.dba-oracle.com/t_gv$px_session.htm
39+
3840
prompt Child Sessions
3941
select
40-
4142
ps.qcsid,
42-
4343
ps.sid,
44-
4544
p.spid,
46-
4745
ps.inst_id,
48-
4946
ps.degree,
50-
5147
ps.req_degree
52-
5348
from
5449
For full scripts, download the Oracle script collection.
55-
5650
gv$px_session ps
57-
5851
join
59-
6052
gv$session s
61-
6253
on ps.sid=s.sid
63-
6454
and
65-
6655
ps.inst_id=s.inst_id
67-
6856
join
69-
7057
gv$process p
71-
7258
on p.addr=s.paddr
73-
7459
and
75-
7660
p.inst_id=s.inst_id
77-
7861
order by
79-
8062
qcsid,
81-
8263
server_group desc,
83-
8464
inst_id,
85-
8665
sid;

0 commit comments

Comments
 (0)