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

Home -> Community -> Usenet -> c.d.o.tools -> Re: How to reset Sequence values ?

Re: How to reset Sequence values ?

From: <sybrandb_at_my-deja.com>
Date: Thu, 25 Jan 2001 12:20:23 GMT
Message-ID: <94p5m2$74q$1@nnrp1.deja.com>

In article <94ouvh$jrr$1_at_marte.lastminutetour.com>,   "hunter" <fmarchioni_at_libero.it> wrote:
> Hello!
> I have built some tables where primary keys are incremented via
> Sequence values.I put some dummy values to test the software
> but now I have to clean tables for real use of the software.
> The matter is that sequence values still keep count of their
> values even if I deleted all records.....how can I remedy it?
> is it possible to reset sequence count?
> Thanks
> Francesco
>
>

AFAIK the only way is drop the sequence and recreate. Of course the sequence keeps the current value, as sequence are not bound to any object.

Hth,

--
Sybrand Bakker, Oracle DBA

All standard disclaimers apply
------------------------------------------------------------------------


Sent via Deja.com
http://www.deja.com/
Received on Thu Jan 25 2001 - 06:20:23 CST

Original text of this message

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