oracle创建表空间和用户

来源:互联网 发布:网络银行的运作模式 编辑:程序博客网 时间:2024/05/21 04:24

建立临时表空间
create temporary tablespace test_temp
tempfile 'F:\oradata\orcl\test\test_temp.dbf'
size 10M
autoextend on
next 10M
maxsize 100M
extent management local;

 

建立数据表空间
create tablespace test_data
datafile 'F:\oradata\orcl\test\test_data.dbf'
size 10M
autoextend on
next 10M
maxsize 100M
extent management local;

 

创建用户
create user username
identified by password
default tablespace test_data
temporary tablespace test_temp;

 

用户授权:
grant connect,resource to username;

0 0
原创粉丝点击