Oracle DBA, How To, Error, Cause and Action

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

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




Cause: 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.




Action: 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.