Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re:identifying a database
> Marin,
>
> Not sure I understand the question. Each database needs a unique sid
on
> that machine. You can use the same sid on different computers, but not on
the
> same one. According to MetaLink DBID is not a unique indicator.
>
I don't want to mess with SIDs, what I need is a globally unique identifier of the database (or one with sufficiently small probability of being duplicated)
The reason I need this is because in the application a user may read some object from a database and when he tries to save the object back I need to be sure that the database used is the same as the one the object originates from (one usually deals with few objects from different databases)
So, if DBID is not unique how could I generate an almost globally unique
number?
(I don't quite like calling SYS_GUID() because it returns RAW)
thanx,
Marin
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Marin Dimitrov INET: marin.dimitrov_at_sirma.bg Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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).Received on Tue Oct 23 2001 - 09:59:10 CDT
![]() |
![]() |