zoukankan      html  css  js  c++  java
  • 关键字(4):grant授权/revoke回收权限

    单表授权
    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')  --对象类型
     
     
     
  • 相关阅读:
    python字典
    python中List添加、删除元素的几种方法
    python数据处理之基本函数
    python批量处理
    python正则表达式
    python模块学习:os模块
    Hough transform(霍夫变换)
    MODBUS TCP/IP协议规范详细介绍
    Linux下run文件的直接运行
    双边滤波和引导滤波的原理
  • 原文地址:https://www.cnblogs.com/bitter-first-sweet-last/p/3948709.html
Copyright © 2011-2022 走看看