您的当前位置:我要购书网>在线阅读>数据库

ora-14185: incorrect physical attribute specified for this index partition

来源:互联网  作者:  发布:我要购物网收集整理  发布时间:2006-8-31 人气:172

要将一个分区索引挪到指定的表空间,首先检查一下:

Segment Name Size In MB Tablespace Name Segment Type--------------------------- ---------- -------------------- ------------------MISC16.PK_SERVSTAT 6 INDEX_HIS02 INDEX PARTITIONMISC16.PK_SERVSTAT 6 INDEX_HIS03 INDEX PARTITION

直接使用alter index ... rebuild tablespace ...肯定是不行的,你会收到ORA-14086报错,例如:SQL> alter index MISC16TEST.PK_SERVSTAT rebuild tablespace DATA_DYNAMIC nologging;alter index MISC16TEST.PK_SERVSTAT rebuild tablespace DATA_DYNAMIC nologging *ERROR at line 1:ORA-14086: a partitioned index may not be rebuilt as a whole

SQL>

我们需要使用:ALTER INDEX <索引名称> REBUILD PARTITION <索引分区名称> [tablespace 表空间] [nologging];语法来重建分区索引:SQL> ALTER INDEX MISC16TEST.PK_SERVSTAT REBUILD PARTITION IDX_SERVSTAT_P3 tablespace DATA_DYNAMIC nologging;ALTER INDEX MISC16TEST.PK_SERVSTAT REBUILD PARTITION IDX_SERVSTAT_P3 tablespace DATA_DYNAMIC nologging *ERROR at line 1:ORA-14185: incorrect physical attribute specified for this index partition

SQL>

关于ORA-14185 的解释:Error: ORA-14185Text: 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

总结:这个 ORA-14185 其实是oracle的 Bug 1890073:

一般来说,带有下面这些的选项的rebuild index语句会遇到ORA-14185错误:logging nologging initrans 10 maxtrans 10 compress nocompress storage (next 1m) storage (buffer_pool default)

而带有下面这些的选项的rebuild index语句则不会遇到ORA-14185错误:parallel noparallel pctfree 10 compute statistics online tablespace system

例如:SQL> ALTER INDEX PK_SERVSTAT REBUILD PARTITION IDX_SERVSTAT_P3 tablespace DATA_DYNAMIC;

Index altered.SQL>

相关文章
· oracle adf框架介绍
· oracledba讲座笔记2--- oracle运行环境..
· ora-00354,ora-00353和ora-0031..
· oracle常見問題集(四)
· ora-14185: incorrect physica..
· oracle performance sql tuning
· oracle查询指定索引提高查询效率
· ora-01502 state unusable错误成因..
· oracle中lob字段的使用和维护
· oracle objects for ole 及在vb中..
热点文章
%>
· creating user controls
· 提高fastreplace速度 (fstrrep.pas)
· asc ii 完整码表及简介
· 自动生成拼音(汉字反查到拼音)
· sql2000无法安装的解决办法
· 浏览器集成教学 自定义浏览器
· vc++技术内幕(第四版)笔记(第7章)
· mysql5.0中文乱码解决方案
· sql server日期计算
· vc下利用ado连接access数据库
 淘宝旺旺:我要购书网上书店『图书目录
本购书中心地址: 杭州市延安路111号清波商厦南楼D座(总部) 上海市闸北区老沪太路网上购书中心(沪部),  邮编:310002
电子邮件:books@51goushu.com  经营许可证编号:沪ICP备06038574号
版权所有 2003-2008 © All Rights Reserved .购书网