Oracle 数据库创建表空间和用户命令

来源:互联网 发布:购买淘宝新店铺 编辑:程序博客网 时间:2024/05/24 16:15

1.  创建临时表空间

create temporary tablespace jxy_temp
tempfile 'E:\app\Administrator\oradata\orcl\jxy_temp.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;

2. 创建数据表空间

create tablespace JXY
logging
datafile 'E:\app\Administrator\oradata\orcl\jxy_data.dbf'
size 32m
autoextend on
next 32m maxsize 2048m
extent management local;

3. 创建用户并指定表空间

create user jxy identified by "jxy"
default tablespace JXY
temporary tablespace jxy_temp;

4. 给用户授予权限

grant connect,resource,dba to jxy;

原创粉丝点击