建立索引就可以指定存取在不同表空间
关于约束的索引可以参考
http://www.oradb.net/sql/sqlskill_004.htm

解决方案 »

  1.   

    -- Create table
    create table AMY.TEST
    (
      SSS NUMBER not null
    )
    tablespace USERS
      pctfree 10
      pctused 40
      initrans 1
      maxtrans 255
      storage
      (
        initial 128K
        next 128K
        minextents 1
        maxextents 4096
        pctincrease 0
      );
    -- Create/Recreate indexes 
    create index AMYC.FDS on AMY.TEST (SSS)
      tablespace USERS
      pctfree 10
      initrans 2
      maxtrans 255
      storage
      (
        initial 128K
        next 128K
        minextents 1
        maxextents 4096
        pctincrease 0
      );
      

  2.   

    --建表
    create table AMY.TEST
    (
      SSS NUMBER not null
    )
    tablespace USERS;--建索引
    create index AMYC.FDS on AMY.TEST (SSS)
      tablespace orther;
      

  3.   

    在table属性的Options页可以指定表所在的表空间。
    在table属性的Keys页和Indexes页,编辑各项目,然后在各项目属性的Options页设置主键或索引所在的表空间。