Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Minimal privileges to create a table

Re: Minimal privileges to create a table

From: Rachel Carmichael <carmichr_at_hotmail.com>
Date: Wed, 16 Aug 2000 03:01:57 GMT
Message-Id: <10590.114670@fatcity.com>


resource has ALWAYS given you unlimited tablespace...

do not check the privs assigned to the role. Check the privs assigned directly to the user. See below, run in my 7.3.4 database.

Rachel

SQL> create user resource_test identified by test   2 default tablespace users
  3 temporary tablespace temp;

User created.

SQL> select grantee,privilege from dba_sys_privs where grantee='RESOURCE_TEST';

no rows selected

SQL> select grantee,privilege from dba_sys_privs where grantee='RESOURCE';

GRANTEE PRIVILEGE

--------------- ------------------------------
RESOURCE        CREATE CLUSTER
RESOURCE        CREATE PROCEDURE
RESOURCE        CREATE SEQUENCE
RESOURCE        CREATE TABLE
RESOURCE        CREATE TRIGGER

SQL> grant resource to resource_test;

Grant succeeded.

SQL> select grantee,privilege from dba_sys_privs where grantee='RESOURCE_TEST';

GRANTEE PRIVILEGE

--------------- ------------------------------
RESOURCE_TEST UNLIMITED TABLESPACE
>From: Lyall Barbour <lbarbour_at_stanford.edu>
>Reply-To: ORACLE-L_at_fatcity.com
>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>Subject: Re: Minimal privileges to create a table
>Date: Tue, 15 Aug 2000 15:35:04 -0800
>
>From what I can see in 7.3.4, RESOURCE only gives you CREATE
>TABLE. Nothing about UNLIMITED TABLESPACE.
>Does it change in 8 and 8i, Rachel?
>
>Lyall Barbour
>
>At 12:37 PM 8/15/00 -0800, you wrote:
>>resource effectively gives you both of those
>>
>>
>>
>>>From: Lyall Barbour <lbarbour_at_stanford.edu>
>>>Reply-To: ORACLE-L_at_fatcity.com
>>>To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
>>>Subject: Re: Minimal privileges to create a table
>>>Date: Tue, 15 Aug 2000 10:26:07 -0800
>>>
>>>You need CREATE TABLE system privilege. Plus you need quota on the
>>>tablespace the table is being created in.
>>>
>>>Lyall Barbour
>>>
>>>At 08:26 AM 8/15/00 -0800, you wrote:
>>>>What are the minimal privileges required to create a table
>>>>
>>>>I have a user with resource privilege but when I try to create after
>>>>connecting as that user a table I get "insufficient privileges"
>>>>
>>>>John
>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Author: John Dunn
>>>> INET: john.dunn_at_sefas.co.uk
>>>>
>>>>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-L
>>>>(or the name of mailing list you want to be removed from). You may
>>>>also send the HELP command for other information (like subscribing).
>>>
>>>--
>>>Author: Lyall Barbour
>>> INET: lbarbour_at_stanford.edu
>>>
>>>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-L
>>>(or the name of mailing list you want to be removed from). You may
>>>also send the HELP command for other information (like subscribing).
>>
>>________________________________________________________________________
>>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>>
>>--
>>Author: Rachel Carmichael
>> INET: carmichr_at_hotmail.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-L
>>(or the name of mailing list you want to be removed from). You may
>>also send the HELP command for other information (like subscribing).
>
>--
>Author: Lyall Barbour
> INET: lbarbour_at_stanford.edu
>
>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-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).

Received on Tue Aug 15 2000 - 22:01:57 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US