以system身份進入系統,執行以下語句創建名爲itcastspace表空間, 並將關聯的物理文件創建在C盤根目錄,文件名爲itcast.dbf
`create tablespace lxspace
datafile 'c:\itcast.dbf'
size 100m
autoextend on
next 10m;
`
datafile 表示數據文件的武力存儲位置
size表示數據文件的初始化大小
autoextend on 表示數據文件大小數據滿了之後自增。
next 10m 表示每次自增10m
二、創建用戶
`create user liuxuan
identified by rooot
default tablespace lxspace
`
創建用戶,並設置密碼,指定歸屬的表空間,新創建的用戶,由於沒有指定權限,不能進行任何操作,包括登陸。