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')  --对象类型
     
     
     
  • 相关阅读:
    Super Jumping! Jumping! Jumping!(求最大上升子序列和)
    HZNU1837——一道简单的方程
    C
    B
    A
    bfs-Find a way
    bfs——Red and Black
    dfs——n皇后问题
    dfs——n皇后问题
    python画图中colorbar设置刻度和标签字体大小
  • 原文地址:https://www.cnblogs.com/bitter-first-sweet-last/p/3948709.html
Copyright © 2011-2022 走看看