Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Find the table's name that using sequences
If you are using the sequence to generate the primary key for a table, then the sequence should only be used for that table. I can't think of a pro to have one sequence shared for the primary keys on many different tables.
> -----Original Message-----
> From: ml-errors_at_fatcity.com [mailto:ml-errors_at_fatcity.com]On Behalf Of
> Chris Grabowy
>
> Well, there could be business logic reasons as to why you
> would have one
> sequence per table.
>
> Also, I don't know if I would ever go with one sequence for
> many tables,
> sounds like a bottle neck to me. And how would one sequence
> for many tables
> impact scalability?? Or having lots of users hammering the
> database?? And
> what happens if you have to reset the sequence, then you have
> to check the
> primary key values on many tables. One sequence to one table
> sounds good to
> me, but I would love to hear pros/cons about this...
Received on Wed Jul 16 2003 - 14:42:12 CDT
![]() |
![]() |