Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

45

积分

0

好友

3

主题
1#
发表于 2012-8-12 12:41:31 | 查看: 4528| 回复: 2
在tom谈到:

COMPRESS/NOCOMPRESS: Both ASSM and MSSM. Enables or disables compression of
table data during either direct path operations or during conventional path
(“normal,” if you will) operations such as INSERT. Prior to Oracle 9i Release 2, this
option was not available. Starting with Oracle 9i Release 2 through Oracle 10g
Release 2, the option was COMPRESS or NOCOMPRESS, to either use or not use table
compression during direct path operations only. In those releases, only direct
path operations such as CREATE TABLE AS SELECT, INSERT /*+ APPEND */, ALTER
TABLE T MOVE, and SQL*Loader direct path loads could take advantage of
compression. Starting with Oracle 11g Release 1 and above, the options are
NOLOGGING, COMPRESS FOR OLTP, and COMPRESS BASIC. NOLOGGING disables any
compression
, COMPRESS FOR OLTP enables compression for all operations (direct or
conventional path), and COMPRESS BASIC enables compression for direct path
operations only.

以上有NOLOGGING disables any compression ,意思是如果表设置为nologging属性后,指定表的压缩属性不起任何作用吗? 谢谢!
2#
发表于 2012-8-12 13:05:15
这里我也不理解TOM 要真实表达的意思, 但是可以肯定 nologging 是不会禁用compression压缩的


SQL> select * from v$version;

BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE    11.2.0.3.0      Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production


SQL> create table compressme tablespace users nologging compress for OLTP as select * from dba_objects where 0=1;

Table created.

SQL> create table compressme1 tablespace users nologging as select * from dba_objects where 0=1;

Table created.

SQL> insert into compressme select * from dba_objects;

76275 rows created.


SQL> insert into compressme1 select * From dba_objects;

76275 rows created.

SQL> commit;

Commit complete.


  1* select segment_name ,blocks from dba_segments where segment_name like 'COMPRESSME%'
SQL>
SQL>
SQL> /

SEGMENT_NAME                       BLOCKS
------------------------------ ----------
COMPRESSME1                          1152
COMPRESSME                            512

回复 只看该作者 道具 举报

3#
发表于 2012-8-12 13:10:42
TKS,Maclean

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-16 02:49 , Processed in 0.050923 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569