Oracle 'no privileges on tablespace 表空间名称' 问题解决
create user bryan identified by bryan;
grant create session to bryan;
grant create table to bryan;
connect bryan/bryan;
create table bryan_employees
(
emp_no number,
emp_name varchar2(50)
);
创建表时会报如下错误:'no privileges on tablespace 'USERS'
原因在于users表空间中没有为bryan用户提供配额空间(在此默认的表空间为users)
有两种解决方案:
1.为bryan用户在users表空间上设置配额就可以了
alter user bryan quota 4M on users; //quota:配额,限额
2.GRANT UNLIMITED TABLESPACE TO bryan;