Error message in oracle scheduler [message #550558] |
Tue, 10 April 2012 06:50 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi All,
I want to create a schedule as below. But it shows error message which i cant understand.
begin
DBMS_SCHEDULER.CREATE_jOB(
job_name => 'Alert_monitor',
job_type => 'Stored_Procedure',
job_action => 'alertmon_email_send_proc',
start_date => '10-Apr-12 2.00.00 PM',
repeat_interval => 'FREQ=hourly;interval=4',
enabled => 'true',
comments => 'This is to server alert message');
end;
Here is the error message.
Error at line 1
ORA-06550: line 2, column 1:
PLS-00306: wrong number or types of arguments in call to 'CREATE_JOB'
ORA-06550: line 2, column 1:
PL/SQL: Statement ignored
Kindly help me.
Regards
Muktha
|
|
|
|
Re: Error message in oracle scheduler [message #550566 is a reply to message #550560] |
Tue, 10 April 2012 07:28 |
muktha_22
Messages: 527 Registered: December 2009
|
Senior Member |
|
|
Hi Michel,
Thanks for the advice, But one correction.
Even though START_DATE is a DATE data type. we should enclose them inside the single quote.
Yes, ofcourse i did mistake in the case of ENABLED.
Thanks and Regards
Muktha
|
|
|
|