June 2018
Intermediate to advanced
478 pages
10h 52m
English
Many databases supporting OLTP and DSS workloads have large numbers of indexes per table. These indexes take server resources, including memory and disk storage. All indexes, including those on declared or created temporary tables, can be compressed. You can enable compression on existing indexes by using the ALTER INDEX ...COMPRESS YES command. The only indexes that cannot be compressed are MDC block indexes and XML path indexes.
You can use the ADMIN_GET_INDEX_COMPRESS_INFO table function to determine the potential index compression storage savings as follows:
SELECT TRIM (INDSCHEMA) || '.' ||TRIM (INDNAME) AS INDNAME, COMPRESS_ATTR AS ATTR, INDEX_COMPRESSED AS ISCOMP, PCT_PAGES_SAVED AS PPS, NUM_LEAF_PAGES_SAVED AS NLPS ...
Read now
Unlock full access