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: How to know what sequence a table is using?

Re: How to know what sequence a table is using?

From: <RogBaker_at_gmail.com>
Date: 18 Jan 2007 08:29:07 -0800
Message-ID: <1169137746.928634.303730@m58g2000cwm.googlegroups.com>


cyc73 wrote:
>...Do you know what cause the number to jump?

To find what sequence the table might be using, is would do something like:
SELECT SQL_TEXT FROM V$SQL where SQL_TEXT LIKE '%MYTABLENAME%' and SQL_TEXT like '%NEXTVAL%'

That might show you an insert statement into your table and the sequence name should preface .NEXTVAL.

As far as your other question, another process might be using the same sequence for another table, thus incrementing it seperately. Also, it is possible to alter the nextval or increment of the sequence. Received on Thu Jan 18 2007 - 10:29:07 CST

Original text of this message

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