-
Oracle Jobs and transaction control
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.
Last edited by davey23uk; 05-10-2007 at 10:12 AM.
-
It will be commited after some time..(if any implicit commit occurs)
-
Query Expalined Further
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.
Last edited by davey23uk; 05-10-2007 at 10:13 AM.
-
Can anybody clarify my doubts
Last edited by davey23uk; 05-11-2007 at 11:14 AM.
-
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.
Committed.
-
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
?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|