How to Estimate Compression Ratio of all the Indexes of a Table in 12c?

(Doc ID 1957911.1)

Last updated on OCTOBER 24, 2016

Applies to:

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

Goal

How to get compression ratio of all the indexes of a table in 12c? The argument passed should be just the 'table name', and it should give compression ratio for all the indexes associated.

Oracle Documentation Database PL/SQL Packages and Types Reference does not give clear example of how to get compression ratio for all indexes on a table in 12c. The compression ratios should be returned as a collection.

Solution

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