oracle new user grants read-only access to certain tables

The project team needs to create a read-only user and give the user read-only access to several tables. The steps are as follows:
1. Log in to the database with a user with DBA authority
2. Create a user with a user name of user1 and a password of password1
create user user1 identified by password1
3.
Grant connect to resource permissions grant connect to user1

4.
Grant select on A.TABLE1 to user1 with query permissions for the two tables of TABLE1 and TABLE2 with tablespace A

grant select on A.TABLE2 to user1

5. After logging in with user1 for testing, other tables have no query permissions, and TABLE1 and TABLE2 can only be queried without other permissions

Guess you like

Origin blog.csdn.net/wujian_csdn_csdn/article/details/107389957