File tree Expand file tree Collapse file tree 1 file changed +4
-25
lines changed Expand file tree Collapse file tree 1 file changed +4
-25
lines changed Original file line number Diff line number Diff line change 1
1
2
-
3
- set echo on
4
2
-- Parent
3
+ -- http://www.dba-oracle.com/t_v$_px_session.htm
5
4
6
5
prompt Parent Sessions
6
+
7
7
WITH px_session AS (
8
8
SELECT
9
9
qcsid,
35
35
sql .child_number = s .sql_child_number );
36
36
37
37
-- Child
38
+ -- http://www.dba-oracle.com/t_gv$px_session.htm
39
+
38
40
prompt Child Sessions
39
41
select
40
-
41
42
ps .qcsid ,
42
-
43
43
ps .sid ,
44
-
45
44
p .spid ,
46
-
47
45
ps .inst_id ,
48
-
49
46
ps .degree ,
50
-
51
47
ps .req_degree
52
-
53
48
from
54
49
For full scripts, download the Oracle script collection.
55
-
56
50
gv$px_session ps
57
-
58
51
join
59
-
60
52
gv$session s
61
-
62
53
on ps .sid = s .sid
63
-
64
54
and
65
-
66
55
ps .inst_id = s .inst_id
67
-
68
56
join
69
-
70
57
gv$process p
71
-
72
58
on p .addr = s .paddr
73
-
74
59
and
75
-
76
60
p .inst_id = s .inst_id
77
-
78
61
order by
79
-
80
62
qcsid,
81
-
82
63
server_group desc ,
83
-
84
64
inst_id,
85
-
86
65
sid;
You can’t perform that action at this time.
0 commit comments