简体   繁体   English

授予查看权限,但不授予基础表访问权限

[英]Granting access to view but not the underlying tables

Lets say I have three schemas, a , b and c in an Oracle database. 可以说我在Oracle数据库中有三个架构, abc

I have a table, at . 我有一张桌子, at

I have a view, bv , which is just view on at (in the real case there is actually a.t1 , a.t2 etc). 我有一个视图bv ,它只是在at查看(在实际情况下,实际上是a.t1a.t2等)。

I want to grant c select access on bv but not at . 我想授予c选择上访问bv但不是at

What are the grants I have to issue for at and bv ? 我必须为atbv发放哪些补助?

You can achieve it by grant the SELECT PRIVILEGE to user 'a' WITH GRANT OPTION 您可以通过将SELECT PRIVILEGE授予用户'a' WITH GRANT OPTION

Grant user b to select at: 授予用户b在以下位置进行选择:

GRANT SELECT ON a.t TO b WITH GRANT OPTION;

Grant user c to select on bv: 授予用户c在bv上选择:

GRANT SELECT ON b.v TO c;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更新索引视图的基础表,但视图中不存在该列 - Updating underlying tables of indexed view but the column is not present in the view 授予访问权以从一个表中进行选择,但不访问底层表? - Grant access to select from one table, but not access to underlying tables? 我的分区视图仍在访问所有底层基表 - My partitioned view is still accessing all underlying base tables 在写入SQL Server 2014中的基础表后立即查询视图 - Querying a view immediately after writing to underlying tables in SQL Server 2014 在视图及其基础表上运行查询之间的区别 - Difference between running a query over a view and its underlying tables SELECT对SQL 2005视图的访问,对底层表的访问受到限制 - SELECT Access to SQL 2005 View with Restricted Access to Underlying Table 授予对另一个数据库的用户/角色的访问权限 - Granting access to one db to users/roles of another 在SQLServer 2012中,当明确拒绝对基础表的访问时,如何从视图中进行选择 - In SQLServer 2012 how can i SELECT from a view when access to underlying table is ecplicitly DENYied 如何允许用户通过视图选择数据但不限制对基础表的访问 - How to allow a user to select data through a view but not restrict access to underlying table 向非超级用户授予Redshift系统表权限 - Granting permissions on Redshift system tables to non-superusers
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM