论坛首页 综合技术论坛

oracle 收回查寻权限

浏览 1988 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-12-05  

//创建用户
create user test identified  by test default tablespace zjgc temporary tablespace temp;

//创建查询的角色
create role selectrole

//创建selectrole 访问数据库的权限
grant create  session  to selectrole

//把有查询表的权限赋值给该角色
grant select on zjgc.zgjsj_jxx  to selectrole

//把角色的权限赋值给用户
grant  selectrole to test

//收回权限
revoke  select on zjgc.zgjsj_jxx  from  selectrole

 

 

 

可惜没收回来。不知道为何?有知道请留言啊。

论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics