How to install Oracle 18c to docker
Jun 1, 2022
prerequisites
- Docker much run on Linux
- Git
Step to install oracle
- pull dockerfile from path “https://github.com/oracle/docker-images.git”
git pull https://github.com/oracle/docker-images.git
2. go to path “D:\test1\docker-images\OracleDatabase\SingleInstance\dockerfiles\18.4.0”
3. build image docker from dockerfiles
docker build -t oracle-db-18c -f Dockerfile.xe .
4. run contrainer from image ( Very long time to process)
docker run — name OracleXE -p 1521:1521 -p 5500:5500 -e ORACLE_PWD=newPassword1234 -e ORACLE_CHARACTERSET=TH8TISASCII -d oracle-db-18c
5. Create User from Oracle (exec to Contrainer by sqlplus command)
docker exec -it OracleXE sqlplus system/Bas1234
6.SCript to create user
CREATE USER test_user IDENTIFIED BY newPassword1234;
GRANT CONNECT TO test_user;
GRANT CONNECT, RESOURCE, DBA TO test_user;
GRANT CREATE SESSION GRANT ANY PRIVILEGE TO test_user;
GRANT CREATE SESSION GRANT ANY PRIVILEGE TO test_user;
7. I use sqldeveloper to test db
OK!!!!!
Big thank and reference