| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQLPlus seems to autocommit my transaction
EXIT ROLLBACK will do what you want. EXIT COMMIT is actually what happens when you use
EXIT alone. "EXIT with no clauses commits and exits with a value of SUCCESS."
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1009789
Alison
Tim X wrote:
> Sybrand Bakker <gooiditweg_at_nospam.demon.nl> writes:
>
>
>>On 28 Mar 2003 08:35:05 -0800, w_keeling_at_yahoo.com (Will) wrote: >> >> >>>I have auto commit off in SQLPlus >>> >>>When I insert into a table and then quit SQLPlus without issuing a >>>'commit', SQLPlus seems to automatically commit the change. When I go >>>back into SQLPlus I see the change has been made. >>> >>>However, if I insert into the table, check I can see the inserted row >>>and then issue a 'rollback' immediately after, the change is rolled >>>back as I expect. >>> >>>Is SQLPlus supposed to commit on exit even with autocommit switched >>>off (I'm using Oracle 9.2.0.1.0)? >> >> >>Exactly, and moreover it is documented in the sql*plus manual, and it >>has been working that way for more than 15 years. >>
![]() |
![]() |