日期:2014-05-16  浏览次数:20511 次

数据库表结构空间学习
---创建表命名空间
create tablespace test 
datafile 'D:\oracle\product\10.2.0\oradata\personalDB\tbsp_test'size 50M 
default storage (initial 500k
next 500k
minextents 1
maxextents unlimited
pctincrease 0);

--创建用户1并设置其表命名空间为test
create user test1 identified by ding default tablespace test;
grant resource,connect,dba to test1;
--创建用户2并设置其表命名空间为test
create user test2 identified by ding default tablespace test;
grant resource,connect,dba to test2;


注意:同一个表空间中的表是以用户为单位的。如用户test1所创建的表"t_test",用户test2访问的时候应该用'test1.t_test';