database - Creating event based job/scheduler in oracle DB -


i have oracle trigger acts after insert, update or delete on table1 , updates price column/value on table2 based on dates gets on table1.

only current price (the price on current date) needs updated on table2. example insert record on table1 future date between 28/01/2016 30/01/2016. need price updated on table2 not until 28/01/2106. how can functionality happen automatically.

submit dbms job run daily.. write procedure example below scan , apply channges done today . , call through job.

exec dbms_job.submit(:outjobno, 'check_price_changes;', trunc(sysdate)+1, 'trunc(sysdate)+1'); -- run everyday nightly. 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -