Job Creation

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
fcirone
Rank: Estagiário Júnior
Rank: Estagiário Júnior
Posts: 1
Joined: Wed, 06 Jul 2005 11:06 am
Location: São Paulo-SP

Good morning,

I need to run a routine (can be stored procedure) once a month.
I thought of doing this using Job.
But I do not know how to proceed to create a job.
Can anyone give me another suggestion, or some tips for creating?

Thanks,
Fabio Cirone
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

There goes a small example:

Select all

 
VARIABLE jobno NUMBER 
BEGIN 
  DBMS_JOB.SUBMIT ( 
      :jobno, 
      'BEGIN sua_procedure; END;', 
      sysdate, 
      'add_months(trunc(sysdate,''mm''),1)');   --> vai rodar sempre no dia primeiro! 
END;
You can consult your Job doing select on user_jobs.
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest