zoukankan      html  css  js  c++  java
  • oracle 查询用户权限

    查询用户和权限

    select object_name,created

    from user_objects;

    受权

    grant select any table,create table,create view to dbjcy;

    查询表空间

    select tablespace_name from dba_tablespaces;

    查询用户的权限

    select *

    from session_privs;

    收回用户权限

    revoke select any table,create table,create view,create session

    from dbjcy;

    revoke select

    on cat.baby.cat

    from dog;

    Role(角色):

    create role animal;

    grant select any table,create table,create view,create session

    to animal;

    grant amimal to dog,cat,pig;

    查看角色的权限:

    select *

    from role_sys_privs

    where role like 'ani%';

    查询授予animal角色的用户:

    select *

    from dba_role_privs

    where granted_role like 'ani%';

    为用户授予个别权限:

    grant select

    on supplier--表名

    to public

    查询用户下的对象和对象权限之间的关系:

    select *

    from user_tab_privs_made;

  • 相关阅读:
    数据科学 R语言速成
    F#周报2019年第29期
    F#周报2019年第28期
    F#周报2019年第27期
    F#周报2019年第26期
    F#周报2019年第25期
    F#周报2019年第24期
    F#周报2019年第23期
    .NET工程师的书单
    F#周报2019年第22期
  • 原文地址:https://www.cnblogs.com/newlangwen/p/3304419.html
Copyright © 2011-2022 走看看