日期:2014-05-16 浏览次数:20416 次
1、创建临时表空间
/* create temporary tablespace*/
create temporary tablespace student_temp?
tempfile 'D:\oracle\product\10.2.0\oradata\Student\student_temp.dbf'
size 50m?
autoextend on?
next 50m maxsize 20480m?
extent management local;?
?
2、创建数据表空间
/* create data tablespace*/
create tablespace student_data?
logging?
datafile 'D:\oracle\product\10.2.0\oradata\Student\student_data.dbf'
size 50m?
autoextend on?
next 50m maxsize 20480m?
extent management local;
?
3、创建用户并分配权限
/* create user and distribute tablespace */
create user student identified by cxhuan?
default tablespace student_data?
temporary tablespace student_temp;
?
4、给用户授权
/* authorize role to user */
grant connect,resource,dba to student;??