create tablespace EAR
logging
datafile 'E:\app\Administrator\oradata\orcl\EAR1.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
create temporary tablespace EAR_temp
tempfile 'E:\app\Administrator\oradata\orcl\EAR_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
create user EAR identified by 123
default tablespace EAR
temporary tablespace EAR_temp;
grant connect,resource,dba to EAR;
exp kf/zx@zxcc file=d:\zxcc.dmp full=y
exp EAR/123@orcl file = e:\ear.dmp full = n
imp archimguser/123@orcl file="E:\archimg20180122.dmp" full=y ignore=y
logging
datafile 'E:\app\Administrator\oradata\orcl\EAR1.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
create temporary tablespace EAR_temp
tempfile 'E:\app\Administrator\oradata\orcl\EAR_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
create user EAR identified by 123
default tablespace EAR
temporary tablespace EAR_temp;
grant connect,resource,dba to EAR;
exp kf/zx@zxcc file=d:\zxcc.dmp full=y
exp EAR/123@orcl file = e:\ear.dmp full = n
imp archimguser/123@orcl file="E:\archimg20180122.dmp" full=y ignore=y
本文介绍如何在Oracle数据库中创建表空间、临时表空间及用户,并授予相应的权限。具体步骤包括定义表空间的数据文件位置、大小及其扩展属性,设置用户的默认表空间和临时表空间,并赋予用户必要的数据库角色。

2177

被折叠的 条评论
为什么被折叠?



