Docker builds oracle environment

1. Create a container

docker run -d -p 9090:8080 -p 1521:1521 -v /home/data/oracle:/u01/app/oracle sath89/oracle-12c

2. Log in to the container

docker exec -it c5a4400ae7d2 /bin/bash

su oracle 

$ORACLE_HOME/bin/sqlplus / as sysdba

conn system/oracle as sysdba

3. Examples

hostname: localhost

port: 1521

sid: xe

service name: xe.oracle.docker

username: system

password: oracle

 

Original image address: https://hub.docker.com/r/sath89/oracle-12c/

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325119781&siteId=291194637