oracle如何查询授权,oracle授权查询

–授予权限

grant insert,select,update,delete on table to user;

grant dba,resource to ytpbl;

grant create any sequence to ytpbl;

–撤销

revoke

REVOKE CONNECT, RESOURCE FROM 用户名;

REVOKE SELECt ON 表名 FROM 用户名;

REVOKE SELECt, INSERT, DELETE ON 表名 FROM 用户名1, 用户名2;

–Oracle查询用户,表相关信息…

–用户

SELECt * FROM DBA_USERS;

SELECt * FROM ALL_USERS;

SELECt * FROM USER_USERS;

–系统权限

SELECt * FROM DBA_SYS_PRIVS;

SELECt * FROM SESSION_PRIVS;

SELECt * FROM USER_SYS_PRIVS;

–角色

SELECt * FROM USER_ROLE_PRIVS;

SELECt * FROM DBA_ROLES;

–对象权限

select * from user_tab_privs ;

select * from user_tab_privs where table_name like ‘%AAAAA%’;

select * from dba_tab_privs;

select * from dba_tab_privs a where grantor=‘AAAA’ and a.owner not in (‘BBBB’) order by a.grantor;

select * from all_tab_privs;

–表查询

select * from user_tab_comments;

select * from user_col_comments

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值