首页 > 其他 > 详细

关于grant授权问题

时间:2014-09-01 10:43:42      阅读:505      评论:0      收藏:0      [点我收藏+]
单表授权
grant select , insert, update, delete on 表名 to 被授权用户名;
grant select , insert, update, delete, references , alter, index  on T_FIX_BIND_ROUTE  to  SPOS_USER3;
 
所有表授权
select ‘grant select, insert, update, delete on ‘ ||t.tname||‘ to 被授权用户名;‘ 
  from tab t 
 where t.tabtype = ‘TABLE‘;
 
单序列授权
grant select on 序列名 to 被授权用户名;
grant select on nac_user.seq_l_tradelist_atuoid to spos_user3;
 
授权某用户下所有序列
select ‘grant select on ‘ ||t.sequence_name||‘ to 被授权用户名;‘ 
  from sys.dba_sequences t 
 where sequence_owner = ‘授权用户名(大写)‘ ;
 
存储过程授权
grant execute on nac_posp to spos_user3;
 
赋给用户调试权限
grant debug session to 用户名
 
DBA收回权限
select ‘REVOKE ALL ON  WEB_USER.‘ || T.object_name || ‘ FROM NAC_USER;‘
  from dba_objects t
 where t.owner = ‘WEB_USER‘
   AND T.object_type IN (‘TABLE‘ , ‘SEQUENCE‘ , ‘VIEW‘ , ‘PROCEDURE‘)  --对象类型
 
 
 

关于grant授权问题

原文:http://www.cnblogs.com/bitter-first-sweet-last/p/3948709.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!