For some reason, I am not able to assign a user to a specific tablespace. I ran the following in Oracle SQL Developer against a local Oracle 12c.
CREATE TABLESPACE tbs_sales
DATAFILE 'C:\app\oracle\oradata\oradev\sales.dbf' SIZE 50M
EXTENT MANAGEMENT LOCAL AUTOALLOCATE;
alter user sales quota unlimited on tbs_sales;
Then I logged on to Oracle SQL Developer as the "sales" user and ran the following statements:
create table Test (col1 int);
select * from user_tables;
It shows the "Test" table belongs to the "USERS" tablespace. I followed the example from this link:
http://www.orafaq.com/wiki/Tablespace
Can someone tell me what I am doing wrong?