-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtable_locks.xml
129 lines (62 loc) · 2.93 KB
/
table_locks.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="UTF-8" ?>
<displays>
<display id="cf15555f-0154-1000-8001-ac190501688c" type="" style="Table" enable="true">
<name><![CDATA[Table Locks]]></name>
<description><![CDATA[Display who and what is locking]]></description>
<tooltip><![CDATA[]]></tooltip>
<drillclass><![CDATA[]]></drillclass>
<CustomValues>
<TYPE><![CDATA[horizontal]]></TYPE>
</CustomValues>
<query>
<sql><![CDATA[SELECT "OWNER", "OBJECT_NAME", "OBJECT_TYPE", "SID", "SERIAL#", "STATUS", "USERNAME", "OSUSER", "MACHINE", "LOCKED_MODE" FROM(
select
c.owner,
c.object_name,
c.object_type,
b.sid,
b.serial#,
b.status,
b.username,
b.osuser,
b.machine,
case a.locked_mode
when 0 then '0 - NONE: lock requested but not yet obtained'
when 1 then '1 - NULL'
when 2 then '2 - ROWS_S (SS): Row Share Lock'
when 3 then '3 - ROW_X (SX): Row Exclusive Table Lock'
when 4 then '4 - SHARE (S): Share Table Lock'
when 5 then '5 - S/ROW-X (SSX): Share Row Exclusive Table Lock'
when 6 then '6 - Exclusive (X): Exclusive Table Lock'
else to_char(a.locked_mode)
end locked_mode
from
gv$locked_object a ,
gv$session b,
dba_objects c
where
b.sid = a.session_id
and
a.object_id = c.object_id
)]]></sql>
</query>
<pdf version="VERSION_1_7" compression="CONTENT">
<docproperty title="" author="" subject="" keywords="" />
<cell toppadding="2" bottompadding="2" leftpadding="2" rightpadding="2" horizontalalign="LEFT" verticalalign="TOP" wrap="true" />
<column>
<heading font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="FIRST_PAGE" />
<footing font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="NONE" />
<blob blob="NONE" zip="false" />
</column>
<table font="Times New Roman" size="10" style="NORMAL" color="-16777216" userowshading="false" oddrowshading="-1" evenrowshading="-1" showborders="true" spacingbefore="12" spacingafter="12" horizontalalign="LEFT" />
<header enable="false" generatedate="false">
<data>
null </data>
</header>
<footer enable="false" generatedate="false">
<data value="null" />
</footer>
<pagesetup papersize="LETTER" orientation="1" measurement="in" margintop="1.0" marginbottom="1.0" marginleft="1.0" marginright="1.0" />
</pdf>
</display>
</displays>