Skip to content

Instantly share code, notes, and snippets.

@johnatanbrayan
Last active May 16, 2021 21:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnatanbrayan/95ed8ed94afce680c1f1547467888ea9 to your computer and use it in GitHub Desktop.
Save johnatanbrayan/95ed8ed94afce680c1f1547467888ea9 to your computer and use it in GitHub Desktop.
How to install Oracle XE 18c on docker
## How to install Oracle XE 18c on docker
#Tutorial: https://www.youtube.com/watch?v=CbopSCwATIg&list=PL5euTSrohYaTaQS8gO0ad7J_fyWy1HXud&index=22
## Clone repo
git clone git@github.com:fuzziebrain/docker-oracle-xe.git
## Set the working directory to the project folder
cd docker-oracle-xe
## Copy the RPM to docker-odb18c-xe/files
cp ~/Downloads/oracle-database-xe-18c-1.0-1.x86_64.rpm files/
## Build Image
docker build -t oracle-xe:18c .
docker network create oracle_network18c
** How to install and configure Sql Developer on linux:
https://dev.to/ishakantony/how-to-install-oracle-sql-developer-on-ubuntu-20-04-3jpd
=============================my_config=============================
sudo docker run -d \
-p 1521:1521 \
-p 5500:5500 \
-e ORACLE_PWD=Oracle18 \
--name=oracle-xe \
--volume ~/docker/oracle-xe:/opt/oracle/oradata \
--network=oracle_network18c \
oracle-xe:18c
============sql_developer==================
Oracle18c
sys
password = Oracle18
SYSDBA
localhost
1521
xe
===================================================================
======================config_origin==========================
sudo docker run -d \
-p 32118:1521 \
-p 35518:5500 \
-e ORACLE_PWD=Oracle18 \
--name=oracle-xe \
--volume ~/docker/oracle-xe:/opt/oracle/oradata \
--network=oracle_network18c \
oracle-xe:18c
============sql_developer_origin==================
Oracle18c
sys
password = Oracle18
SYSDBA
localhost
32118
xe
# Run oracle docker on terminal
docker exec -it oracle-xe bash -c "source /home/oracle/.bashrc; bash"
$ORACLE_HOME/bin/sqlplus sys/Oracle18@localhost/XE as sysdba
# Commands to create use on terminal:
connect sys as sysdba;
create user scged identified by "A@4quality";
GRANT ALL PRIVILEGES TO scged;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment