create tablespace test datafile 'd:\oradata\test.dbf' size 100M; 这样建立了一个表空间,对应的数据文件为d:\oradata\test.dbfcreate user test identified test default tablespace test; 建立一个用户 grant create session to test; grant create table to test; 对test用户授权 conn test/test create table ttt(id number); 由于用户指定了表空间,所以建立的表ttt存放在test表空间(即d:\oradata\test.dbf中)
datafile 'd:\oradata\test.dbf' size 100M;
这样建立了一个表空间,对应的数据文件为d:\oradata\test.dbfcreate user test identified test default tablespace test;
建立一个用户
grant create session to test;
grant create table to test;
对test用户授权
conn test/test
create table ttt(id number);
由于用户指定了表空间,所以建立的表ttt存放在test表空间(即d:\oradata\test.dbf中)