Skip to content

Instantly share code, notes, and snippets.

@guimadaleno
Created September 1, 2022 15:13
Show Gist options
  • Save guimadaleno/ebc73119be806411fd857730ffdf4d8f to your computer and use it in GitHub Desktop.
Save guimadaleno/ebc73119be806411fd857730ffdf4d8f to your computer and use it in GitHub Desktop.
Installing and restoring DUMP file into Oracle 11.2.0 XE Server via Docker
# Credentials
# ========================================
# hostname: localhost
# port: 49161
# sid: xe
# username: system
# password: oracle
# On host
# ========================================
# Pull container
docker pull oracleinanutshell/oracle-xe-11g
# Creating container Oracle 11.2.0 XE
docker run -d -p 49161:1521 --name oracle-db -e ORACLE_ALLOW_REMOTE=true -e ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe oracleinanutshell/oracle-xe-11g
# On host, copy dump to docker
docker cp DUMPFILE.DMP oracle-db:/u01/app/oracle/admin/XE/dpdump/DUMPFILE.DMP
# On container CLI
# ========================================
# On docker, check if dump is ok
cd /u01/app/oracle/admin/XE/dpdump
ls -l
# Go to bin path
cd /u01/app/oracle/product/11.2.0/xe/bin
# Run import command
./impdp system/oracle@xe dumpfile=DUMPFILE.DMP full=y
# More info
# https://hub.docker.com/r/oracleinanutshell/oracle-xe-11g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment