1.建立
create tablespace ts1
datafile 'c:\ts\ts1.dbf'
size 20m /*表空間大小20m*/
autoextend on next 2m maxsize 100m /*當表空間滿了,自動拓展2m,最大拓展到100m*/
extent management local; /*設定表空間的區管理為本地管理,為的是減少分配extent的時候產生的內部遞迴sql,提高資料庫分配空間的效率.*/
2.使用
create table test1(id number,name varchar2(6)) tablespace ts1;
使用plsql可以看到,test1這個表存放到ts1表空間裡了,不然魔人都是放在users表空間裡
Oracle 11g建立表空間,並授權使用者
分為四步 第1步 建立臨時表空間 create temporary tablespace 臨時表空間名稱 tempfile d oracledata 臨時表空間名稱 編號 如01 dbf size 50m autoextend on next 50m maxsize unlimited extent...
Oracle11g建立表空間語句
在plsql工具中執行以下語句,可建立oracle表空間。分為四步 第1步 建立臨時表空間 create temporary tablespace yuhang temp tempfile d oracledata yuhang temp.dbf size 50m autoextend on nex...
Oracle11g建立表空間語句
在plsql工具中執行以下語句,可建立oracle表空間。分為四步 第1步 建立臨時表空間 create temporary tablespace yuhang temp tempfile d oracledata yuhang temp.dbf size 50m autoextend on nex...