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: Storage requirements of NCHAR columns

Re: Storage requirements of NCHAR columns

From: Frank van Bortel <frank.van.bortel_at_gmail.com>
Date: Mon, 10 Jul 2006 20:54:19 +0200
Message-ID: <e8u7i8$6ll$1@news6.zwoll1.ov.home.nl>


Ross schreef:

> This sould seem to suggest that the a NCHAR(30) column would actually
> require 30 bytes of storage (as UTF8 has a single-byte code unit).
Eh? UTF-8 is a variable length characterset! UTF16 is fixed (and -in my opinion- far better suited in most cases), as are all charactersets with the digit 7 or 8 in position three (like WE8ISO... WE8DEC, US7ASCII)
> However, an example in Chapter 7 explicitly states that 90 bytes are
> required. I don't think the NLS_LENGTH_SEMANTICS parameter affects
> NCHAR, so which is correct?
>

For UTF-8, 90 byte in a NCHAR(30) column would be possible. Or more (when the data containes Chinese BIG-5 characters - 4 byte each), or less (US Ascii data would only use 30 byte).

-- 
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Received on Mon Jul 10 2006 - 13:54:19 CDT

Original text of this message

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