oracle修改索引属性,无法改变分区索引的COMPRESS属性?

ORACLE10204

PK_CUSTPSI_MANY_BEF_PART 是主键约束PK_CUSTPSI_MANY_BEF_PART 的索引(约束与索引同名),是个分区索引,现想把

该索引中2005年的索引作压缩,但无法实现?

MARKETING@retail>select compression from user_indexes where index_name='PK_CUSTPSI_MANY_BEF_PART';

COMPRESS

--------

DISABLED

Elapsed: 00:00:00.04

MARKETING@retail>select index_owner,index_name,partition_name,compression from dba_ind_partitions

2  where tablespace_name='CPSI_COMPRESS_IDX_2005' order by 1,2,3;

INDEX_OWNER                    INDEX_NAME                     PARTITION_NAME                 COMPRESS

------------------------------ ------------------------------ ------------------------------ --------

...

MARKETING                      IDX_CUSTPSI_MANY_BEF_PART_SOP4 PART_200511                    ENABLED

MARKETING                      IDX_CUSTPSI_MANY_BEF_PART_SOP4 PART_200512                    ENABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200501                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200502                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200503                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200504                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200505                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200506                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200507                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200508                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200509                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200510                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200511                    DISABLED

MARKETING                      PK_CUSTPSI_MANY_BEF_PART       PART_200512                    DISABLED

...

MARKETING@retail>alter index PK_CUSTPSI_MANY_BEF_PART modify partition PART_200512 compress;

alter index PK_CUSTPSI_MANY_BEF_PART modify partition PART_200512 compress

*

ERROR at line 1:

ORA-28659: COMPRESS must be specified at object level first

Elapsed: 00:00:00.14

MARKETING@retail>alter index PK_CUSTPSI_MANY_BEF_PART modify default attributes for partition PART_200512 compress;

alter index PK_CUSTPSI_MANY_BEF_PART modify default attributes for partition PART_200512 compress

*

ERROR at line 1:

ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option

Elapsed: 00:00:00.01

MARKETING@retail>alter index PK_CUSTPSI_MANY_BEF_PART compress;

alter index PK_CUSTPSI_MANY_BEF_PART compress

*

ERROR at line 1:

ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option

Elapsed: 00:00:00.01

MARKETING@retail>alter index PK_CUSTPSI_MANY_BEF_PART rebuild partition PART_200512 compress;

alter index PK_CUSTPSI_MANY_BEF_PART rebuild partition PART_200512 compress

*

ERROR at line 1:

ORA-28659: COMPRESS must be specified at object level first

Elapsed: 00:00:00.01

是我命令没写对,还是ORACLE不提供此功能,得删除索引重建时定义此属性?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值