I want to give certain authorizations to users who connect to the database. The scenario is as follows; users will be able to assign select queries to the tables and access the tables, but only users who are admin will be able to see the create scripts. How should I follow a path for this. I want to hide the query in the picture when connected from Oracle db or when entering the DDL content of the table from the terminal. How do you suggest a way to do this?enter image description here
I gave a role to hide sql queries and assigned this role to users who I don't want to see the queries, but I couldn't hide the sql query directly from this role.
all_views
. The code behindall_views
is literally "show all view definitions that the user has any privs on." You can't prevent that. If that's an issue, materialize the view with a CTAS to a standalone table and give them select privs on the table, not the view.