docker oracle install

https://hub.docker.com/r/9fevrier/oracle-11g
Informations

Oracle directory : /opt/oracle
Data directory : /app/oracle/data
SID : orcl
Login/password : system / oracle
System root : root / C%3hUMd@2#
System Oracle user : oracle / oracle
Start listener : lsnrctl start
Start database : sqlplus / as sysdba then startup
Start the container

docker run --name oracle -d -t -p 1521:1521 -p 22:2222 9fevrier/oracle-11g:15.08.21  /usr/bin/supervisord -c /etc/supervisord.conf

Tags
15.08.22
CentOS 6.6 + Oracle 11g r2
SSH port 22

### 查看容器id
docker ps -a
### 进入容器
docker exec -it 60a0b1414fd3 /bin/bash

### 切换用户名
su - oracle
### 设置参数
export ORACLE_SID=orcl
export ORACLE_HOME="/opt/oracle/product/11.2.0/dbhome_1"
export PATH="${PATH}:${ORACLE_HOME}/bin"

### 启动监听
lsnrctl start
lsnrctl status
### 启动oracle实例
sqlplus / as sysdba
shutdown immediate;
startup;
select * from user_tables;
原文地址:https://www.cnblogs.com/chenzechao/p/11599593.html