Oracle Database 10g Release 2, Oracle SQL Developer, and Oracle JDeveloper are fully certified on Mac OS X. Turn your Mac into a full-fledged development environment and deploy Xserve-based grids. Docker run -name OracleXE -p 1521: 1521-p 5500: 5500-v /opt/oracle/oradata oracle/database: 18. 0-xe This starts the Docker image and names the container OracleXE. Ports 1521 and 5500 are forwarded from the container to the local host.
Oracle Database Express Xe Downloads
Oracle puts out a Windows and Linux binary for their Oracle Database servers, but what if you want to run it on a Mac? The solution for a while was to use a VM and boot up the linux version. Nowadays using Docker is a little bit easier.
I will say that running Oracle DB on docker is not quite as easy as installing SQL Server on a Mac with Docker, but it is also not too difficult.
Download the Oracle Database Linux Binary
Your first step is to download the Download the Oracle Express Edition version 18c (xe) Linux rpm from oracle.com. Oracle's docker files do support other editions, but the Express Edition is sufficient for getting started.
Clone the Oracle Dockerfile Repo
Oracle has a GitHub repo with all its Dockerfiles, you can clone it (download it) by running:
Copy Binary to Dockerfiles dir
Within the git repository you just cloned, go to the OracleDatabase dockerfiles folder:
Oracle Database Latest Download
Copy the binary you downloaded in step 1 to the 18.4.0 folder within the dockerfiles folder:
Build a Docker Image
Oracle 10g Express Edition Download
Run the script:
The
-x tells the script that you are installing the express edition, and the -v 18.4.0 tells it which version you are installing.
This step will take a few minutes.
Look for local docker image
You should now have a docker image named
oracle/database:18.4.0-xe which you can start using docker. Run docker images from Terminal to look for it and make sure it is there. The total size of the image will be around 8-9GB.
Start an Oracle Database Using docker-compose
Finally we'll create a docker-compose.yml file so we can easily startup the db whenever we need it:
Now we can start up our container by running:
If you omit the
ORACLE_PWD environment variable it will just generate a presumably random password and output it during startup. The startup takes a few minutes to initialize.
Oracle 11g Personal Edition Download![]() Download Oracle 11g Express Edition
After it starts up you will have an oracle database that is accessible on your local machine on port
11521 .
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |