Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

sys_guid vs. sequences

201545Dec 19 2004 — edited Dec 20 2004
For anyone building a new system does it make sense to not use sequences at all and instead rely 100% on sys_guid?

As far as I can tell, sys_guid is superior:
1. It is guaranteed unique across all systems everywhere
2. It is faster than a seqence
3. Many of the restrictions on a sequence (like needing to use it in DML, not just calling it from PL/SQL) do not exist
4. Indexes on it should be better behaved (especially with RAC)

Are there any benefits to Sequences besides the marginal one of using less space?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 17 2005
Added on Dec 19 2004
13 comments
886 views