//創(chuàng)建臨時(shí)表空間
1.create temporary tablespace test_temp
2.tempfile 'E:/Oracle/product/10.2.0/oradata/testserver/test_temp01.dbf'
3.size 32m
4.autoextend on
5.next 32m maxsize 2048m
6.extent management local; //創(chuàng)建數(shù)據(jù)表空間
1.create tablespace test_data
2.logging
3.datafile 'E:/Oracle/product/10.2.0/oradata/testserver/test_data01.dbf'
4.size 32m
5.autoextend on
6.next 32m maxsize 2048m
7.extent management local; //創(chuàng)建用戶(hù)并指定表空間
1.create user username identified by password
2.default tablespace test_data
3.temporary tablespace test_temp; //給用戶(hù)授予權(quán)限
1.grant connect,resource to username;
//以后以該用戶(hù)登錄,創(chuàng)建的任何數(shù)據(jù)庫(kù)對(duì)象都屬于test_temp 和test_data表空間,這就不用在每創(chuàng)建一個(gè)對(duì)象給其指定表空間了。
本文出自:億恩科技【1tcdy.com】
服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|