Link to home
Start Free TrialLog in
Avatar of tozysentosa
tozysentosa

asked on

ORACLE - Granting priviliege for user to read tables, run packages only

Hi,

How do I garnt privilege to a new user only to read from tables and only to run packages in Oracle?

Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

for the read tables:

GRANT SELECT ANY TABLE TO your_user;

for the packages:

GRANT EXECUTE ANY PROCEDURE TO your_user


you might want to save this bookmark:
http://www.techonthenet.com/oracle/grant_revoke.php
Granting "select any table" will give the user freedom to select any tables data in existing schemas as well as for new additions in the whole database. I think the better policy would be u should give "minimum rights" as per  function & role of the user in the system. So it would be the best practice to only give "select" grants those tables actually the user should supposed to access
For give grants on individual tabes & procedures
use
 tables:
GRANT select on  <other_schema>.<table_name>  TO <your_user>;
Procedures:
GRANT execute on  <other_schema>.<table_name>  TO <your_user>;
 
ASKER CERTIFIED SOLUTION
Avatar of Naveen Kumar
Naveen Kumar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tozysentosa
tozysentosa

ASKER

Hi thanks it works...