Solved

how to grant select privilege to single sequence

Posted on 2009-05-20
6
7,121 Views
Last Modified: 2013-12-18
Hi,

I would like to grant the 'select' privilege to a sequence say sequence_abc within a schema say schema_xyz. Any links, ideas, sample code, resources highly appreciated. Thanks in advance.
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 74

Expert Comment

by:sdstuber
ID: 24433985
grant select on schema_xyz.sequence_abc to some_user;
0
 
LVL 74

Accepted Solution

by:
sdstuber earned 300 total points
ID: 24433990
or

grant select on schema_xyz.sequence_abc to some_role;

or

grant select on schema_xyz.sequence_abc to public;
0
 
LVL 60

Assisted Solution

by:Kevin Cross
Kevin Cross earned 200 total points
ID: 24434009
grant select on sequence_abc to {username}

(http://p2p.wrox.com/oracle/23287-sequence-grant-oracle.html)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 60

Expert Comment

by:Kevin Cross
ID: 24434024
Didn't see your response, Sean, or I would not have posted. :)
0
 
LVL 7

Author Closing Comment

by:gudii9
ID: 31583603
thank you very much
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 24460111
glad we could help.

mwvisa1  - don't worry about it.  posting within 3 minutes is "simultaneous" by my watch.  :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question