Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: CREATE SEQUENCE commits transaction
Gert Brinkmann <gbrinkmann_at_dimedis.de> wrote in message news:<3C7F63D4.D96A40B0_at_dimedis.de>...
> Hello,
>
> i have found that the CREATE SEQUENCE statement commits the current
> transaction. Is this behaviour correct?
>
> I understand that a sequence is not handled inside a transaction to
> avoid lockings, but it should not commit a running transaction, isn't
> it!?
>
> Gert
Create sequence is DDL (Data Definition Language)
*ALL* DDL statements are automatically committed to avoid
long-existing locks on the datadictionary. Hence it definitely should
commit a transaction.
If you didn't issue a commit yourself before issuing the create
sequence, the transaction still exists and your create sequence
commits the transaction.
This is a WAD (Working As Defined/Desired)
Regards
Sybrand Bakker
Senior Oracle DBA
Received on Fri Mar 01 2002 - 08:45:39 CST
![]() |
![]() |