日期:2014-05-17  浏览次数:20755 次

oracle用PL/SQL建表空间时报错
create tablespace text
datafile 'E:/text.dbf'
size 20M;



ORA-01031:insufficient privileges的错误
求解
Oracle PL/SQL

------解决方案--------------------
先给自己授权,其次表空间最好放在一起。
------解决方案--------------------
ORA-01031:insufficient privileges

提示信息是说“权限不足”,应该当前你运行这个创建语句的用户没有创建表空间的权限,用sysdba用户登录数据库,然后执行:
grant create tablespace to user_name;
就行了
------解决方案--------------------
没有权限呀,用管理员用户登上数据库后,把创建表空间的权限给用户。
------解决方案--------------------
SQL> create user u2 identified by u2;

用户已创建。

SQL> grant connect,resource to u2;

授权成功。

SQL> create tablespace test_ts datafile 'd:\test1.dbf' size 1m;

表空间已创建。
------解决方案--------------------
引用:
create tablespace text
datafile 'E:/text.dbf'
size 20M;

create user sqls
identified by 123
temporary tablespace text;

grant connect,resource to sqls;

我是这样写的。对吗

先得有创建表空间的权限才行,grant create tablespace to user_name;