--删除用户
drop user CLOUDTEST cascade;
--删除表空间
drop tablespace TBS_A_CLOUDTEST including contents and datafiles;
CREATE TABLESPACE TBS_A_GYZX DATAFILE 'D:\data\DATABASE_CLOUDTEST\TBS_A_GYZX1.ORA'
SIZE 50M AUTOEXTEND ON NEXT 32M MAXSIZE UNLIMITED DEFAULT STORAGE
(INITIAL 64K NEXT 64K MAXEXTENTS UNLIMITED PCTINCREASE 50);
create user CLOUDTEST
identified by CLOUDTEST
default tablespace TBS_A_GYZX
temporary tablespace TEMP;
grant connect to CLOUDTEST with admin option;
grant dba to CLOUDTEST with admin option;
grant resource to CLOUDTEST with admin option;
imp CLOUDTEST/CLOUDTEST@four file=D:\CLOUDAPP_2016-08-25-2.dmp full=y ingore=y;
exp CLOUDAPP/CLOUDAPP@127.0.0.1/CLOUDAPP file=D:\CLOUDAPP_2016-08-25-2.dmp
注意事项:
如果导入库和导出库的表空间不同,则会导致很多问题,如有些表和数据会没有。