Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: resetting sequence numbers
Jack,
But then you have to redo grants, any invalidations. No big deal automating. But if you set the increment to a negative to take you right back down to zero, then set the increment to 1 (or whatever it was), there you go, no dropping the sequence.
10 to 1 odds Jared posts a nice little script that automates this second approach ;-)
Regards,
Larry G. Elkins
elkinsl_at_flash.net
214.954.1781
> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Jack Silvey
> Sent: Friday, July 05, 2002 8:03 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Re: resetting sequence numbers
>
>
> drop sequence, recreate sequence, rinse, repeat.
>
> Jack
>
>
> --- "Malik, Fawzia" <Fawzia.Malik_at_bskyb.com> wrote:
> >
> > Hi,
> >
> > Is there a way of resetting sequence numbers back to
> > zero???The application
> > we have needs to have the sequence numbers reset...
> >
> > Thanks in advance
> >
> > Rgds
> >
> > Fawzia
> >
> >
> >
> **********************************************************************
> > Information in this email is confidential and may be
> > privileged.
> > It is intended for the addressee only. If you have
> > received it in error,
> > please notify the sender immediately and delete it
> > from your system.
> > You should not otherwise copy it, retransmit it or
> > use or disclose its
> > contents to anyone.
> > Thank you for your co-operation.
> >
> **********************************************************************
> >
> > --
> > Please see the official ORACLE-L FAQ:
> > http://www.orafaq.com
> > --
> > Author: Malik, Fawzia
> > INET: Fawzia.Malik_at_bskyb.com
> >
> > Fat City Network Services -- (858) 538-5051 FAX:
> > (858) 538-5051
> > San Diego, California -- Public Internet
> > access / Mailing Lists
> >
> --------------------------------------------------------------------
> > To REMOVE yourself from this mailing list, send an
> > E-Mail message
> > to: ListGuru_at_fatcity.com (note EXACT spelling of
> > 'ListGuru') and in
> > the message BODY, include a line containing: UNSUB
> > ORACLE-L
> > (or the name of mailing list you want to be removed
> > from). You may
> > also send the HELP command for other information
> > (like subscribing).
>
>
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Jack Silvey
> INET: jack_silvey_at_yahoo.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Larry Elkins INET: elkinsl_at_flash.net Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Fri Jul 05 2002 - 08:19:23 CDT