Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: DBMS_JOB : Can submit but does not execute
Also as a practice, I always submit sysdate + 5 seconds instead of sysdate.
Raj
-----Original Message-----
Sent: Wednesday, February 19, 2003 7:34 AM
To: Multiple recipients of list ORACLE-L
Make sure job_queue_processes > 0. Also check job_queue_interval.
Jay Hostetter
Oracle DBA
D. & E. Communications
Ephrata, PA USA
>>> clchan_at_nie.edu.sg 02/18/03 08:28PM >>> Hi Gurus,
I use the following command to execute immediately.
Connected.
SQL> BEGIN
2 DBMS_JOB.RUN(1);
3 END;
4 /
PL/SQL procedure successfully completed.
--
Regds,
Catherine
-----Original Message----- From: CHAN Chor Ling Catherine (CSC) Sent: Wednesday, February 19, 2003 9:15 AM To: 'ORACLE-L_at_fatcity.com' Subject: DBMS_JOB : Can submit but does not execute Hi Gurus, I have submitted a job but it does not execute. Why? Doesthe owner require any privileges ? However, I can use DBMS_JOB.CHANGE command to execute immediately. I would like the job to execute on a daily basis. Any advice ? TIA
-- -- Submit a job -- 1 DECLARE 2 job BINARY_INTEGER; 3 BEGIN 4 DBMS_JOB.SUBMIT(job,'PROCEDURE_NAME;',SYSDATE,'SYSDATE+1'); 5 DBMS_OUTPUT.PUT_LINE(TO_CHAR(JOB)); 6* END; SQL> / 1 PL/SQL procedure successfully completed. SQL> COMMIT; Commit complete. -- -- Execute the job -- 1 begin 2 DBMS_JOB.CHANGE(1, 3 '
4* END; SQL> / PL/SQL procedure successfully completed. SQL> COMMIT; Commit complete. -- -- Check whether the job is submitted -- SQL> SELECT * FROM DBA_JOBS JOB LOG_USER PRIV_USER --------- ------------------------------
------------------------------
SCHEMA_USER LAST_DATE LAST_SEC THIS_DATE THIS_SEC NEXT_DATE NEXT_SEC TOTAL_TIME B ------------------------------ --------- -------- ---------
-------- --------- -------- ---------- -
INTERVAL
----------------------------------------------------------------------------
------------------------
FAILURES --------- WHAT
----------------------------------------------------------------------------
------------------------
NLS_ENV
----------------------------------------------------------------------------
------------------------
MISC_ENV
Regds, Catherine
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the
use of the individual or entity to which they are addressed and may contain
information that is privileged, proprietary and confidential. If you are not
the intended recipient, you may not use, copy or disclose to anyone the
message or any information contained in the message. If you have received
this communication in error, please notify the sender and delete this e-mail
message. The contents do not represent the opinion of D&E except to the
extent that it relates to their official business.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jay Hostetter
INET: jhostetter_at_decommunications.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Jamadagni, Rajendra
INET: Rajendra.Jamadagni_at_espn.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting servicesto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |