My Oracle Support Banner

Subquery Using Analytical Function Fails with ORA-6502 (Doc ID 852834.1)

Last updated on JUNE 17, 2019

Applies to:

PL/SQL - Version 9.2.0.8 to 11.1.0.7 [Release 9.2 to 11.1]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

Using an analytical function such as LAST_VALUE, MIN, MAX in a subquery to select a CHAR variable defined (with same length as the table definition) fails with error :

ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 4

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.