oracle compress
create table a(.....) compress for oltp;
create table a(.....) compress for all operations;
---------------------------------------------------------------
壓縮表不能超過255列。
- 不能刪除列,只能把列設定不null,或者不用
列遷移不能被壓縮.
外部表、族表不能被壓縮
表不能包含long欄位
You cannot specify hybrid columnar compression on the following object-relational features: object tables,
XMLType
tables, columns with abstract data types, collections stored as tables, or OPAQUE types, includingXMLType
columns stored as objects.When you update a row in a table compressed with hybrid columnar compression, the
ROWID
of the row may change.In tables compressed with hybrid columnar compression, updates to a single row may result in locks on multiple rows. Concurrency for write transactions may therefore be affected.
If a table compressed with hybrid columnar compression has a foreign key constraint, and you insert data using
INSERT
with theAPPEND
hint, then the data will be compressed using OLTP. To compress the data with hybrid columnar compression, disable the foreign key constraint, insert the data usingINSERT
with theAPPEND
hint, and then reenable the foreign key constraint.
table_compression
The table_compression
clause is valid only for heap-organized tables. Use this clause to instruct the database whether to compress data segments to reduce disk use. The COMPRESS
keyword enables table compression. The NOCOMPRESS
keyword disables table compression. NOCOMPRESS
is the default.
When you enable table compression by specifying either
COMPRESS
orCOMPRESS
BASIC
, you enable basic table compression. Oracle Database attempts to compress data during direct-pathINSERT
operations when it is productive to do so. The original import utility (imp) does not support direct-pathINSERT
, and therefore cannot import data in a compressed format.Tables with
COMPRESS
orCOMPRESS
BASIC
use aPCTFREE
value of 0 to maximize compression, unless you explicitly set a value forPCTFREE
in thephysical_attributes_clause
.In earlier releases, this type of compression was called DSS table compression and was enabled using
COMPRESS
FOR
DIRECT_LOAD
OPERATIONS
. This syntax has been deprecated.See Also:
"Conventional and Direct-Path INSERT" for information on direct-pathINSERT
operations, including restrictionsWhen you enable table compression by specifying
COMPRESS
FOR
OLTP
, you enable OLTP table compression. Oracle Database compresses data during all DML operations on the table. This form of compression is recommended for OLTP environments.Tables with
COMPRESS
FOR
OLTP
orNOCOMPRESS
use thePCTFREE
default value of 10, to maximize compress while still allowing for some future DML changes to the data, unless you override this default explicitly.In earlier releases, OLTP table compression was enabled using
COMPRESS
FOR
ALL
OPERATIONS
. This syntax has been deprecated.When you specify
COMPRESS
FOR
QUERY
orCOMPRESS
FOR
ARCHIVE
, you enable hybrid columnar compression. With hybrid columnar compression, data can be compressed during bulk load operations. During the load process, data is transformed into a column-oriented format and then compressed. Oracle Database uses a compression algorithm appropriate for the level you specify. In general, the higher the level, the greater the compression ratio. Hybrid columnar compression can result in higher compression ratios, at a greater CPU cost. Therefore, this form of compression is recommended for data that is not frequently updated.COMPRESS
FOR
QUERY
is useful in data warehousing environments. Valid values areLOW
andHIGH
, withHIGH
providing a higher compression ratio. The default isHIGH
.COMPRESS
FOR
ARCHIVE
uses higher compression ratios thanCOMPRESS
FOR
QUERY
, and is useful for compressing data that will be stored for long periods of time. Valid values areLOW
andHIGH
, withHIGH
providing the highest possible compression ratio. The default isLOW
.Tables with
COMPRESS
FOR
QUERY
orCOMPRESS
FOR
ARCHIVE
use aPCTFREE
value of 0 to maximize compression, unless you explicitly set a value forPCTFREE
in thephysical_attributes_clause
. For these tables,PCTFREE
has no effect for blocks loaded using direct-pathINSERT
.PCTFREE
is honored for blocks loaded using conventionalINSERT
, and for blocks created as a result of DML operations on blocks originally loaded using direct-pathINSERT
.See Also:
Oracle Exadata Storage Server Software documentation for more information on hybrid columnar compression, which is a feature of Oracle Exadata
You can specify table compression for the following portions of a heap-organized table:
For an entire table, in the
physical_properties
clause ofrelational_table
orobject_table
For a range partition, in the
table_partition_description
of therange_partitions
clauseFor a composite range partition, in the
table_partition_description
of therange_partition_desc
For a composite list partition, in the
table_partition_description
of thelist_partition_desc
For a list partition, in the
table_partition_description
of thelist_partitions
clauseFor a system or reference partition, in the
table_partition_description
of thereference_partition_desc
For the storage table of a nested table, in the
nested_table_col_properties
clause
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/197458/viewspace-1056311/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Table and tablespace CompressOracle
- oracle 壓縮技術(compress)Oracle
- oracle compress壓縮小記Oracle
- Oracle exp中compress引數的影響測試Oracle
- oracle11gR2 table compress一點測試Oracle
- Export Parameter : CompressExport
- tar compress gzip 操作
- Heap Block Compress現象分析BloC
- 使用compress壓縮檔案
- [ABC343G] Compress Strings
- flask-compress 和JSON壓縮FlaskJSON
- [CareerCup] 1.5 Compress String 壓縮字串字串
- Minify和Compress,你如何翻譯?
- compress表段壓縮基礎記載
- EXP匯出引數compress=y(n)的區別
- CF1200E Compress Words 題解
- oracle10g,11g中的exp,expdp引數compress, compression完全不同的定義Oracle
- 對錶資料壓縮compress的修改和查詢
- dmp很小,匯入資料庫後很大(compress引數)資料庫
- Linux命令:壓縮指令(compress,uncompress,gzip,gunzip,tar)Linux
- 【Koa】koa-compress中介軟體的使用-壓縮資料
- EXP COMPRESS以及EXP/IMP EXPDP/IMPDP匯入表結構注意
- 從底向上第三篇--瞭解index的compressIndex
- web前端之HTML5壓縮圖片compress image with canvasWeb前端HTMLCanvas
- AT_abc343_G [ABC343G] Compress Strings 題解
- [PY3]——過濾資料——列表推導、filter()、itertools.compress()Filter
- 【COMPRESS】11g中表壓縮技術的長足進步
- exp匯出compress引數導致的imp時擴充套件太大套件
- 從零手寫實現 nginx-09-compress http 檔案壓縮NginxHTTP
- 影片壓縮工具:Compress Any Video pro Mac v2.2.1啟用版IDEMac
- [20131125]Partition, compress and drop column (ORA-39726).txt
- 【匯入匯出】compress 值為n對匯入物件所佔空間的影響物件
- 【匯入匯出】compress 值為y對匯入物件所佔空間的影響物件
- (2)python_numpy: numpy.ma.masked_invalid 與 numpy.ma.compress_rowcols 函式用法Python函式
- [20131125]Partition, compress and drop column (ORA-39726)之2.txt
- oracle DBLink oracleOracle
- Oracle 中$ORACLE_HOME/bin/oracle檔案Oracle
- oracle 修改ORACLE例項Oracle