Oracle is the big guy for OLTP, and it's used by many industry applications. So in the process of development of the inevitable use of Oracle database, Oracle database version has a lot of, where the Express version is a free development version, its main limitation is the size of the database maximum 1G, and some performance limitations, so it is more appropriate to take the development.
Here's how to use the Oracle-loaded Docker container for development:
To introduce the image of Docker-oracle, he was installed on Ubuntu based on the Oracle XE version to complete.
Pull an image that already has the Oracle XE installed.
Docker Pull alexeiled/docker-oracle-xe-11g
Launch an Oracle container with the newly downloaded image, open 22 1521 8080 port
Docker run-d-P 22:22-p 1521:1521-p 8080:8080 alexeiled/docker-oracle-xe-11g
Here are some basic information about the containers:
Oracle |
|
|
|
Sid |
Xe |
|
System |
Oracle |
Operating system: |
|
|
|
Root |
Admin |
|
|
|
So that we can use this container for development, such as a project that requires 3 Oracle servers:
Docker run-d-P 101:22-p 1521:1521-p 8080:8080--name oracle1 alexeiled/docker-oracle-xe-11g
Docker run-d-P 102:22-p 1522:1521-p 8081:8080--name oracle2 alexeiled/docker-oracle-xe-11g
Docker run-d-P 103:22-p 1523:1521-p 8082:8080--name oracle3 alexeiled/docker-oracle-xe-11g
The startup script can also be simply written as Docker start Oracle1 oracle2 oracle3
This can be useful for quickly building a development environment with Oracle.
Using the Docker Oracle container as a development database server