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 -> Re: Sequence Problems

Re: Sequence Problems

From: Robert Maddock <rmaddock_at_my-deja.com>
Date: Thu, 29 Jul 1999 14:06:01 GMT
Message-ID: <7npn43$l3t$1@nnrp1.deja.com>


In article <7nn0mi$sk0$1_at_nnrp1.deja.com>,   rmaddock_at_my-deja.com wrote:

WHOOPS! Seems to have posted to the wrong place, sorry.

> I have a database with a number of sequences which I'm using to
> generate the unique ID's for tables. They are created so:
>
> CREATE SEQUENCE <name> INCREMENT BY 1 START WITH 1 NOCYCLE
>
> I'm using the sequences in INSERT statements from VB6 to Oracle 8 via
> ODBC and RDO. (E.g. INSERT INTO TABLES (cols...) VALUES
> (SEQUENCE.NEXTVAL,...)). All is fine for some time but then we get an
> error saying that a numeric value is out of range for the insert.
>
> I've debugged the code and, using the same values, manually inserted
> into the table via sqlplus (still using the sequence) without any
> problems.
>
> The sequence number is hardly any size; only a few thousand.
>
> If I drop and recreate the sequence in question, the problem does not
> go away. If, however, I drop all the sequences in the database and
> recreate them then the problem does go away.
>
> Can anyone suggest what is going on?
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
>

--

Robert Maddock

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Thu Jul 29 1999 - 09:06:01 CDT

Original text of this message

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