Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reset a Sequence at Midnight on New Years Eve

402355May 19 2004 — edited May 20 2004

Hi,

How can I reset a sequence generator at midnight on New Year’s Eve?

Using SQL script and SQL-Plus, I know how to set the sequence increment to a negative number large enough to return the “Next Val” to 1 (then re-set increment to 1).

But, ‘need help to understand how to cause this action to happen automatically. I’m thinking along the lines of a trigger or stored procedure.

Thank you
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2004
Added on May 19 2004
10 comments
634 views