Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Insert table returning error-ORA-01950: no privileges on tablespace 'USERS'

59671f6e-1faa-425e-a2e1-1bdc86447c45Mar 10 2019 — edited Mar 11 2019

Hi

I am new to ORacle. I installed Oracle XE latest version on my laptop. I created a table emp. But when i try to insert, i get error-ORA-01950: no privileges on tablespace 'USERS'.

I checked other discussions and they suggested to use alter statement.

You cannot insert data because you have a quota of 0 on the tablespace. To fix this, run

ALTER USER <user> quota unlimited on <tablespace name>;
.
However i am not sure on my tablespace name. How can i run this query

I also tried to find tablespace name with query:

select tablespace_name from all_tables where owner='richa' and table_name='emp';

But it throws an error- no row selected. without tablespace name, i cannot alter the user priveleges. And without proper priveleges, i cannot insert in the database.

I am totally confused, can someone help me with this issue.

ou cannot insert data because you have a quota of 0 on the tablespace. To fix this, run

ALTER USER <user> quota unlimited on <tablespace name>;
Comments
Post Details
Added on Mar 10 2019
7 comments
10,180 views