查询用户和权限
select object_name,created
from user_objects;
受权
grant select any table,create table,create view to dbjcy;
查询表空间
select tablespace_name from dba_tablespaces;
查询用户的权限
select *
from session_privs;
收回用户权限
revoke select any table,create table,create view,create session
from dbjcy;
revoke select
on cat.baby.cat
from dog;
Role(角色):
create role animal;
grant select any table,create table,create view,create session
to animal;
grant amimal to dog,cat,pig;
查看角色的权限:
select *
from role_sys_privs
where role like 'ani%';
查询授予animal角色的用户:
select *
from dba_role_privs
where granted_role like 'ani%';
为用户授予个别权限:
grant select
on supplier--表名
to public
查询用户下的对象和对象权限之间的关系:
select *
from user_tab_privs_made;