My Oracle Support Banner

DBMS_COMPRESSION.GET_COMPRESSION_RATIO can fail with ORA-1422/ORA-20000/ORA-942 or ORA-922 (Doc ID 1361314.1)

Last updated on AUGUST 26, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

DBMS_COMPRESSION.GET_COMPRESSION_RATIO cannot be invoked at table level
for partitioned tables for DBMS_COMPRESSION.COMPRESS_FOR_OLTP level.
The call fails with either ORA-1422 or
ORA-20000: For OLTP compression, specify partition (or subpartition) name for partitioned tables.
eg:
ORA-01422: exact fetch returns more than requested number of rows
ORA-06512: at "SYS.DBMS_COMPRESSION", line 214

Other errors which can occur while executing DBMS_COMPRESSION.GET_COMPRESSION_RATIO include ORA-942 or ORA-922

Failing SQL statements could be similar to :




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.