Oracle/PLSQL: Grant/Revoke Privileges
Oracle/PLSQL: Grant/Revoke Privileges
References Ability to create a constraint that refers to the table. Alter Index Ability to change the table definition with the alter table statement. Ability to create an index on the table with the create index statement.
The syntax for granting privileges on a table is: grant privileges on object to user; For example, if you wanted to grant select, insert, update, and delete privileges on a table called suppliers to a user name smithj, you would execute the following statement: grant select, insert, update, delete on suppliers to smithj; You can also use the all keyword to indicate that you wish all permissions to be granted. For example: grant all on suppliers to smithj; If you wanted to grant select access on your table to all users, you could grant the privileges to the public keyword. For example: grant select on suppliers to public;
The syntax for granting execute privileges on a function/procedure is: grant execute on object to user;
For example, if you had a function called Find_Value and you wanted to grant execute access to the user named smithj, you would execute the following statement: grant execute on Find_Value to smithj; If you wanted to grant all users the ability to execute this function, you would execute the following: grant execute on Find_Value to public;