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: Is the use of VARCHAR(256) as Primary Keys preferred in Oracle?

Re: Is the use of VARCHAR(256) as Primary Keys preferred in Oracle?

From: <ctcgag_at_hotmail.com>
Date: 26 Nov 2002 16:30:25 GMT
Message-ID: <20021126113025.286$WG@newsreader.com>


Karsten Farrell <kfarrell_at_belgariad.com> wrote:

> > That's the same as for OPS when you use CACHE and NOORDER. Each local
> > 'office' gets a chunk of numbers from which it allocates without
> > refering back to the central office. The only difference being how
> > large those chunks are and how many offices there are. Do you consider
> > Oracle sequence numbers to be natural for this reason?

> I don't see how the next set of cached sequence numbers is the same as
> the pre-assigned region number used in SSNs. Sequence numbers still
> increase in value. An SSN of 555-xx-xxxx can be assigned, followed by an
> SSN of 123-xx-xxxx. SSNs bounce all over the place. Sequence numbers
> don't.

Set the CACHE to 1,000,000 (assuming that's possible) and have >50 machines in your parallel server, and sequence numbers will bounce all over the place, too.

> And your point is? As stated above, Oracle sequence numbers do not
> contain any smarts; but SSNs do.

As stated above, that's false. Given equal knowledge of the details of implementations, they both contain the same smarts. Just at a different level of granularity. SSN which yield the same answer to int(SSN/1,000, 000) came from the same regional office (or used to) and sequence numbers that are the same after int(SEQ/CACHE-Offset) came from the same machine in a parallel server.

Xho

> > Xho
> >

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Received on Tue Nov 26 2002 - 10:30:25 CST

Original text of this message

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