DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE fails with ORA-6502: PL/SQL: numeric or value error
(Doc ID 3044544.1)
Last updated on SEPTEMBER 07, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.
Goal
DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE fails with ORA-6502: PL/SQL: numeric or value error
DECLARE
evolve_out CLOB;
BEGIN
evolve_out := DBMS_SPM.EVOLVE_SQL_PLAN_BASELINE ( SQL_HANDLE => 'SQL_0a02f86664a5f000' );
dbms_output.put_line(evolve_out);
END;
Error report -
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 5
06502. 00000 - "PL/SQL: numeric or value error%s"
*Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
*Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |