BEGIN
FOR REC_ IN (select sid,serial# from v$session where username='ABC' AND status='INACTIVE')
LOOP
EXECUTE IMMEDIATE 'alter system kill session ''' || REC_ .sid || ','
|| REC_ .serial# || ''' immediate';
END LOOP;
END;
BEGIN
FOR REC_ IN (select sid,serial# from v$session where username='ABC' AND status='INACTIVE')
LOOP
EXECUTE IMMEDIATE 'alter system kill session ''' || REC_ .sid || ','
|| REC_ .serial# || ''' immediate';
END LOOP;
END;
0 yorum:
Yorum Gönder