I would like to know how to grant all the privileges to a user over all other user's objects in oracle. Greetings and many thanks
Oracle – How to Grant All Privileges to a User Over All Other Users’ Objects
oraclepermissions
Related Question
- Oracle 12c – Problem Granting User Privileges via Roles
- MySQL – Does Dropping a User Revoke Privileges?
- Oracle Schema Privileges – Managing Permissions for Other Users
- How to confirm that object owners can grant and revoke privileges on objects he owns
- PostgreSQL – How to Grant All Privileges on a Database
- Oracle DB what is the difference between ALL, USER and DBA Objects
- Oracle 18c – Granting User Ownership Equivalence Over Another User’s Schema
Best Answer
Which privileges? Of course they are granted by using the appropriate GRANT command, but I suspect that is not what you are asking. You could use the ANY option (like GRANT SELECT ANY TABLE ...) but I strongly recommend against it as it violates the principle of granting least privilege necessary. I suspect what you really need is something like this:
Then do a sanity check on the spooled file 'doit.sql', edit as necessary, then execute it. Some do it all in one pop with a PL/SQL loop, but I'd rather capture the commands first and be able to do the sanity check on it.