创建用户: create user demo001 identified by demo001;
创建表空间:
create tablespace data001 datefile 'D:\share\02-Oracle\data001.dbf' size 100m;
将表空间分配给用户:
alter user demo001 default tablespace data001;
给用户授权:
grant create session,create table,unlimited tablespace to demo001;
以demo001登陆建立表tt_test:
create table tt_test(id number(10));