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

Home -> Community -> Usenet -> c.d.o.server -> Re: Getting currval from a sequence with out incrementing nextval

Re: Getting currval from a sequence with out incrementing nextval

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Mon, 06 Mar 2006 20:45:36 +0100
Message-ID: <dui2on$oke$1@news5.zwoll1.ov.home.nl>


Well, as I said - use an exception handler on the trigger. It can call a procedure which can can have going over a loop, say 100 times before raising an error.

But the proverbial lead pipe does wonders, here.

Oh - and have them test without cached sequences (nocache noorder nocycle) - so you can query dba_sequences ;)

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Mon Mar 06 2006 - 13:45:36 CST

Original text of this message

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