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 -> Rolling back sequences?

Rolling back sequences?

From: dean <deanbrown3d_at_yahoo.com>
Date: 3 Apr 2006 20:15:39 -0700
Message-ID: <1144120539.296116.250100@e56g2000cwe.googlegroups.com>


Is it possible to roll back a sequence to its original point before a transaction started, if the transaction fails? I need to be able to log out reproducible SQL from a complex precedure. Oracle 9.2, windows platform.

Here's a typical example:

select train_route_seq.nextval from dual;

   NEXTVAL


    311845

1 row selected.

rollback

Rollback complete.

select train_route_seq.nextval from dual;

  NEXTVAL


    311846

1 row selected.

Thanks,

Dean Received on Mon Apr 03 2006 - 22:15:39 CDT

Original text of this message

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