My Oracle Support Banner

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

Last updated on JANUARY 24, 2024

Applies to:

Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Cloud Service - Version N/A and later
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
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'

 

Changes

 

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
Changes
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.