您好,欢迎访问一九零五行业门户网

ORA-14185错误解决实例

创建hash分区,利用hash函数打散某列使数据均匀分布,一般用于均衡i/o,缺点数据不容易管理,哈希分区不能drop、split 以及merge
今天早上,生产服务出现了中间件服务拥堵情况,排查到最后发现了一张历史表的查询返回非常慢,进一步排查该表hash分区索引失效,,处于“unusable”状态,随重建索引。
问题产生在重建索引时“alter index index_name rebuild partition pa_1 parallel 32 nologging”,  返回如下错误
error at line 1:
ora-14185: incorrect physical attribute specified for this index partition
错误信息如下
[oracle@node1 ~]$ oerr ora 14185
14185, 00000, incorrect physical attribute specified for this index partition
// *cause:  unexpected option was encountered while parsing physical attributes
//          of a local index partition; valid options for range or composite range
//          partitions are initrans, maxtrans, tablespace, storage, pctfree, pctused,
//          logging and tablespace; but only tablespace may be specified for hash partitions
//          store in () is also disallowed for all but composite range partitions
// *action:  remove invalid option(s) from the list of physical attributes
//          of an index partition
问题提示很清晰:因该表上指定的索引时一个全局hash分区索引,分区为8个子分区,在rebuild时后面不能与logging和nologging语法结合使用。事实也的确如此,测试环境11gr2下经测试同样报错。
该情况现在记录下来,特提醒注意。
补充说明一下:创建hash分区,利用hash函数打散某列使数据均匀分布,一般用于均衡i/o,缺点数据不容易管理,哈希分区不能drop、split 以及merge分区。
其它类似信息

推荐信息