Bo's Oracle Station

查看: 1130|回复: 0

2014-07-07-3.sql

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2014-7-8 09:51:47 | 显示全部楼层 |阅读模式
select  * from dba_sys_privs sp where sp.grantee='U1';

select  * from dba_role_privs  rp where rp.grantee='U1';

select  * from dba_tab_privs  tp where tp.grantee='U1';

select  * from dba_col_privs  cp where cp.grantee='U1';

grant create table to u1;

select * from dba_ts_quotas;

alter user u1 quota 1M on users;

  alter user u1 quota 0 on users;

  
select * from dba_ts_quotas;




select  * from dba_sys_privs sp where sp.privilege ='UNLIMITED TABLESPACE';

select * from dba_roles r where r.role='RESOURCE';

select * from role_sys_privs  rsp where rsp.role='RESOURCE';

select  * from role_tab_privs  rtp where rtp.role='RESOURCE';

select  * from role_role_privs rrp where rrp.role='RESOURCE';




grant resource to u1;

  revoke unlimited tablespace from u1;





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-12-5 10:29 , Processed in 0.033254 second(s), 24 queries .

快速回复 返回顶部 返回列表