I will explain Grant Read Only Oracle User in this post.
Grant Read Only Oracle User
Most popular User type in the database is Read Only user. Because There is no risk of these users in the database, they cannot modify, drop or update,delete any table and any data in the database.
Select Any Table Grant
If you want to grant any user as Read Only user, you should grant it with Select any table privilige as follows.
If the user will select the Dictionary tables, then you should grant it with select any dictionary priviliges.
SQL> grant SELECT ANY TABLE to USERNAME; SQL> grant SELECT ANY DICTIONARY to USERNAME;
Create Read Only User
If you want to create Read Only user , you can create it using the following script.
SQL> create user read_only_user identified by Read_123; SQL> grant connect, create session to read_only_user; SQL> grant select any table to read_only_user;
If you want to grant select for specific tables instead of all tables, you can grant it as follows.
SQL> GRANT SELECT ON SCHEMA_OWNER.TABLE_NAME TO USERNAME; SQL> GRANT SELECT ON OE.CUSTOMERS TO MEHMETSALIH;
If you want to learn more details about Oracle priviliges and grant, you should read the following post.
441 views last month, 3 views today