| 
		
			| Granting Permissions for create type/procedure [message #507830] | Wed, 18 May 2011 03:27  |  
			| 
				
				
					| Vackar Messages: 81
 Registered: October 2007
 | Member |  |  |  
	| Hi, 
 I have a question regarding how to grant create type and create procedure roles correctly.
 
 Currently if I do this:
 
 
 
create user vackar_temp identified by "123456789";
grant create type  to vackar_temp ;
 Then as vackar_temp:
 
 
 
create type temp_col as table of number;
 I get the following error:
 
 
ORA-01031: insufficient privileges
 I've also tried:
 
 
grant resource to vackar_temp ;
But that doesn't work either
 
 
 If I run this:
 
 
select
  lpad(' ', 2*level) || granted_role "User, his roles and privileges"
from
  (
  /* THE USERS */
    select 
      null     grantee, 
      username granted_role
    from 
      dba_users
    where
      username like upper('%vackar_temp%')
  /* THE ROLES TO ROLES RELATIONS */ 
  union
    select 
      grantee,
      granted_role
    from
      dba_role_privs
  /* THE ROLES TO PRIVILEGE RELATIONS */ 
  union
    select
      grantee,
      privilege
    from
      dba_sys_privs
  )
start with grantee is null
connect by grantee = prior granted_role;
 I can see that the user does have the create type role:
 
 
User, his roles and privileges 
------------------------------ 
  VACKAR_TEMP                  
    CREATE TYPE                
    RESOURCE                   
      CREATE CLUSTER           
      CREATE INDEXTYPE         
      CREATE OPERATOR          
      CREATE PROCEDURE         
      CREATE SEQUENCE          
      CREATE TABLE             
      CREATE TRIGGER           
      CREATE TYPE              
    UNLIMITED TABLESPACE     
 
 Does anyone have any advice on this?
 
 Thanks,
 Vackaf
 |  
	|  |  | 
	|  | 
	|  | 
	| 
		
			| Re: Granting Permissions for create type/procedure [message #507935 is a reply to message #507840] | Wed, 18 May 2011 09:36   |  
			| 
				
				
					| Vackar Messages: 81
 Registered: October 2007
 | Member |  |  |  
	| Apologies, this was an error on my part, I misunderstood how my client was working. 
 It has an option with allows you to select a schema, I thought that this connected you to the schema as the schema owner, but in reality it didn't.
 
 Thanks for looking into this though.
 
 Vackar
 |  
	|  |  | 
	|  | 
	|  | 
	|  | 
	|  | 
	|  |