权限赋予即可:alter user 用户名 quota unlimited on users;
下面是我SQLPLUS实现users权限的赋予:
SQL> connect daqing/thinking
已连接。
SQL> create table stud(name nvarchar2(10),age integer);
create table stud(name nvarchar2(10),age integer)
*
第 1 行出现错误:
ORA-01950: 对表空间 'USERS' 无权限
SQL> connect system/thinking
已连接。
SQL> alter user 用户名quota unlimited on users;
用户已更改。
SQL> connect daqing/thinking
已连接。
SQL> create table stue(name nvarchar2(10),age integer);
表已创建。
SQL> drop table stue;
表已删除。
SQL> spool off;
下面介绍一下其他管理语句:分配用户权限
-- 分配用户 Sam 创建表,创建序列,创建存储过程和创建视图的权限
grant create table,create sequence,create view,create procedure
to sam
l 去除用户权限
-- 去除用户 Sam 创建视图的权限
revoke create view from sam;
l 分配角色权限
-- 分配角色
下面是我SQLPLUS实现users权限的赋予:
SQL> connect daqing/thinking
已连接。
SQL> create table stud(name nvarchar2(10),age integer);
create table stud(name nvarchar2(10),age integer)
*
第 1 行出现错误:
ORA-01950: 对表空间 'USERS' 无权限
SQL> connect system/thinking
已连接。
SQL> alter user 用户名quota unlimited on users;
用户已更改。
SQL> connect daqing/thinking
已连接。
SQL> create table stue(name nvarchar2(10),age integer);
表已创建。
SQL> drop table stue;
表已删除。
SQL> spool off;
下面介绍一下其他管理语句:分配用户权限
-- 分配用户 Sam 创建表,创建序列,创建存储过程和创建视图的权限
grant create table,create sequence,create view,create procedure
to sam
l 去除用户权限
-- 去除用户 Sam 创建视图的权限
revoke create view from sam;
l 分配角色权限
-- 分配角色