1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
| DROP PROCEDURE pl1_proc
Procedure dropped
DROP TABLE pl1_tab
Table dropped
CREATE TABLE pl1_tab
(d DATE)
Table created
CREATE OR REPLACE PROCEDURE pl1_proc
AS
BEGIN
INSERT INTO pl1_tab VALUES (sysdate);
COMMIT;
END;
Procedure created
BEGIN
dbms_job.remove(1);
dbms_job.isubmit(1, 'pl1_proc();', sysdate,'sysdate+1');
commit;
end;
PL/SQL procedure successfully completed
COL what FOR A30
SELECT TO_CHAR(sysdate,'DDMMYYYY HH24:MI:SS') FROM user_jobs
TO_CHAR(SYSDATE,'DDMMYYYYHH24:
------------------------------
23012006 17:39:44
1 row selected
SELECT job,what,broken,failures FROM user_jobs
JOB WHAT BROKEN FAILURES
--- ------------------------------ ------ --------
1 pl1_proc(); N
1 row selected
begin
dbms_lock.sleep(1);
end;
PL/SQL procedure successfully completed
SELECT TO_CHAR(d,'DDMMYYYY HH24:MI:SS') FROM pl1_tab
0 rows selected
begin
dbms_lock.sleep(1);
end;
PL/SQL procedure successfully completed
SELECT TO_CHAR(d,'DDMMYYYY HH24:MI:SS') FROM pl1_tab
0 rows selected
begin
dbms_lock.sleep(1);
end;
PL/SQL procedure successfully completed
SELECT TO_CHAR(d,'DDMMYYYY HH24:MI:SS') FROM pl1_tab
0 rows selected
begin
dbms_lock.sleep(1);
end;
PL/SQL procedure successfully completed
SELECT TO_CHAR(d,'DDMMYYYY HH24:MI:SS') FROM pl1_tab
0 rows selected |
Partager