Skip to content
  • Contact Us
  • Contact Us
Physical Organization of Orace Database
Automatic Indexing . Exams of Oracle

Character and Binary String Types-Datatypes

On 21/06/2024 by Robert Corvino

The character datatypes in Oracle are CHAR, VARCHAR2, and their “N” variants. The CHAR and NCHAR can store up to 2000 bytes of text. The VARCHAR2 and NVARCHAR2 can store up to 4000 bytes of information.

Note Starting with Oracle 12c, VARCHAR2, NVARCHAR2, and RAW datatypes can be configured to store up to 32,767 bytes of information.

Extended datatypes are not enabled by default; therefore, unless explicitly configured, the maximum size is still 4000 bytes for VARCHAR2 and NVARCHAR2 datatypes and 2000 bytes for RAW. See the “Extended Datatypes” section later in this chapter for more details.

This text is converted between various character sets as needed by the database. A character set is a binary representation of individual characters in bits and bytes.

Many different character sets are available, and each is capable of representing different characters, for example:

•\ The US7ASCII character set is the ASCII standard representation of128 characters. It uses the low 7 bits of a byte to represent these 128characters.

•\ The WE8MSWIN1252 character set is a Western European characterset capable of representing the 128 ASCII characters as well as 128extended characters, using all 8 bits of a byte.

Before we get into the details of CHAR, VARCHAR2, and their “N” variants, it would benefit us to get a cursory understanding of what these different character sets mean to us.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021

Calendar

June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Jul    

Categories

  • Auto Indexing Wrap-Up
  • Automatic Indexing
  • Character Strings
  • Exams of Oracle
  • Index Case Summary
  • The Clustering Factor

Copyright Physical Organization of Orace Database 2025 | Theme by ThemeinProgress | Proudly powered by WordPress