Is it normal for an oracle view to loose all its grants when modifying the source SQL?
I am using SQL Developer if that has anything to do with it.
Is it normal for an oracle view to loose all its grants when modifying
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.
First of all, you don’t have “grants” – “grant” is an operation. You have “roles” and “privileges”.
Second, views have neither roles nor privileges themselves – schemas do have. Basically, a self-descriptive command is:
grant select on view_1 to schema_1.Third, schemas do not lose their privileges if you create or replace your view. Here’s a quick sample:
However, it is quite possible that SQL developer invokes
drop viewfirst instead ofcreate or replace. In this case, your privileges are automatically removed.