Oracle:我需要对序列授予什么权限?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5860632/
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
Oracle: What permissions do I need to grant on a sequence?
提问by chris
I have a new sequence in my database.
我的数据库中有一个新序列。
What permissions do I need to grant to my web user in order for the sequence to be used? I tried granting select on the sequence, but the web user still can't seem to see it.
我需要授予我的网络用户什么权限才能使用序列?我尝试在序列上授予选择权,但网络用户似乎仍然看不到它。
回答by Chris Farmer
I think "select" should be sufficient. Is your query correctly qualifying the schema that the sequence exists in?
我认为“选择”应该就足够了。您的查询是否正确限定了序列所在的架构?
select someschema.somesequence.nextval from dual;
回答by AgonyClanKios
GRANT SELECT, ALTER ON SOMESCHEMA.SQ_SOMESEQUENCE TO OTHERSCHEMA WITH GRANT OPTION;