150 likes | 279 Views
www.SageLogix.com. Syntax. Available in Oracle9i Release 2 (v9.2.0.x)Physical storage attribute for tables and materialized views[ CREATE | ALTER ] TABLE [ COMPRESS | NOCOMPRESS ] Can be used for RANGE or LIST partitionsBut cannot be used with HASH partitionsBut cannot be used for HASH or
E N D
1. www.SageLogix.com Quick Tips #3
Table Compression
Do’s and Don’ts
Tim Gorman
(tim@sagelogix.com)
Principal
SageLogix, Inc. IOUG-A “Live 2003”
2. www.SageLogix.com Syntax Available in Oracle9i Release 2 (v9.2.0.x)
Physical storage attribute for tables and materialized views
[ CREATE | ALTER ] TABLE …
[ COMPRESS | NOCOMPRESS ] …
Can be used for RANGE or LIST partitions
But cannot be used with HASH partitions
But cannot be used for HASH or LIST sub-partitions
Can be specified for NESTED tables
But cannot be used with any LOB construct
Such as CLOB, BLOB, BFILE, and VARRAY
Not valid for index-organized or external tables
3. www.SageLogix.com Syntax Can be set as a DEFAULT attribute on tablespaces
Affects both tables and indexes in the tablespace
Unless otherwise specified
[ CREATE | ALTER ] TABLESPACE …
DEFAULT [ COMPRESS | NOCOMPRESS ] STORAGE …
4. www.SageLogix.com How does it work? Storing repeated data values once in each block A symbol table of data values created in each block The symbol table is stored as another table in the block Each column in a row in a block references back to an entry in the symbol table in the block