oracle一:oracle创建表空间,创建用户,分配权限

--第一步:用sql developer或sql plus的sys用户登录

--第二步创建临时表空间(注:不用创建dbf,oracle会自动创建)
create temporary tablespace supan_data_temp
tempfile 'C:\Program Files\OracleData\supan_data_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;


--第三步创建数据表空间
create tablespace supan_data
logging
datafile 'C:\Program Files\OracleData\supan_data.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;


--第四步:创建用户并指定表空间
create user supan identified by root
default tablespace supan_data
temporary tablespace supan_data_temp;


--第五步:给新用户授权
grant connect,resource,dba to supan;

猜你喜欢

转载自supanccy2013.iteye.com/blog/2162344