/*第1步:创建数据表空间 */
create tablespace WMS_TBS
logging
datafile 'D:\app\kong\product\11.2.0\dbhome_1\database\WMS_TBS.DBF' (表空间的位置)
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
/*第2步:创建用户并指定表空间,赋予权限 */
CREATE OR REPLACE DIRECTORY DATA_PUMP_DIR AS 'D:\oracle\'; (存放dmp文件的目录)
/*第3步:创建用户并指定表空间,赋予权限 */
create user wms identified by wms default tablespace WMS_TBS;
grant dba,create session to wms;
/*第4步:导入语句 */
IMPDP USERID='wms/wms@ORCL' schemas=wms directory=DATA_PUMP_DIR dumpfile=wms20180329.DMP encryption_password=a6a03f50689ee1755cf7050c54b2925c version = 11.2.0.1.0
--删除用户
sqlplus / as sysdba
drop user wms cascade;
--删除表空间
drop tablespace WMS_TBS;