1.启动资源计划 alter system set resource_limit=true scope=spfile; 2.设置非活动回话十五分钟断开,释放资源 alter profile default limit idle_time 15; 3. 清楚非活动的进程 (没10分钟发送检测包) $ORACLE_HOME/network/admin 添加 SQLNET.EXPIRE_TIME=10; SELECT SID, SERIAL#,MODULE, STATUS FROM V$SESSIO
创建一个测试表和一个存储过程: create table a(a date); create or replace procedure test as begin insert into a values(sysdate); end; 定时任务样板: declare job1 number; begin dbms_job.submit(job1, what => 'test;', next_date => sysdate, interval => 'sysdate+1/(24*60*60