标签:style color ar sp 文件 on log bs ad
1.第一步,
先看看变空间的存放路径
--查看表空间文件路径
select tablespace_name,file_id,bytes/1024/1024,file_name
from dba_data_files order by file_id;
2.执行建立临时表空间语句
create temporary tablespace user_temp
tempfile ‘D:\oracle\oradata\Oracle9i\user_temp.dbf‘ --路径为第一步查询的得到的路径
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
3.执行创立表空间语句
create tablespace user_data
logging
datafile ‘D:\oracle\oradata\Oracle9i\user_data.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
4:创建用户并指定表空间
create user username identified by password
default tablespace user_data
temporary tablespace user_temp;
5:给用户授予权限
grant connect,resource,dba to username;
标签:style color ar sp 文件 on log bs ad
原文地址:http://www.cnblogs.com/Small-Life/p/4057634.html