• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

MAX_STRING_SIZE Parameter in Oracle Database

by admin

Oracle Database parameter MAX_STRING_SIZE controls the maximum size of VARCHAR2, NVARCHAR2, and RAW data types in SQL. From Oracle Database 12c onwards, table column(s) length can be modified to greater than 4000 characters when this parameter value is set to EXTENDED.

Allowed values for this parameter are:

  • STANDARD: Default value. Means that the length limits for Oracle Database releases prior to Oracle Database 12c apply (for example, 4000 bytes for VARCHAR2 and NVARCHAR2, and 2000 bytes for RAW).
  • EXTENDED: Means that the 32767 byte limit introduced in Oracle Database 12c applies.

Important considerations before modifying parameter to EXTENDED:

– The COMPATIBLE initialization parameter must be set to 12.0.0.0 or higher to set MAX_STRING_SIZE = EXTENDED.
– Cannot change the value of MAX_STRING_SIZE from EXTENDED to STANDARD.
– The only way to revert is to restore the database from backup prior to running the conversion script, $ORACLE_HOME/rdbms/admin/utl32k.sql
– Database restart is required several times during modification process.
– You can change the value of MAX_STRING_SIZE from STANDARD to EXTENDED. However, you cannot change the value of MAX_STRING_SIZE from EXTENDED to STANDARD.

Filed Under: oracle, oracle 12c, Oracle 18c, Oracle 19c

Some more articles you might also be interested in …

  1. Oracle database : Basics about pfile and spfile
  2. ORA-38760: This database instance failed to turn on flashback database
  3. How To Convert A Partitioned Table To A Non-Partitioned Table Using DataPump In Oracle 11g and 12c
  4. How To Catalog Backups / Archivelogs / Datafile Copies / Controlfile Copies in Oracle Database
  5. New Background Processes In Oracle Database 12c
  6. Oracle 12c: Unplug/Plug PDB to new CDB using RMAN Active Database Duplication
  7. How to upgrade Oracle database to 12c Pluggable database (Multitenant) using Transportable tablespace(TTS) method
  8. Example of PDB Level Duplication in Oracle Database 18c
  9. How to pass a value from shell script to GoldenGate replicat for mapping to target table column
  10. XA and NON-XA

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright