February 16, 2005 at 4:46 pm
Hi, I was reading someting about OID, is it a good aproach to use it?
And how can create one, can you help me with that query.
Thanks.
February 16, 2005 at 9:57 pm
Object identifier (OID) is a unique set of numbers that allows Objectivity/DB to locate and manage persistent objects. An OID is 64 bits in length and it is composed of four 16-bit fields in the format of: DB-OC-PG-SL, where
DB - database identifier (dbid)
OC - container identifier
PG - logical page number
SL - logical slot number on the page
OID value do not change during the lifetime of an object.
for the tables u can give GUID data type and define OID
My Blog:
October 17, 2011 at 3:18 pm
Object IDs are described here:
http://en.wikipedia.org/wiki/Object_identifier
This is how they get encoded into a compact form:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb540809(v=vs.85).aspx
C# code is here:
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply