Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SET TRANSACTION statement
On Sat, 21 Nov 1998 12:44:16 +0530, Rajesh Bhave
<rajeshb_at_india.hp.com> wrote:
>Hi
>
>Can we have 2 SET TRANSACTION statements for single transaction. If
>yes, then what happens to 1st statement.
You cannot specify multiple SET TRANSACTION statements for a single transaction. A SET TRANSACTION statement can only be issued as the first statement of a transaction. See the "SET TRANSACTION" description in the Oracle8 Server SQL Reference manual.
Transaction set.
SQL> update a set col2 = 1 where col1 = 1; update a set col2 = 1 where col1 = 1
*
ERROR at line 1:
ORA-01456: may not perform insert/delete/update operation inside a
READ ONLY
transaction
SQL> set transaction read write;
set transaction read write
*
ERROR at line 1:
ORA-01453: SET TRANSACTION must be first statement of transaction
Thanks!
Joel
Joel R. Kallman Oracle Government, Education, & Health
Columbus, OH http://govt.us.oracle.com jkallman@us.oracle.com http://www.oracle.com