創建表空間

//創建臨時表空間 

 

create temporary tablespace test_temp

tempfile 'D:/app/hmit/oradata/mydata/test_temp.dbf' 

size 32m 

autoextend on 

next 32m maxsize 2048m 

extent management local; 

 

//創建數據表空間 

create tablespace test

logging 

datafile 'D:/app/hmit/oradata/mydata/test.dbf' 

size 32m 

autoextend on 

next 32m maxsize 2048m 

extent management local; 

 

//創建用戶並指定表空間 

create user test identified by test

default tablespace test

temporary tablespace test_temp;

 

//給用戶授予權限 

 

grant connect,resource to test

 

發佈了22 篇原創文章 · 獲贊 4 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章