我有一个 OEM 工作挂了几天,不幸的是没有启用日志记录,所以我想知道如何解决这个问题?
DECLARE
CHECK DATE;
BEGIN
CHECK := NULL;
PROCESS_MAIL_TOTAL(
CHECK => CHECK
);
END;
PROCESS_MAIL_TOTAL 是 PROCESS_MAIL_JOB OEM 作业中使用的程序。
create or replace PROCEDURE PROCESS_MAIL_TOTAL
(
CHECK IN DATE )
AS
M_CHECK DATE;
M_DATE_FORMAT VARCHAR2(20);
BEGIN
M_DATE_FORMAT := 'YYYY-MM-DD';
IF ( CHECK IS NULL ) THEN
M_CHECK := to_date(TO_CHAR(sysdate - 1, M_DATE_FORMAT), M_DATE_FORMAT);
ELSE
M_CHECK := to_date(TO_CHAR(CHECK, M_DATE_FORMAT), M_DATE_FORMAT);
END IF;
DELETE
FROM MAIL_TABLE
WHERE mail_process_dt = M_CHECK;
INSERT INTO MAIL_TABLE
SELECT COUNT(*) total
FROM MAILBOX
WHERE MESSAGE LIKE '%Invalid%';
COMMIT;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Its Broke!');
END PROCESS_MAIL_TOTAL;
OEM 错误:
当我尝试运行挂起的工作时:
java.sql.SQLException: ORA-27492: unable to run job "PROCESS_MAIL_JOB": scheduler unavailable Check the log/trace file for more Details