It’s possible create a readonly database user at an Oracle Database?
How?
It’s possible create a readonly database user at an Oracle Database? How?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A user in an Oracle database only has the privileges you grant. So you can create a read-only user by simply not granting any other privileges.
When you create a user
the user doesn’t even have permission to log in to the database. You can grant that
and then you can go about granting whatever read privileges you want. For example, if you want
RO_USERto be able to querySCHEMA_NAME.TABLE_NAME, you would do something likeGenerally, you’re better off creating a role, however, and granting the object privileges to the role so that you can then grant the role to different users. Something like
Create the role
Grant the role SELECT access on every table in a particular schema
And then grant the role to the user