I have a job running every minute .What happens to the transaction that is being running at the end of every minute.Does commit is automatically done or is it rollbacked.
Printable View
I have a job running every minute .What happens to the transaction that is being running at the end of every minute.Does commit is automatically done or is it rollbacked.
It will be commited after some time..(if any implicit commit occurs)
I didnt get you:
suppose the following code is in a proc that runs every minute-
declare
begin
stmt 1;
stmt 2;
stmt 3;
stmt 4;
commit;
exception
...
end;
at the end of a minute say stmt 3 was running.What will be the statsu of stmt 2,stmt2 and stmt3.Will they be rolled back or commited.
Can anybody clarify my doubts
Committed.Quote:
at the end of a minute say stmt 3 was running.What will be the statsu of stmt 2,stmt2 and stmt3.Will they be rolled back or commited.
mmhh... your scenario is not clear to me.
Do you allow your job to run longer than a minute?
meaning...
If your job started at 13:24:00 lasts for 1min21sec,
Is it fare to assume at 13:25:01 you have two incarnations of your job running concurrently?
Is that a good description of your scenario
OR
Your 13:25:00 job somehow goes there and kills the one initiated at 13:24:00
?