One: Create a temporary table space
create temporary tablespace IAF_DATA_TEMP tempfile 'IAF_DATA_TEMP.DBF' size 20GB autoextend on;
Two: Create a data table space
create tablespace IAF_DATA logging datafile 'IAF_DATA.DBF' size 30GB autoextend on;
Three: Create a user and specify the table space
create user user_p identified by user_p default tablespace IAF_DATA temporary tablespace IAF_DATA_TEMP profile default;
Four: User Authorization
grant connect to user_p; grant resource to user_p; grant dba to user_p; grant unlimited tablespace to user_p;
Five: Backup Database
exp user_p/user_p@ORCL file=D:\DB_BUP_20190726\odsuser_dj.dmp log=D:\DB_BUP_20190726\odsuser_dj.log
Six: Import Database
user_p IMP / user_p @localhost : 1521 / ORCL FROMUSER = user_p_qz TOUSER = user_p File = D: \ zh_1104 \ user_p.dmp log = D:. \ user_p \ user_p log ; FROMUSER: Remove User Database touser: user into the database