Docker Run Oracle DB 18c XE: Difference between revisions
Jump to navigation
Jump to search
(→Run) |
(→Run) |
||
Line 30: | Line 30: | ||
oracle/database:18.4.0-xe | oracle/database:18.4.0-xe | ||
</source> | </source> | ||
===Volumes Location=== | |||
{| class="wikitable sortable" | |||
|- | |||
! Local location !! Container location !! Usage | |||
|- | |||
| <code>$ORACLE_HOME/oracle18c/oradata</code> || <code>/opt/oracle/oradata</code> || Oracle 18c XE Data | |||
|- | |||
| <code>$ORACLE_HOME/oracle18c/scripts/setup</code> || <code>/opt/oracle/scripts/setup</code> || Setup Scripts | |||
|- | |||
| <code>$ORACLE_HOME/oracle18c/scripts/startup</code> || <code>/opt/oracle/scripts/startup</code> || Startup Scripts | |||
|} | |||
<source lang="bash> | <source lang="bash> |
Revision as of 19:50, 15 July 2020
Linux: export ORACLE_HOME=/srv/oracle |
MacOS: export ORACLE_HOME=$HOME/oracle |
Build
cd $ACADEMIA_WSS/unix/dokr_wss/
mkdir academia-dokr-ora18c
cd academia-dokr-ora18c/
git clone https://github.com/oracle/docker-images.git .
cd OracleDatabase/SingleInstance/dockerfiles/
./buildDockerImage.sh -v 18.4.0 -x
Run
docker run --detach \
--name oracle18c \
--publish 1521:1521 \
--publish 5500:5500 \
--env ORACLE_PWD=oracle \
--env ORACLE_CHARACTERSET=AL32UTF8 \
oracle/database:18.4.0-xe
Volumes Location
Local location | Container location | Usage |
---|---|---|
$ORACLE_HOME/oracle18c/oradata |
/opt/oracle/oradata |
Oracle 18c XE Data |
$ORACLE_HOME/oracle18c/scripts/setup |
/opt/oracle/scripts/setup |
Setup Scripts |
$ORACLE_HOME/oracle18c/scripts/startup |
/opt/oracle/scripts/startup |
Startup Scripts |
docker run --detach \
--name oracle18c \
--publish 1521:1521 \
--publish 5500:5500 \
--env ORACLE_PWD=oracle \
--env ORACLE_CHARACTERSET=AL32UTF8 \
--volume $ORACLE_HOME/oracle18c/oradata:/opt/oracle/oradata \
--volume $ORACLE_HOME/oracle18c/scripts/setup:/opt/oracle/scripts/setup \
--volume $ORACLE_HOME/oracle18c/scripts/startup:/opt/oracle/scripts/startup \
oracle/database:18.4.0-xe