My Oracle Support Banner

ORA-01950 even though the RESOURCE role is granted to the user in 12c (Doc ID 1900136.1)

Last updated on FEBRUARY 19, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

In Oracle Database 12c,the following error is seen when trying to insert the data into a table,though the RESOURCE role is granted to the user

ORA-01950: no privileges on tablespace <tablespace name>

SQL> create user <username> identified by <password>;

User created.

SQL> grant create session,resource,create table to <username>;

Grant succeeded.

SQL> conn <username>/<password>
Connected.

SQL> create table <tablename>(<col1> <datatype>,<col2> <datatype>);

Table created.

SQL> insert into <tablename> values('<val1>',<val2>);
insert into <tablename> values('<val1>',<val2>)
            *
ERROR at line 1:
ORA-01950: no privileges on tablespace 'USERS'

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.