ORA-22921:Length Of Input Buffer Is Smaller Than Amount Requested (Doc ID 1283917.1)

Last updated on MARCH 13, 2013

Applies to:

Oracle OLAP - Version 11.2.0.1 to 11.2.0.2 [Release 11.2]
Information in this document applies to any platform.

Symptoms


You receive the following error  when creating  Cube Materialized View using CREATE_MVIEW function.
The example bellow uses the SH sample schema.

This PL/SQL script uses the CREATE_MVIEW function to create a cube
materialized view from CAL_MONTH_SALES_MV. CREATE_MVIEW sets the optional
BUILD parameter to refresh the cube materialized view immediately.


STEPS:
=====


SQL> SET serverout ON format wrapped
BEGIN
salesaw := dbms_cube.create_mview('SH','CAL_MONTH_SALES_MV','build=immediate');
END;
/


This is the output you get:



SQL> DECLARE
salesaw varchar2(30);

BEGIN
salesaw := dbms_cube.create_mview('SH', 'CAL_MONTH_SALES_MV',
'build=immediate');
 END;
/
DECLARE
*
ERROR at line 1:
ORA-22921: length of input buffer is smaller than amount requested
ORA-06512: at "SYS.DBMS_CUBE", line 10281
ORA-06512: at line 5

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms