//創(chuàng)建臨時表空間
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)建用戶并指定表空間
1.create user username identified by password
2.default tablespace test_data
3.temporary tablespace test_temp; //給用戶授予權(quán)限
1.grant connect,resource to username;
//以后以該用戶登錄,創(chuàng)建的任何數(shù)據(jù)庫對象都屬于test_temp 和test_data表空間,這就不用在每創(chuàng)建一個對象給其指定表空間了。
本文出自:億恩科技【www.itdijia.com】
服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|