|
原帖由 oradbHome 于 2010-5-26 19:40 发表 ![]()
How I can find out the remote Database session sid ? User db link username and session status is active can to judge the Remote Database session SID ?
See message #2 of http://www.itpub.net/thread-1307296-1-1.html
Also, run this SQL in both local and remote DBs as sys:
select /*+ ordered */ substr(s.ksusemnm,1,10)||'-'|| substr(s.ksusepid,1,10) origin, substr(g.k2gtitid_ora,1,35) gtxid, substr(s.indx,1,4)||'.'|| substr(s.ksuseser,1,5) lsession, s.ksuudlna username, substr(decode(bitand(ksuseidl,11), 1,'ACTIVE', 0, decode( bitand(ksuseflg,4096) , 0,'INACTIVE','CACHED'), 2,'SNIPED', 3,'SNIPED', 'KILLED'),1,1) status, e.kslednam waiting
from x$k2gte g, x$ktcxb t, x$ksuse s, x$ksled e
where g.k2gtdxcb=t.ktcxbxba and g.k2gtdses=t.ktcxbses and s.addr=g.k2gtdses and e.indx=s.ksuseopc;
(Original author: an Oracle employee; publicized by Mark Bobak) |
|