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

Last updated on MARCH 27, 2014

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later [Release: 11.2 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