5분 단위로 select 쿼리를 날린다.
check.sql
begin
dbms_job.submit(:jobno,'begin declare aaa number := 0; begin select 1 into aaa from dual@aaa; end; end;',sysdate,'sysdate + 5/24/60');
end;
/
sqlplus test/test
@check
print jobno
111 -- jobno 확인
exec dbms_job.run(jobno);
commit;
exec dbms_job.run(jobno); -- 다시시작
exec dbms_job.broken(jobno, TRUE); -- disable
exec dbms_job.remove(jobno); -- 삭제
참고 url : http://www.oracleclub.com/article/32789