variable myjob number;
/
begin
dbms_job.submit(:myjob,'pMovesheetTohistory(2,
2);',trunc(sysdate)+36/24,'trunc(sysdate)+36/24');
end;
/
begin
dbms_job.run(:myjob);
end;
/
Or should I write a program to call my procedure daily, - our system is
prepared to run for a very long time (maybe more than one year..)
Any links or clues are appreciated.
--
Michal Kuratczyk
Sorry, I might not declare the situation clear enough...
We currently have a server program running.. and it called our "logs
manager" daily (12:00), so we can aslo call procedure at the same time
for "table records manager(including move records to history_table and
delete record...)"
So did my first Job active Oracle's Job mechanism? Or Oracle itself has
many system Jobs running, and our newly added Job doesn't infulent it a
lot?
Thanks.
What about running 80 jobs (or more)? Is there maximum number?
> Is there maximum number?
You are safe:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14237/limits004.htm#sthref4187
Job Queue Processes Maximum per instance 1000
Take a look here too:
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/process.htm#sthref1597
--
Michal Kuratczyk
Many thanks!!