ÔõÑùÉó²éoracle׼ʱʹÃü״̬¼Í¼
ÒªÉó²é oracle ׼ʱʹÃü״̬¼Í¼£¬¿ÉÅÌÎÊ£ºdba_scheduler_jobs ±í£¬»ñȡʹÃüÃû³Æ¡¢ÊÇ·ñÆôÓá¢ÉÏ´Î×îÏȺÍÔËÐÐʱ¼ä¡¢Ï´ÎÔËÐÐʱ¼ä£»dba_scheduler_job_run_details ±í£¬»ñȡʹÃüÃû³Æ¡¢×îÏÈʱ¼ä¡¢¿¢ÊÂʱ¼ä¡¢×´Ì¬¡¢²Ù×÷¡¢×ÓÃû³Æ£¨ÈôÊÇÓУ©¡£
ÔõÑùÉó²é Oracle ׼ʱʹÃü״̬¼Í¼
Oracle Êý¾Ý¿âÖеÄ׼ʱʹÃü¿ÉÒÔ×ÊÖú×Ô¶¯»¯°´ÆÚÖ´ÐеÄ×÷Òµ£¬ÏàʶÆä״̬¼Í¼ÖÁ¹ØÖ÷Òª¡£
Éó²éʹÃü״̬
1. ÅÌÎÊ dba_scheduler_jobs ±í
SELECT job_name, enabled, last_start_date, last_run_date, next_run_date FROM dba_scheduler_jobs;
µÇ¼ºó¸´ÖÆ
2. ÅÌÎÊ dba_scheduler_job_run_details ±í
SELECT job_name, start_date, end_date, status, operation, job_subname FROM dba_scheduler_job_run_details;
µÇ¼ºó¸´ÖÆ
½â¶ÁÅÌÎÊЧ¹û
job_name: ׼ʱʹÃüÃû³Æ
enabled: ʹÃüÊÇ·ñÆôÓÃ
last_start_date: ʹÃüÉÏ´Î×îÏÈÔËÐеÄÈÕÆÚºÍʱ¼ä
last_run_date: ʹÃüÉÏ´ÎÀÖ³ÉÍê³ÉµÄÈÕÆÚºÍʱ¼ä
next_run_date: ʹÃüÏ´ÎÔ¤¶¨ÔËÐеÄÈÕÆÚºÍʱ¼ä
start_date: ʹÃü±¾´ÎÔËÐеÄ×îÏÈÈÕÆÚºÍʱ¼ä
end_date: ʹÃü±¾´ÎÔËÐеĿ¢ÊÂÈÕÆÚºÍʱ¼ä
status: ʹÃü±¾´ÎÔËÐеÄ״̬£¬¿ÉÄÜֵΪ£ºSUCCESS¡¢FAILED¡¢RUNNING¡¢QUEUED¡¢DISABLED
operation: ʹÃü±¾´ÎÔËÐеIJÙ×÷£¬¿ÉÄÜֵΪ£ºEXECUTE¡¢RESTART
job_subname: ʹÃüµÄ×ÓÃû³Æ£¨ÈôÊÇÓУ©
×¢ÖØ£º
½ö¾ßÓÐÊʵ±È¨ÏÞµÄÓû§²Å»ªÉó²éÕâЩ±í¡£
ÈôÊÇʹÃü´¦ÓÚÒѽûÓÃ״̬£¬ÔòÆä״̬Ϊ DISABLED£¬²»»áÔÚ dba_scheduler_job_run_details ±íÖÐÏÔʾ¡£
ÒÔÉϾÍÊÇÔõÑùÉó²éoracle׼ʱʹÃü״̬¼Í¼µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡