Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

GRANT SELECT on all tables in a schema

Tmicheli-OracleOct 13 2014 — edited Jun 26 2018

User often are asking for a single statement to Grant privileges in a single step.

there are multiple workarounds for not have a GRANT SELECT on all table

FOR x IN (SELECT * FROM user_tables)

LOOP  

EXECUTE IMMEDIATE 'GRANT SELECT ON ' || x.table_name || ' TO <<someone>>';

END LOOP;

 

or

declare
cursor c1 is select table_name from user_tables;
cmd varchar2(200);
begin
for c in c1 loop
cmd := 'GRANT SELECT ON '||c.table_name|| <<TO YOURUSERNAME>>;
execute immediate cmd;
end loop;
end;

Oracle could implement a schema level grant

GRANT SELECT ON <schema name> to <<user>>

This request is now referenced with ER: 16899440 - SCHEMA WIDE PRIVILEGES

This post has been answered by Connor-Oracle on Jun 20 2024
Jump to Answer

Comments

SomeoneElse
I was able to connect. This is within 5 minutes of your post.
591186
I am also able to connect ;)
Anand...
Me also able to connect :)

Anand
Steeve
I am able to connect, it's the download that does not work.
Steeve
Took a while, but it is finally working now.
EdStevens
Steeve wrote:
Took a while, but it is finally working now.
Glad to hear it. But you need to understand this forum is simply a community of volunteers. No one here is responsible for fixing anything. ("Please fix")
876937
This webpage is not available
The webpage at https://edelivery.oracle.com/EPD/GetUserInfo/process_form might be temporarily down or it may have moved permanently to a new web address.
Here are some suggestions:
Reload this web page later.

Just right now.

It goes down again..... and it happens for more than hours, no one fix it

Can't believe it is the website quality for such a global and large company like Oracle...

Unbelievible!!

Why Oracle not run its business on unbreakable linux or its super Exadata??

Edited by: user5538768 on Jul 20, 2011 8:35 PM

Edited by: user5538768 on Jul 20, 2011 8:39 PM
585179
user5538768 wrote:

Can't believe it is the website quality for such a global and large company like Oracle...

Unbelievible!!

Why Oracle not run its business on unbreakable linux or its super Exadata??

Well if you don't like it then feel free to stay away from Oracle, no one ask you to stay close with it


Cheers
1 - 8

Post Details

Added on Oct 13 2014
90 comments
499,073 views