oracle 在查询时授予用户使用表索引的权限是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3439529/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 21:12:22  来源:igfitidea点击:

What to grant to user to use index of table while querying?

oracleindexingprivileges

提问by Zango

I want to know if oracle uses index when user queries data from table and that user has been granted just:
grant select on table to user

我想知道当用户从表中查询数据时 oracle 是否使用索引并且该用户已被授予:
grant select on table to user

I want to know if it is needed some another grant to use index.

我想知道是否需要其他一些资助才能使用索引。

回答by Tony Andrews

No, there is no requirement (or ability) to grant access to an index. If the user can access the table then their queries can use any available index.

不,没有要求(或能力)授予对索引的访问权限。如果用户可以访问该表,那么他们的查询可以使用任何可用的索引。