sqlplus / as sysdba
create tablespace 表空间名 datafile '数据文件存放路径' size 200M AUTOEXTEND ON NEXT 5 M MAXSIZE UNLIMITED;
例:
CREATE TABLESPACE test DATAFILE 'F:\dev\oracle\test.DATA' size 200 M AUTOEXTEND ON NEXT 5 M MAXSIZE UNLIMITED;
create user 用户名 identified by 密码;
例:
create user test identified by root default tablespace test;
grant connect ,resource,dba to 用户名 ;
imp 用户/密码 file=文件路径 full=y ignore=y;
imp test/root file=F:\dev\oracle\test.dmp full=y ignore=y;
本文地址:https://blog.csdn.net/qq_39122985/article/details/108575494