ORA-01031:insufficient privileges提示信息是说“权限不足”,应该当前你运行这个创建语句的用户没有创建表空间的权限,用sysdba用户登录数据库,然后执行: grant create tablespace to user_name; 就行了
create tablespace text datafile 'E:/text.dbf' size 20M;create user sqls identified by 123 temporary tablespace text;grant connect,resource to sqls;我是这样写的。对吗
SQL> create user u2 identified by u2;用户已创建。SQL> grant connect,resource to u2;授权成功。SQL> create tablespace test_ts datafile 'd:\test1.dbf' size 1m;表空间已创建。
先得有创建表空间的权限才行,grant create tablespace to user_name;
grant create tablespace to user_name;
就行了
datafile 'E:/text.dbf'
size 20M;create user sqls
identified by 123
temporary tablespace text;grant connect,resource to sqls;我是这样写的。对吗