Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: set autocommit off;

Re: set autocommit off;

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 02 Aug 2006 10:11:36 -0700
Message-ID: <1154538696.856949@bubbleator.drizzle.com>


mike7411_at_gmail.com wrote:
> Anyone know why Oracle won't let me do this
>
> set autocommit off;
>
> in a PL/SQL procedure?
>
> It won't take this:
>
> create or replace procedure addname
> as
> begin
> set autocommit off;
> insert into test values('testname');
> commit;
> end;

Autocommit has nothing to do with the database. The database never commits.

Applications commit.

SET AUTOCOMMIT OFF is an instruction to SQL*Plus ... not the database.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Wed Aug 02 2006 - 12:11:36 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US