Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Creating sequences on the DUAL table?
answer below
> -----Original Message-----
> From: Cherie_Machler_at_gelco.com [mailto:Cherie_Machler_at_gelco.com]
>
> I have a request from one of our developers to create two new
> sequences on
> the DUAL table.
>
> This seems like a bad idea to me. I've never had such a
> request in the
> past. I asked for clarification on why this is needed and I
> didn't get a
> lot of details yet.
>
> Is this something that is standard operating procedure? My
> understanding
> that interfacing with the DUAL table is usually inviting poor
> performance.
> Plus, I don't like to mess around with system tables, in general.
>
> Under what circumstances would it be justified to create
> sequences on the
> DUAL table? Should I just flat-out refuse this request and
> if so, why?
You don't mean that the developer wants to add columns to dual?
I think the developer means that you should create two sequences, and he
will get the next value by saying
select seq.nextval from dual ;
(example:
SQL> create sequence s ;
Séquence créée.
SQL> select s.nextval from dual ;
NEXTVAL
1
end of example)
I don't see a problem with creating a sequence for someone, as long as you
make them beg properly first to teach them respect for the importance of the
DBA.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jacques Kilchoer INET: Jacques.Kilchoer_at_quest.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).Received on Tue Jul 30 2002 - 13:39:32 CDT