Home » RDBMS Server » Security » User Privilege
User Privilege [message #315263] Sun, 20 April 2008 10:13 Go to next message
Messages: 312
Registered: July 2007
Location: INDIA
Senior Member

Hello everyone

I have got a question regarding privileges in oracle database.

In oracle one can give privileges to a user on a single table

but what if one wants to give privileges for a whole schema to a user ?
Re: User Privilege [message #315264 is a reply to message #315263] Sun, 20 April 2008 10:34 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This does not exist.
There are:
- system privilege
- object privilege

Object privileges are on 1 object.

Re: User Privilege [message #315286 is a reply to message #315264] Sun, 20 April 2008 15:52 Go to previous message
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
In other words, if there are hundreds of objects in someone's schema, you'll have to use hundreds of GRANT statements to grant these privileges.

There's, however, no need to type all of them manually - write SQL which will generate such an SQL for you (SPOOL command and USER_OBJECTS view might be handy in this operation).
Previous Topic: privileage issue in V$session?
Next Topic: forgot the password of a schema
Goto Forum:

Current Time: Thu Apr 25 09:17:52 CDT 2024