//创建用户
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
可惜没收回来。不知道为何?有知道请留言啊。