- 最后登录
- 2023-8-16
- 在线时间
- 1686 小时
- 威望
- 2135
- 金钱
- 50532
- 注册时间
- 2011-10-12
- 阅读权限
- 200
- 帖子
- 5207
- 精华
- 39
- 积分
- 2135
- UID
- 2
|
2#
发表于 2013-8-29 13:30:14
GV$LOCK =>
select USERENV('Instance'),
laddr,
kaddr,
saddr,
raddr,
lmode,
request,
ctime,
block,
con_id
from v$_lock1
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktadm
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktatrfil
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktatrfsl
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktatl
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktstusc
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktstuss
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
addr,
ksqlkadr,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktstusg
where bitand(kssobflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
union all
select inst_id,
ktcxbxba,
ktcxblkp,
ksqlkses,
ksqlkres,
ksqlkmod,
ksqlkreq,
ksqlkctim,
ksqlklblk,
con_id
from x$ktcxb
where bitand(ksspaflg, 1) != 0
and (ksqlkmod != 0 or ksqlkreq != 0)
|
|