Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Giving grants
Hi,
I'm new the list but I figured I'd jump right in and say "hi". :)
The permissions you can grant are:
SELECT UPDATE INSERT DELETE
GRANT SELECT ON scott.employee TO reporting;
This command is not case sensitive. Note that if you have more than one
user for which you would like to grant permissions is much simpler (from an
administrative perspective) to create a role, grant permissions to the role
(simply substitute the role name for the username in the above command) and
grant the role to the appropriate users.
If you have a group of tables you'd like to grant the same permissions for it's much easier to just build your SQL statements from dictionary views. The following example will grant SELECT permissions on all tables owned by SCOTT to user X. Note that you will need to be logged in as user SCOTT to run this statement.
SELECT 'GRANT SELECT ON '||TABLE_NAME||' TO X;' FROM USER_TABLES ORDER BY 1; Hope this helps!
Jeff Gumpert
President
Gumpert Consulting Services
jeff_at_gumpertconsulting.com
-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of satish
plakote
Sent: Monday, October 16, 2000 1:01 AM
To: Multiple recipients of list ORACLE-L
Subject: Giving grants
hi,
i have a set of tables in a database which is created and owned by me,now i
want to grant only limited privileges to user 'X' on those tables, so that
he can carry on with his daily work.
I am not sure of the syntax of the sql stmt to be issued.
Can somebody help!
Thanks
satish
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: satish plakote INET: satish_plakote_at_excite.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Sun Oct 15 2000 - 23:26:50 CDT
(or the name of mailing list you want to be removed from). You may
![]() |
![]() |