首页 > 代码库 > 关于grant授权问题
关于grant授权问题
单表授权
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‘
关于grant授权问题
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。