oralce timer

1. Under the jobs, there is a 'dynamic monitoring timer'
2. Add a new one under DBMS_job, and fill in the trigger and timing of the timer. (Write the name of the stored procedure in what and add a semicolon, and the time interval is TRUNC(sysdate,'mi') + 1/ (24*60) one minute). After the addition is successful, the DBMS_job will correspond to a value.
3. Write the corresponding value in DBMS_job to the value under 'Dynamic Monitoring Timer'.
4. Run 'Dynamic Monitoring Timer', no error is reported.
---If you don't need to use the timer, 5. Find a way to execute the stored procedure: begin insert_tb_jgycqk('2017');end;
5. Query the total number of data in the tb_jgycqk table, and there is no increase.
6. Check how the stored procedure is written (the stored procedure needs to be 0 if the ythflag field in the vw_jgycqk table in the dynamic monitoring library is 0)
7. Change the ythflag field of some data in the vw_jgycqk table in the intermediate library to 0 (and Query the year of these data)
8. Execute the stored procedure: begin insert_tb_jgycqk('2017');end;
9. In the dynamic monitoring table tb_jgycqk, there is more data. Description timer
select * from tb_jgycqk where ycid in(391015,391006,391007)

 

 

Notice:

name: write 'dynamic monitoring timer'

action: write the name of the stored procedure

frequency: Writes Daily

Interval : write 1

By minute: write 01

Job class: Written is DEFAULT_JOB_CLASS

Parameter value: Write the number corresponding to DBMS_job.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326172011&siteId=291194637