標籤:style dbf檔案 空間 datafile next resource ace auto create
備忘:oracle版本Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
說明:建立暫存資料表空間注意關鍵字和建立資料表空間有所差別,語句類似
關於建立語句解說請查看:http://blog.chinaunix.net/uid-20802110-id-2105656.html
所列語句都是經過測試實戰!
1.建立表資料空間
說明:該版本資料庫建立資料表空間執行logging時報錯,不執行logging,預設也是logging
create tablespace cimp_space
datafile ‘d:\app\plm\oradata\orcl\cimp_space.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
2.建立暫存資料表空間
說明:臨時檔案(.dbf檔案)放置的位置隨意,一般放置在oracle安裝目錄中的oradata檔案夾
create temporary tablespace data_temp
tempfile ‘D:\oracle\oradata\Oracle9i\user_temp.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
3.建立使用者以及設定資料表空間
create user cimp
identified by hp242g2
default tablespace cimp_space
temporary tablespace cimp_temp;
4.授權
grant connect,resource,dba to cimp;
資料庫建立資料表空間、暫存資料表空、使用者、授權