Oracle Jobs and transaction control
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 6 of 6

Thread: Oracle Jobs and transaction control

  1. #1
    Join Date
    Oct 2006
    Posts
    7

    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 11:12 AM.

  2. #2
    Join Date
    Jan 2007
    Posts
    231
    It will be commited after some time..(if any implicit commit occurs)

  3. #3
    Join Date
    Oct 2006
    Posts
    7

    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 11:13 AM.

  4. #4
    Join Date
    Oct 2006
    Posts
    7
    Can anybody clarify my doubts
    Last edited by davey23uk; 05-11-2007 at 12:14 PM.

  5. #5
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    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.

  6. #6
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    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
  •  


Click Here to Expand Forum to Full Width