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

在用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参数

猜你喜欢

转载自usench.iteye.com/blog/2179020