Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How get the current value from a sequence?
"Ubiquitous" <weberm_at_polaris.net> wrote in message
news:cohkou$son$1_at_news.utelfla.com...
> In article <%RLqd.25958$up1.3264_at_text.news.blueyonder.co.uk>, x_at_x.com
> says...
>
>>need to be dba to read that view
>
> Does running a stored procedure change one's role?
roles aren't enabled for PL/SQL. The owner of the SP needs the appropriate
rights granted on the underlying object.
>
>>whats wrong with select seq_name.nextval fom dual?
>
> I don't want to gaps in the sequence.
Then use a method that serializes on a table. Sequences guarantee uniqueness not completeness.
-- Niall Litchfield Oracle DBA http://www.niall.litchfield.dial.pipex.comReceived on Tue Nov 30 2004 - 14:30:09 CST
![]() |
![]() |