Oracle Error PLW-06016: unit string is too large; native code generation turned off

Oracle Error Message

PLW-06016: unit string is too large; native code generation turned off

Reason for the Error

Because the program was extremely large, analysis took an excessive amount of time or space to complete causing native compilation to be turned off.

Solution

The goal of native code generation is high performance and the compiler does extensive analysis of the program. If possible, reduce the size of the largest procedure, or split the program unit into multiple units.