Oracle Table and tablespace Compress
Compressed Tablespaces
You can specify that all tables created in a tablespace are compressed by default. You specify the type of table compression using the DEFAULT keyword, followed by one of the compression type clauses used when creating a table.
The following statement indicates that all tables created in the tablespace are to use OLTP compression, unless otherwise specified:
CREATE TABLESPACE ... DEFAULT COMPRESS FOR OLTP ... ;
Table Compression Methods --(注:COMPRESS
FOR QUERY,ARCHIVE選項需使用EXADATA硬體)
Table Compression Method |
Compression Level |
CPU Overhead |
Applications |
Notes |
Basic compression |
High |
Minimal |
DSS |
None. |
OLTP compression |
High |
Minimal |
OLTP, DSS |
None. |
Warehouse compression (Hybrid Columnar Compression) |
Higher |
Higher |
DSS |
The compression level and CPU overhead depend on compression level specified (LOW or HIGH). |
Online archival compression (Hybrid Columnar Compression) |
Highest |
Highest |
Archiving |
The compression level and CPU overhead depend on compression level specified (LOW or HIGH). |
Table Compression Method |
CREATE/ALTER TABLE Syntax |
Direct-Path INSERT |
Notes |
Basic compression |
COMPRESS [BASIC] |
Rows are compressed with basic compression. |
COMPRESS and COMPRESS BASIC are equivalent. Rows inserted without using direct-path insert and updated rows are uncompressed. |
OLTP compression |
COMPRESS FOR OLTP |
Rows are compressed with OLTP compression. |
Rows inserted without using direct-path insert and updated rows are compressed using OLTP compression. |
Warehouse compression (Hybrid Columnar Compression) |
COMPRESS FOR QUERY [LOW|HIGH] |
Rows are compressed with warehouse compression. |
This compression method can result in high CPU overhead. Rows inserted without using direct-path insert and updated rows go to a block with a less compressed format and have lower compression level. |
Online archival compression (Hybrid Columnar Compression) |
COMPRESS FOR ARCHIVE [LOW|HIGH] |
Rows are compressed with online archival compression. |
This compression method can result in high CPU overhead. Rows inserted without using direct-path insert and updated rows go to a block with a less compressed format and have lower compression level. |
以上參考
另預估計算table被壓縮資料率可使用DBMS_COMPRESSION,參考:
http://docs.oracle.com/cd/E11882_01/appdev.112/e40758/d_compress.htm#BEIHIJBI
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2146380/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle11gR2 table compress一點測試Oracle
- oracle compressOracle
- add hash partition , default tablespace for patitioned table
- oracle 壓縮技術(compress)Oracle
- oracle compress壓縮小記Oracle
- partition table update partition-key result in changing tablespace
- 資料庫審計(create/alter/drop table、user、tablespace)資料庫
- Oracle OCP(48):UNDO TABLESPACEOracle
- [Oracle] 檢視tablespace的使用率(Including temp tablespace)Oracle
- [Oracle] Partition table exchange Heap tableOracle
- [Oracle Script] check tablespace usage infoOracle
- [Oracle Script] check temp tablespace usageOracle
- Oracle 11g tablespace usageOracle
- [Oracle] Raw device上Create TablespaceOracledev
- ORA-1653: unable to extend table by 1024 in tablespace(oracle表空間滿了的解決方案)Oracle
- oracle temporary tableOracle
- oracle shrink tableOracle
- Oracle Table LocksOracle
- Alter table for ORACLEOracle
- Oracle Table FunctionOracleFunction
- 【Oracle】oracle tablespace&datafile -- oracle表空間 分享[轉]Oracle
- oracle 切換undo tablespace小結Oracle
- Rename Tablespace in Oracle database 10gOracleDatabase
- How to Rename Tablespace In Oracle10gOracle
- 聊一聊Oracle的Tablespace(一)Oracle
- Oracle 普通table 轉換為partition tableOracle
- Oracle exp中compress引數的影響測試Oracle
- Export Parameter : CompressExport
- oracle cache table(轉)Oracle
- Oracle table selectOracle
- Oracle:TABLE MONITORINGOracle
- oracle之nalyze tableOracle
- Oracle ASM Allocation TableOracleASM
- oracle cache table(1)Oracle
- oracle cache table(3)Oracle
- oracle cache table(2)Oracle
- oracle cache table(5)Oracle
- oracle cache table(4)Oracle