用户scott默认表空间是users
用户test4默认表空间分配为tr(收回unlimited tablespace后重新分配的表空间)
为test4默认表空间分配10m配额
test4在没有scott默认表空间users的权限及配额的情况下,可以为scott建表吗?
按照下述sql即可验证,答案是可以的
create tablespace tr datafile ‘/ocp/oracle/oradata/orcl/tr.dbf’ size 10m;
create user test4 identified by test4 default tablespace tr;
grant connect,resource to test4;
revoke unlimited tablespace from test4;
alter user test4 quota 10m on tr;
grant create any table to test4;
create table scott.b (id int) tablespace users;