1. 程式人生 > >oracle表空間的創建+權限分配

oracle表空間的創建+權限分配

next 權限分配 權限 username log In oracl 分享圖片 ble

技術分享圖片
 1 /*分為四步 */
 2 /*第1步:創建臨時表空間  */
 3 create temporarytablespace user_temp  
 4 tempfile D:\oracle\oradata\Oracle9i\user_temp.dbf 
 5 size 50m  
 6 autoextend on  
 7 next 50m maxsize 20480m  
 8 extent management local;  
 9  
10 /*第2步:創建數據表空間  */
11 create tablespace user_data  
12 logging  
13 datafile D:\oracle\oradata\Oracle9i\user_data.dbf 14 size 50m 15 autoextend on 16 next 50m maxsize 20480m 17 extent management local; 18 19 /*第3步:創建用戶並指定表空間 */ 20 create user username identified by password 21 default tablespace user_data 22 temporary tablespace user_temp;
23 24 /*第4步:給用戶授予權限 */ 25 grant connect,resource,dba to username;
View Code

本文摘錄於:https://www.cnblogs.com/netsql/articles/1745978.html

oracle表空間的創建+權限分配