立即注册 登录
ITIL先锋论坛 返回首页

bs15000的个人空间 https://www.itilxf.com/?147 [收藏] [复制] [分享] [RSS]

日志

11.2 db compression vs. 10g r2, version 10.2.0.4(转)

已有 1032 次阅读2011-1-26 11:30 |个人分类:技术|

You Asked Dear Tom

Is 11.2.0.2 compression better than 10.2.0.4 ? if so how ?

Thanks
C
and we said...In Oracle 9iR2 and later, with enterprise edition, you have what is known as 'basic compression' as a feature in the database. Basic compression works at the block level, removing redundant bits of information on a database block into the block header and storing them once per block - not once per occurrence on the block. This allows us to store 2x, 3x, 4x or more data per block. It only works during direct path operations such as insert /*+APPEND*/, alter table t move, create table as select, sqlldr direct=y. It does not PREVENT you from using normal insert/update/delete statements - it just means that the results of those statements will result in some non-compressed data. A single table may have some blocks compressed and some blocks not compressed - that works fine. There are restrictions as to what you can do with a basic compressed table as far as dropping columns and the like.

In Oracle 11g Release 1 and above there is the new advanced compression option. This option allows for normal, conventional path operations to be compressed - so a transactional application may save it's data in a compressed format without using direct path operations. It also removes most of the restrictions associated with basic compression such as a 255 column limit on compressed tables, scheema modifications, and the like.

So, the original basic compression still exists in 11g for enterprise edition users, and there is the new advanced compression that works in many more cases.

Is it "better"? It is the same sort of compression - it just works in more situations with fewer restrictions - so in that sense, yes it is "better"
原文:http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2852001100346111839

路过

鸡蛋

鲜花

握手

雷人

发表评论 评论 (1 个评论)

回复 bs15000 2011-1-26 11:49
Hi Tom:

We have a 10.2.0.4 Reporting database where all tables are compressed partitioned tables. All the
table/index partitions are compressed using basic compression option.
We are planning to upgrade to 11gR2.

I have Question with respect to Advanced compression:

a) If we want to use Advanced Compression, What steps are required to move from Basic Compression  
to Advanced Compression.

Do we need to uncompress all compressed tables and restart from the scratch to use advanced
compression

Can you please list out the exact steps if you can. This would be very helpful. We know that
Advanced compressions are licensed.

Followup   January 24, 2011 - 5am Central time zone:

index partitions are compressed using index key compression - predates the basic segment compression - it came out in 8.1.5, segment compression (which comes 'basic' or 'advanced') is 9ir2 and 11gr1.


a) none, basic compression is a 100% subset of advanced. If you want to ENABLE advanced (OLTP) compression on a table, you would simply alter it - all SUBSEQUENT DML will be compressed in addition to direct path operations.

If you have tables that are currently full of uncompressed data - you would need to reorganize them to make them have only compressed data.

facelist

您需要登录后才可以评论 登录 | 立即注册

手机版|小黑屋|最新100贴|论坛版块|ITIL先锋论坛 |粤ICP备11099876号|网站地图
Powered by Discuz! X3.4 Licensed  © 2001-2017 Comsenz Inc.
返回顶部