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: Brian Peasland <peasland_at_edcmail.cr.usgs.gov>
Date: Thu, 1 Feb 2001 14:07:21 GMT
Message-ID: <3A796D99.63BF554C@edcmail.cr.usgs.gov>

Michael,

Interesting... How do you propose renaming the sequence? There is no ALTER SEQUENCE RENAME command.

But if you could, then I suppose you could guarantee automicity. You could also guarantee it by starting the database in restricted mode and altering the sequence as previously suggested. But this is still a long way to go when it is much easier to just drop and recreate the sequence.

HTH,
Brian

> Hi,
>
> And thanks for the interesting input.
>
> In some cases you might be able to rename the sequence before altering
> it, and back-name it when done. This would have many consequences like
> invalidating procedures and package bodies, generate runtime errors
> etc., but it would guarantee atomicity, wouldn't it?
>
> /Michael
>
> Sent via Deja.com
> http://www.deja.com/
 

-- 
========================================
Brian Peasland
Raytheons Systems at
  USGS EROS Data Center
These opinions are my own and do not
necessarily reflect the opinions of my 
company!
========================================
Received on Thu Feb 01 2001 - 08:07:21 CST

Original text of this message

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