操作系统:SunOS
数据库:Oracle 9i出错信息如贴图。
说是:没有创建数据权限,赋予执行的权限。
可我执行了:grant create on NMCPMTS to cdma2000(当前登录用户名);还是不行,报错 ora-00942
不知道该怎么办看,哪位大神给详细的讲下该用哪些命令解决这个问题。

解决方案 »

  1.   

    ORA-01119 error in creating database file 'string'Cause: Insufficient space on device.Action: Decrease the size of the requested file or allocate a file on another device with more available space. If a file size was not specified in the statement, then specify a file size smaller than the available space on the device.
    --查看一下硬盘的空间够不够!
      

  2.   

    -- 应该是必须有DBA权限才能给某表空间加数据文件!
    -- 另外注意操作系统的 Oracle 用户是否有要创建数据文件所在目录的操作权限
    -- (最好将这个目录的属主改成Oracle)
      

  3.   

    grant resource to cdma2000 ;
    或者你使用BDA权限的用户进行添加就好了.
      

  4.   


    [oracle@dave ~]$ oerr ora 942
    00942, 00000, "table or view does not exist"
    // *Cause:
    // *Action:
      

  5.   

    -- 还有:你到底是往现有的表空间中添加数据文件?还是新创建一个表空间指定数据文件?
    -- 这个你自己要搞清楚:不同的事情,有不同的口令:-- 创建表空间:
    create tablespace tablespace_name datafile '/xxx1/xxx2/xxx3/file01.dbf' size xxxM;-- 往现有的表空间添加数据文件:
    sys@TBWORA> alter tablespace users add datafile 'D:\oracle\product\10.2.0\oradata\tbwora\USERS02.DBF' SIZE 1024M;表空间已更改。
      

  6.   

    sys@TBWORA> alter tablespace users add datafile 'D:\oracle\product\10.2.0\oradata\tbwora\USERS02.DBF' SIZE 1024M;表空间已更改。sys@TBWORA> create tablespace lym datafile 'D:\oracle\product\10.2.0\oradata\tbwora\LYM01.DBF' SIZE 1024M;表空间已创建。