【翻译自mos文章】oracle数据库中 基本的表压缩和高级压缩之间的区别

基本的表压缩和高级压缩之间的区别,

摘录自mos文章Difference Between Basic Table Compression And Advanced Compression (Doc ID 1548187.1)

适用于:

Oracle Database - Enterprise Edition - Version 10.2.0.5 and later

Information in this document applies to any platform.

目标:

What is the difference between Basic Table Compression in 10g and Advanced Table Compression in 11gR2?

方法:

user_tables 或者dba_tables视图中的COMPRESS_FOR列,在11.2和 11.1版本中,返回的值是不同的。

在11.2中,该列的返回值是 BASIC or OLTP

在11.1中,该列的返回值是  DIRECT LOAD ONLY and FOR ALL OPERATIONS

使用alter table...move...compress, alter index...rebuild...compress 命令,此时是使用的基本的压缩,除非使用高级压缩的授权。

基本的压缩是在block级别工作,将数据块上的重复的bit信息 挪动(remove)到block header中,

并每个block上存储这些信息一次。请注意,并不是block上出现一次就存储一次。这样的机制允许在一个block之内存储2倍,3倍,4倍甚至更多的数据。

基本的压缩仅仅在如下情况下才有效:

direct path operations--比如 insert /*+APPEND*/, alter table t move, create table as select, sqlldr direct=y

基本的压缩并不阻止你使用正常的nsert/update/delete语句。----这就是说:这些dml语句会产生(result in)一些非压缩数据。

一个表中可以存在压缩的blocks和没压缩的blocks--这是能正常工作的。

There are restrictions as to what you can do with a basic compressed table as far as dropping columns and the like.

在Oracle 11gR1 以及更新(above )版本中,有了 advanced compression option。

这个option允许 normal, conventional path operations 这些操作被压缩。

因此,一个application可以在不使用direct path operations的情况下,以压缩的格式保存数据。

Restrictions on Table Compression Table compression is subject to the following restrictions:

COMPRESS FOR OLTP and COMPRESS BASIC are not supported for tables with more than 255 columns.

As "COMPRESS FOR OLTP" is part of Advanced compression, the restriction holds good for it as well.

You need separate license to use 11g Advanced Compression.

For more information on Advanced Compression, see the OTN site.

时间: 2024-07-29 00:08:50

【翻译自mos文章】oracle数据库中 基本的表压缩和高级压缩之间的区别的相关文章

【翻译自mos文章】11gR2中的asm后台进程

11gR2中的asm后台进程 参考原文: ASM Background Processes in 11.2 (Doc ID 1641678.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.2 to 11.2.0.4 [Release 11.2] Information in this document applies to any platform. 1 ASMB - ASM Background Process 与as

【翻译自mos文章】使用asmcmd命令在本地和远程 asm 实例之间 拷贝asm file的方法

使用asmcmd命令在本地和远程 asm 实例之间 拷贝asm file的方法 参考原文: How to Copy asm files between remote ASM instances using ASMCMD command (Doc ID 785580.1) 适用于: Oracle Database - Enterprise Edition - Version 11.1.0.6 to 11.2.0.2 [Release 11.1 to 11.2] Information in thi

【翻译自mos文章】SYS_OP_C2C 导致的全表扫描(fts)/全索引扫描

SYS_OP_C2C 导致的全表扫描(fts)/全索引扫描 参考原文: SYS_OP_C2C Causing Full Table/Index Scans (Doc ID 732666.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 12.1.0.1 [Release 10.1 to 12.1] Information in this document applies to any platform. This

【翻译自mos文章】12c中ORAAGENT.BIN进程消耗了大量的内存

来源于: 12C ORAAGENT.BIN CONSUMES HIGH MEMORY (文档 ID 1954032.1) APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.2 [Release 11.2 to 12.1] Information in this document applies to any platform. SYMPTOMS 12.1.0.2 oraagent.bin p

查询oracle数据库中的所有表空间信息

select dbf.tablespace_name,dbf.totalspace "总量(M)",dbf.totalblocks as 总块数,dfs.freespace "剩余总量(M)",dfs.freeblocks "剩余块数",(dfs.freespace / dbf.totalspace) * 100 "空闲比例" from (select t.tablespace_name,sum(t.bytes) / 1024

【翻译自mos文章】对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?

对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据? 参考原文: When GoldenGate Fetches Data From The Database On Extraction For Oracle (Doc ID 1059583.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Information in this document applies to any platform. 解决方法: 问

【翻译自mos文章】rac数据库中,HC_<SID>.dat文件被其他Oracle_Home下的实例所使用。

rac数据库中,HC_<SID>.dat文件被其他Oracle_Home下的实例所使用. 参考原文: RAC database HC_<SID>.dat is used by instance of different Oracle_Home (Doc ID 1618161.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.0 and later Information in this document ap

【翻译自mos文章】当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误

当NFS server 宕机后,Oracle 数据库 冻结并且alert 文件里没有任何错误 翻译自mos文章:When NFS Server Is Down, Oracle Server Freezes With No Errors In Alert Log File (文档 ID 1316251.1) 适用于: Oracle Server - Enterprise Edition - Version: 10.2.0.4 and later   [Release: 10.2 and later

【翻译自mos文章】oracle数据库的最大数据容量限制和表空间的最大数据容量限制

oracle数据库的最大数据容量限制和表空间的最大数据容量限制 参考原文: What Is The Maximum Tablespace Size And Database Limit For An Oracle Database ? (Doc ID 1372905.1) 适用于: Oracle Database - Enterprise Edition - Version 10.1.0.2 to 11.2.0.3 [Release 10.1 to 11.2] Oracle Database -