Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UUID

Status
Not open for further replies.

ETLMaster

Programmer
Sep 30, 2002
14
0
0
US
Hi there,
I am currently using the sys_guid method of Oracle to generate unique ids for an application. However, the id generated is 16 bytes(128 bits) in its hexadecimal representation. This large number of bytes does not fit in a number data type(of length 38) which can only take 126 bits.
Do any of you know how to convert this 128-bit UUID into 126-bits without compromising its uniqueness? Is it a simple matter of shifting the bits 2 times to the right?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top