Grant Read Only Oracle User

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.

How to Grant and Revoke Privileges | Create and Drop any User in Oracle Database

 

 

Do you want to learn Oracle Database for Beginners, then Click and read the following articles.

Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 210 views last month,  3 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply