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: Sequence/Trigger problem

Re: Sequence/Trigger problem

From: Niall Litchfield <niall.litchfield_at_dial.pipex.com>
Date: Thu, 31 Oct 2002 13:28:39 -0000
Message-ID: <3dc13003$0$1289$cc9e4d1f@news.dial.pipex.com>


"Volker Schmid" <Info_NoSpam_at_Inspirant.de> wrote in message news:app0k8$773$1_at_news.online.de...
> Hi Alan, Dirk,
>
> What if I use:
>
> CREATE SEQUENCE USERS_SEQ START WITH 1 INCREMENT BY 1 NOCACHE;
>
> Is it then better?

Its not better for performance or scalability. Neither does it solve the 'problem' that you can lose sequence numbers. However This generally isn't really a problem, you still have a unique meaningless primary key autogenerated for you. Why do you want an unbroken sequence?

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer
******************************************
Received on Thu Oct 31 2002 - 07:28:39 CST

Original text of this message

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