DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Is COMMIT=ROLLBACK ???

  1. #1
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688

    Angry Is COMMIT=ROLLBACK ???

    Hi, guys after upgrading Oracle (RedHat 6.2) 8.1.7.0.1 to 8.1.7.3 we have got very strange problem: when I specify commit rollback is occured, you can see bellow.
    Code:
    SVRMGR>
    select to_char(nextattempt, 'yyyy-mm-dd HH24:Mi:ss') from scheduledcalls where schedule_id = 3;
    
    SVRMGR> TO_CHAR(NEXTATTEMPT 
    ------------------- 
    2003-04-02 16:01:10 
    1 row selected.
    
    SVRMGR> update scheduledcalls set nextattempt = nextattempt + (retryinterval/86400) where schedule_id = 3;
    
    SVRMGR> 1 row processed.
    
    SVRMGR> select to_char(nextattempt, 'yyyy-mm-dd HH24:Mi:ss') from scheduledcalls where schedule_id = 3;
    TO_CHAR(NEXTATTEMPT 
    ------------------- 
    2003-04-02 16:01:25 
    1 row selected.
    
    SVRMGR> commit;
    Statement processed.
    
    SVRMGR> select to_char(nextattempt, 'yyyy-mm-dd HH24:Mi:ss') from scheduledcalls where schedule_id = 3;
    TO_CHAR(NEXTATTEMPT 
    ------------------- 
    2003-04-02 16:01:10 
    1 row selected.
    There is no job running against of this table, there is no trigger on this table.
    The same thing is occured for any column on this table. I created a new table and commit worked correctly on it.
    Any ideas about it are very welcome.
    Regards,
    Best wishes!
    Dmitri

  2. #2
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    select TRIGGER_NAME from dba_triggers where TABLE_NAME=upper('scheduledcalls');

    Result??
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  3. #3
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    Originally posted by abhaysk
    select TRIGGER_NAME from dba_triggers where TABLE_NAME=upper('scheduledcalls');
    Result??
    Result is 0 rows returned.

    There is no job running against of this table, there is no trigger on this table, there is no other session which might reset values.
    Even if there would be a trigger, it could not make such result.
    Best wishes!
    Dmitri

  4. #4
    Join Date
    Jan 2000
    Location
    Chester, England.
    Posts
    818
    Why does it not say 'Commit complete'?

    'Statement processed' implies something other than a commit is happening. Is there any sort of environment setting or parameter that can switch the explicit commit off in SQL*Plus? So that the statement is processed but no commit takes place?

    Try some DDL after the UPDATE and see if that commits?

    Anyone?

  5. #5
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    This is how SERVER MANAGER works, it says that 'Statement processed.'.
    SQL/Plus rolls back modification as well after 'commit' specified.
    Tried to make DDL, result is the same (modifications was rolled back) as I would specify 'commit'.
    Thanks
    Best wishes!
    Dmitri

  6. #6
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Try writing PL/SQl...

    Insert some values into the table and commit;

    Try capturing the errors if any..in exception part..

    Lest see if atleast here errors are captured.


    also jus give a try with auto commit on


    Abhay.
    Last edited by abhaysk; 04-11-2003 at 07:20 AM.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  7. #7
    Join Date
    Jan 2002
    Location
    Up s**t creek
    Posts
    1,525
    Is this occuring on every table or just the one in your example? Also are you sure you have no other process (prehaps an external job) which could be reseting the value?

    It might be worth adding a very simple trigger to the table (or activate auditing) to see when update occur.

    Regards
    Jim
    Oracle Certified Professional
    "Build your reputation by helping other people build theirs."

    "Sarcasm may be the lowest form of wit but its still funny"

    Click HERE to vist my website!

  8. #8
    Join Date
    Mar 2001
    Location
    Ireland/Dublin
    Posts
    688
    yes, good ideas.
    I'll try, thanks
    Best wishes!
    Dmitri

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