表空间一个困惑的问题

-- Create table
create table test111
(
  FID  NUMBER(22) not null,
  GXID NUMBER(22),
  GYID NUMBER(22)
)
tablespace CGTSSpa
  pctfree 10
  pctused 40
  initrans 1
  maxtrans 255
  storage
  (
    initial 64K
    minextents 1
    maxextents unlimited
  );


提示ora-00959 表空间'CGTSSpa'不存在

运行  select * from dba_data_files t;
13        D:\ORACLE\ORADATA\ORADB\CG_FILE2.DBF        13        CGTSSpa        203423744        24832        AVAILABLE        13        YES        34359721984        4194302        1        203358208        24824

存在这个表空间的呀?
那为什么会提示这样的错误呢?
我也来说两句 查看全部回复

最新回复

  • liab (2008-9-02 11:39:10)

    select tablespace_name from dba_tablespaces, 看有没有?
  • redneck_he (2008-9-03 12:03:34)

    表空间命名有问题,名称里面有小写字母,所以你必须得用""号
    create table test111
    (
      FID  NUMBER(22) not null,
      GXID NUMBER(22),
      GYID NUMBER(22)
    )
    tablespace "CGTSSpa"
      pctfree 10
      pctused 40
      initrans 1
      maxtrans 255
      storage
      (
        initial 64K
        minextents 1
        maxextents unlimited
      );