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: Oracle's SYS_GUID() vs MS SQL Server NEWID()

Re: Oracle's SYS_GUID() vs MS SQL Server NEWID()

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Sun, 24 Aug 2003 09:05:05 +0800
Message-ID: <3F480F41.4B7B@yahoo.com>


Uma Muthu wrote:
>
> I am working with two databases who share data: an Oracle 9i DB and a MS SQL
> Server 2000. I am concerned that GUIDs that are generated on one DB may be
> duplicated ):- on the other DB, and when we go to share data a duplicate key
> scenario might arise.
>
> Is there any way I can determine the algorithms used to generate the GUIDs
> on both DBs so that I can format them (if I have to) in a way that they
> will
> never collide? I use sys_guid() to generate GUIDs in Oracle, and NewID() in
> SQL Server.
>
> Any suggestions would be appreciated.
>
> - TIA -
> ~ Uma Muthu ~

Tag the oracle rows with a sequence starting at 1 Tag the sql server rows with a "sequence" starting at 1000,000,000

should be fine for the first billion rows

hth
connor

-- 
=========================
Connor McDonald
http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue"
Received on Sat Aug 23 2003 - 20:05:05 CDT

Original text of this message

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