Oracle创建表空间并赋权

时间:2022-06-08 08:38:44
SQL>
create tablespace stu_data
datafile 'E:\G3T05\oracle\t1\stu_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
 
Tablespace created
 
SQL>
SQL>
create temporary tablespace stu_temp
tempfile 'E:\G3T05\oracle\t1\stu_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
 

 
SQL> 
create user tudou identified by "111"
default tablespace stu_data
temporary tablespace stu_temp; 
 
User created
 
SQL> grant connect,resource to tudou;