impdp and docker install oracleXE

docker oracle

https://hub.docker.com/r/sath89/oracle-xe-11g/
docker run -d -p 8080:8080 -p 1521:1521 -v /my/oracle/data:/u01/app/oracle sath89/oracle-xe-11g

create temporary tablespace YDM_DATA_temp tempfile'/u01/app/oracle/oradata/XE/YDM_DATA_tmp.dbf' size 1024m autoextend on next 100m maxsize 10240m extent management local;

create tablespace YDM_DATA logging datafile'/u01/app/oracle/oradata/XE/YDM_DATA.dbf' size 1024m autoextend on next 100m maxsize 10240m extent management local; 


create user ydm identified by 123456 default tablespace ydm_DATA temporary tablespace YDM_DATA_temp;

grant connect to ydm;

create directory backup2 as '/u01/app/oracle/home/backup/oracle';

grant read,write on directory backup2 to ydm;


impdp system/oracle directory=backup2 dumpfile=ydm_20180502.dmp logfile=ydm_20180502.log REMAP_SCHEMA=ydm:ydmtest table_exists_action=replace  remap_tablespace=ydm_data:ydm_test_data;
复制代码
posted @ 2018-05-29 20:56  zqiushi  阅读(442)  评论(0编辑  收藏  举报