這裡以linux下Oracle
sqlplus
create tablespace hexiong datafile ?/hexiong
create user hexiong identified by hexiong default tablespace hexiong;
grant connect
conn hexiong/hexiong
create table t as select * from all_objects;
exec sys
PL/SQL procedure successfully completed
SQL> select * from sys
no rows selected
這表示該表空裡的對象集是自包含的(對象及其索引都在此表空間中)
alter tablespace hexiong read only;
[
From:http://tw.wingwit.com/Article/program/SQL/201311/16210.html