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

Home -> Community -> Usenet -> c.d.o.server -> Re: Implied commit in dbms_sql...?

Re: Implied commit in dbms_sql...?

From: jonwat <jonwaterhouse_at_mail.gov.nf.ca>
Date: 29 Aug 2006 08:59:23 -0700
Message-ID: <1156867163.121037.237430@p79g2000cwp.googlegroups.com>


Implied commit happens with DDL only. Up to you to commit DML.

devjnr_at_gmail.com wrote:
> I'm using pl/sql developer and trying to test implied commit that
> dbms_sql should do.
>
> I copied a proc from ora docs like this:
>
> CREATE OR REPLACE PROCEDURE exec(STRING IN varchar2) AS
> cursor_name INTEGER;
> ret INTEGER;
> BEGIN
> cursor_name := DBMS_SQL.OPEN_CURSOR;
>
> DBMS_SQL.PARSE(cursor_name, string, DBMS_SQL.NATIVE);
> ret := DBMS_SQL.EXECUTE(cursor_name);
> DBMS_SQL.CLOSE_CURSOR(cursor_name);
> END;
>
>
> then I try to execute a delete statement on a test table:
>
> begin
> exec('delete from t');
> end;
>
> When I try to select data from table t from another session I still can
> see data...
>
> If I "commit;" from window where I previously executed the proc...rows
> go.
>
> Shouldn't instead be implied this commit?
>
> Is there something that escape to me...
>
> Thx to all.
Received on Tue Aug 29 2006 - 10:59:23 CDT

Original text of this message

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