We have Oracle 10g 10.2.0 Enterprise Edition on a Redhat Linux box. I am trying to run a bash shell script via a job that will run immediately once only. I entered the following in SQL+ after connecting as SYS/password AS SYSDBA. The PL/SQL block was executed without error. However, when I check for the job (select owner, job_name, enabled from dba_scheduler_jobs it is not in the table. Also, when I try to run the job synchronously I get the error that the job does not exist.
The PL/SQL block is:
BEGIN
dbms_scheduler.create_job
(
job_name => 'LOADNRCUPDATE_JOB',
job_type => 'EXECUTABLE',
job_action => '/opt/controlfiles/uploaded/loadNRCupdate.sh',
repeat_interval => NULL,
enabled => true,
comments => 'Load NRC data update via bash script'
);
END;
/
Any ideas/suggestions would be greatly appreciated.
The PL/SQL block is:
BEGIN
dbms_scheduler.create_job
(
job_name => 'LOADNRCUPDATE_JOB',
job_type => 'EXECUTABLE',
job_action => '/opt/controlfiles/uploaded/loadNRCupdate.sh',
repeat_interval => NULL,
enabled => true,
comments => 'Load NRC data update via bash script'
);
END;
/
Any ideas/suggestions would be greatly appreciated.