Title: RE: randomly generate unique key

12:38:08 SQL> SELECT SYS_GUID() FROM DUAL;

SYS_GUID()
--------------------------------
BEE5518CD34A8048E033800135428048

12:39:20 SQL>

supposed to be pretty unique ... http://tinyurl.com/d28a

Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


-----Original Message-----
From: Joan Hsieh [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 30, 2003 11:45 AM
To: Multiple recipients of list ORACLE-L
Subject: randomly generate unique key


Hi List,

Originally, Our next generate directory group use sequence # to generate
a unique key. (we can't use emplid or social s # as key, since students
doesn't have emplid and some foreign students doesn't have ssn). That
works fine until the policy changed, they need to publish the unique key
which is trunk id. According to the developers, if publish those
sequenced unique key, it will create some problems, since the community
can guess the next sequence # and got unnecessary info associated with
it. Now the question is how to create a random unique key? The idea is
create a function call combine the 3 components (date, time, MAC
address) to generate a random #. Does the date/time (client query system
time)can always be unique or can be duplicated? Does someone has any
idea or experience to generate those randomly unique key?

Any info would be helpful.

Thanks in advance,

Joan
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Joan Hsieh
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

*********************************************************************This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*********************************************************************1

Reply via email to