grant
select on v_$session to portal;
COM VARCHAR2(200);
cursor c1 is select SID,SERIAL# from v$session where status='SNIPED';
BEGIN
FOR
V1 IN C1 LOOP
DBMS_OUTPUT.PUT_LINE
(COM);
/
DECLARE
JOB NUMBER;
BEGIN
DBMS_JOB.SUBMIT(JOB,'PORTALPAY.KILL_SNIPED_SESSION;',SYSDATE,'SYSDATE+6/24');
END;
/