数据库
参数 show parameter job
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
job_queue_interval integer 10
job_queue_processes integer 10
1.建表
SQL> create table a(a date);表已创建。
2.创建一个自定义过程SQL> create or replace procedure test as
2 begin
3 insert into a values(sysdate);
4 end;
5 /
3.创建JOB
VARIABLE jobno number;
begin
DBMS_JOB.SUBMIT(:jobno, 'test();',sysdate,'sysdate+1/24*60');
commit;
end;
结果:
SELECT job, next_date, next_sec, failures, broken FROM user_jobs;
JOB NEXT_DATE NEXT_SEC FAILURES B
---------- ---------- ---------------- ---------- -
1 15-10月-04 22:46:27 0 N不能按时运行???
参数 show parameter job
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
job_queue_interval integer 10
job_queue_processes integer 10
1.建表
SQL> create table a(a date);表已创建。
2.创建一个自定义过程SQL> create or replace procedure test as
2 begin
3 insert into a values(sysdate);
4 end;
5 /
3.创建JOB
VARIABLE jobno number;
begin
DBMS_JOB.SUBMIT(:jobno, 'test();',sysdate,'sysdate+1/24*60');
commit;
end;
结果:
SELECT job, next_date, next_sec, failures, broken FROM user_jobs;
JOB NEXT_DATE NEXT_SEC FAILURES B
---------- ---------- ---------------- ---------- -
1 15-10月-04 22:46:27 0 N不能按时运行???
解决方案 »
- Oracle 中 查询IP地址的SQL语句,实在写得晕了
- 谢谢失踪的月亮。ora-00904 在线等待
- 这个sql 怎么优化,难道oracle 比sqlserver差??
- PL/ SQL 里的中文 乱码了 怎么解决 ?
- oracle11g和oracle10g的区别
- 请教select tt,0,aa from……中的 0是什么意识呀?
- 请问Unix下的oracle7中的form、Menu和proc是否能移植到AIX5L oracle9i下?
- 数据库shutdown时提示“仍有dispatcher,不能关闭数据库”,什么原因?
- oracle8.0.5+win2000,回滚段共有12个,但是只有6个可以自动ONLINE,怎么让它其它的自动ONLINE????
- 如何倒数据?
- oracle 访问MS SQL Server的网关配置
- 动态sql中的字符的问题
有区别什么啊
JOB NEXT_DATE NEXT_SEC FAILURES B
---------- ---------- ---------------- ---------- -
1 15-10月-04 22:46:27 0 N
2 15-10月-04 23:39:38 0 N
有区别什么啊
--过程没有参数的,就不要加括号.