请教大家,表的创建SQL如下,请问为什么会出现ORA-01653的错误。
-- Create table
create table TB_TB
(
  YM   VARCHAR2(512),
  IP   VARCHAR2(512),
  ID   NUMBER(16) not null,
  TIME DATE default sysdate
)
tablespace CAI_SERVICE
  pctfree 10
  initrans 1
  maxtrans 255
  storage
  (
    initial 61M
    minextents 1
    maxextents unlimited
  );
-- Create/Recreate primary, unique and foreign key constraints 
alter table TB_TB
  add constraint PK_VALIDATE_IP primary key (ID)
  using index 
  tablespace CAI_INDEX
  pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 17M
    minextents 1
    maxextents unlimited
  );
-- Create/Recreate indexes 
create index IND_TB_TB_IP on TB_TB (IP)
  tablespace CAI_INDEX
  pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 42M
    minextents 1
    maxextents unlimited
  );
create index IND_TB_TB_YM on TB_TB (YM)
  tablespace CAI_INDEX
  pctfree 10
  initrans 2
  maxtrans 255
  storage
  (
    initial 42M
    minextents 1
    maxextents unlimited
  );
ORA-01653错误SQL

解决方案 »

  1.   

    貌似表空间满了
    可以为这个表空间添加一个数据文件
    alter database datafile  XXXXXXXX resize XXXXm
    或者扩大这个表空间已有的数据文件
    alter tablespace histspace add datafile 'XXXXXXXXXXx' size XXXX autoextend off
    前提是你有权限
      

  2.   

    select tablespace_name,file_name, bytes, autoextensible, maxbytes from dba_data_files where tablespace_name='CAI_SERVICE'CAI_SERVICE /oracledata/orcl/cai_service01.dbf 34359721984 YES 34359721984我估计是空间满了,该怎样处理?并且不能影响现在运行的程序。
      

  3.   

    1 CAI_SERVICE /oracledata/orcl/cais_service.dbf 34359721984 YES 34359721984
    2 CAI_SERVICE /oracledata/orcl/cais_service01.dbf 34359721984 YES 34359721984
    3 CAI_SERVICE /oracledata/orcl/cais_service02.dbf 21474836480 YES 21474836480有3个DBF文件,好像都满了,请问这种情况我该怎么处理?
    注意,不能影响现在运行的JAVA等程序。
      

  4.   

    alter tablespace histspace add datafile 'XXXXXXXXXXx' size XXXX autoextend of
    可以使用这个语句添加一个数据文件
      

  5.   

    最新问题:
    alter tablespace TEMP add tempfile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP02.DBF' size 128m;
    会报错:ORA-01268: 用于变更永久性 TABLESPACE 的 TEMPFILE 子句无效