Legacy Knowledge Base
Published Jul. 2, 2025

How to change max_string_size value from STANDARD to EXTENDED in Oracle 19c?

Written By

Amit Tiwari

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • How to change max_string_size value from STANDARD to EXTENDED in Oracle 19c?

Environment

  • Liferay DXP 7.2 SP3
  • Oracle 19c

Resolution

Steps for converting max_string_size value to EXTENDED:

SQL> show parameter max_string_size;

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
max_string_size                      string      STANDARD

1. Start the database in upgrade mode:

        SQL> purge dba_recyclebin;

                  DBA Recyclebin purged.

        SQL> SHUTDOWN IMMEDIATE;
                   Database closed.
                   Database dismounted.
                   ORACLE instance shut down.

        SQL> STARTUP UPGRADE
                   ORACLE instance started.


                   Total System Global Area 3221223952 bytes

                   Fixed Size                  9271824 bytes
                   Variable Size             654311424 bytes
                   Database Buffers         2550136832 bytes
                   Redo Buffers                7503872 bytes
                   Database mounted.
                   Database opened.

2. Changing the value to EXTENDED:

       SQL>  alter system set max_string_size=EXTENDED scope=spfile;

           System altered.

[If this command doesn't work try executing the same command again by changing the scope value to both. i.e. SCOPE=BOTH]

      SQL> shutdown immediate;
                Database closed.
                Database dismounted.
                ORACLE instance shut down.
      SQL> startup upgrade;
                ORACLE instance started.


                Total System Global Area 3221223952 bytes
                Fixed Size                  9271824 bytes
                Variable Size             654311424 bytes
                Database Buffers         2550136832 bytes
                Redo Buffers                7503872 bytes
                Database mounted.
                Database opened.
SQL> show parameter max_string_size


NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
max_string_size                      string      EXTENDED

 

 

Additional Information

  • We can change the value of MAX_STRING_SIZE from STANDARD to EXTENDED but vice-versa is not possible so changing the value is totally at your discretion.
  • MAX_STRING_SIZE Parameter in Oracle 19c

Did this article resolve your issue ?

Legacy Knowledge Base