oracle 10g新建索引ORA-25150 不允许对区参数执行

来源:互联网 发布:知的草书写法 编辑:程序博客网 时间:2024/05/01 12:06

在用pl/sql为表添加索引的时候,一直在报错 ORA-25150 不允许对区参数执行

查阅各种资料后

用pl/sql新建索引的时候会生成sql

-- Alter table alter table LZ_LOCATION  storage  (    next 320  );-- Create/Recreate indexes create index index on LZ_LOCATION (city_id)  tablespace SKYEYE  pctfree 10  initrans 2  maxtrans 255  storage  (    initial 320K    next 320K    minextents 1    maxextents unlimited    pctincrease 0  );

解决办法为:

alter table LZ_LOCATION  MOVE  storage  (    next 320  );

添加个move就OK了


原因是:


表空间使用本地管理,其中的表不能修改NEXT MAXEXTENTS和PCTINCREASE参数

使用数据自动管理的表空间,其中的表可以修改NEXT MAXEXTENTS和PCTINCREASE参数


原创粉丝点击