您好,登錄后才能下訂單哦!
查看所有job
select from dba_jobs;
查看正在運行的job
select from dba_jobs_running;
select job,log_user,priv_user,schema_user,BROKEN from dba_jobs where job=545;
查看數據庫建立的回話情況
select sid,serial#,username,program,machine,status
from v$session;
查看對應sid的sql_id
select * from v$session where sid=2272 or sid=327;
知道sql_id后查看sql語句
select SQL_TEXT from v$sql where sql_id='3f18ygbqg41mw';
給MESPRD賦權
grant execute on DBMS_WORKLOAD_REPOSITORY to MESPRD;
kill會話
alter system kill session 'sid,serial#';
alter system kill session '327,8133';
查看進程的spid
select spid, program from v$process
where program!= 'PSEUDO'
and addr not in (select paddr from v$session)
and addr not in (select paddr from v$bgprocess)
and addr not in (select paddr from v$shared_server);
!ps -ef|grep spid|grep -v grep;
查看進程的spid
SELECT s.username,s.status,
x.ADDR,x.KSLLAPSC,x.KSLLAPSN,x.KSLLASPO,x.KSLLID1R,x.KSLLRTYP,
decode(bitand (x.ksuprflg,2),0,null,1)
FROM x$ksupr x,v$session s
WHERE s.paddr(+)=x.addr
and bitand(ksspaflg,1)!=0;
查看進程的spid
select spid,program from v$process where pid in(327,2272);
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。