Oracle Solution for Error ora-06505

Solution for Oracle Error ORA-06505

ORA-06505: PL/SQL: variable requires more than 32767 bytes of contiguous memory

What triggered the Error:

A PL/SQL variable was declared with a constraint which required more than 32767 bytes of memory. PL/SQL does not currently support allocations of contiguous memory greater than 32767 bytes.

What should we do to fix it:

Consider reducing the constraint in the variable declaration. If that is not possible, try changing the database or national character set to such, that requires less memory for the same constraint. Note: changing the character set will impact execution of all PL/SQL code.