Вы находитесь на странице: 1из 1

------------------------------------------------------------------------------------- Kill unintended or time consuming PL/SQL Package/procedure from the BACKEND.

--- PL/SQL procedure run from application that need to be killed


--------------------------------------------------------------------------------------Find PL/SQL object_id from the table All_objects
select * from all_objects;
select * from v$session where USERNAME='NAME';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
select * from v$session
where osuser = 'username'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
select sid, serial#, status from v$session where USERNAME='NAME';
ALTER SYSTEM KILL SESSION 'SID,SERIAL#';
find out from v$session where the plsql entry object id matched with the procedu
re and then kill session.
--select Exec DBMS_JOB.BROKEN(j.job ,TRUE);
from dba_jobs dj,
dba_jobs_running djr
where dj.job = djr.job;

Вам также может понравиться