How to Set Up Oracle Database with Docker (Official Container Image)

Database Star
Database Star
71 هزار بار بازدید - 2 سال پیش - 📝 Get my free SQL
📝 Get my free SQL Cheat Sheets: https://www.databasestar.com/get-sql-...
🎓 Learn and become confident in SQL: https://databasestar.mykajabi.com/sql...

If you want to use Oracle database in a Docker container, you’ll need an image file. Other database vendors have images on the Docker Hub website, but recently Oracle have removed their image and added it to their own container registry.

In this video, you’ll learn how to use the image in Oracle’s container registry. You’ll see how to download and install Docker, how to find the Oracle database image, how to download the image and run it on the command line, and how to connect to the database image using SQL Developer.

If you’re on an M1 Mac, then unfortunately this image won’t work, as it’s not built to be compatible with these newer CPUs. If you want to get Oracle running on your M1 Mac, the only way I know how at the moment is to use Oracle’s Free Cloud service. I’ve got a tutorial video on how to set that up here: How to Set Up an Oracle Free Cloud Da...

Timestamps:
00:00 Oracle Container Registry
01:10 Download Docker
02:24 Find the image on the registry
04:19 Create the environment file
04:46 Login using Terminal and download image
06:13 Run image
08:21 Connect using SQL Developer
09:27 Run a simple SQL query

/// LINKS:
Oracle environment file (the ora_db_env.dat file mentioned in this video): https://dbshostedfiles.s3.us-west-2.a...

Commands used:
docker pull container-registry.oracle.com/database/standard:latest

docker run -d --env-file ./Documents/ora_db_env.dat -p 1521:1521 --name oracle-std --shm-size="8g" container-registry.oracle.com/database/standard
2 سال پیش در تاریخ 1401/03/31 منتشر شده است.
71,006 بـار بازدید شده
... بیشتر