docker-images: Database 19.3.0-ee: wrong fixed ORACLE_HOME in dbca?
After building the docker image for 19.3.0-ee it is not possible to install database instance by “docker run” because:
- Script $ORACLE_HOME/dbca uses a fixed ORACLE_HOME “/u01/app/oracle/product/19.0.0/dbhome_1”
- the real ORACLE_HOME used in Docker-Image is “/opt/oracle/product/19c/dbhome_1”
39 # Define ORACLE_HOME -> OH
40 OH=/u01/app/oracle/product/19.0.0/dbhome_1
41 PLATFORM=Linux
42 ORACLE_HOME=$OH
43 export ORACLE_HOME;
134 #call platform_common script
135 . $ORACLE_HOME/bin/platform_common
Line 135 in dbca crashes during a “docker run” with
/opt/oracle/product/19c/dbhome_1/bin/dbca: line 135: /u01/app/oracle/product/19.0.0/dbhome_1/bin/platform_common: No such file or directory
This happened if building the docker image on Mac-OS with Docker Engine v 18.09.2. Building the docker image on Linux generates the exact current ORACLE_HOME in dbca in line 40.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 26 (4 by maintainers)
Hi everyone,
I have encountered the same issue as well. One thing I noticed is due to lack of memory. I am running docker on Windows 10 with WSL2. After setting the RAM in
.wslconfigbe 4GB (previously 2GB), the issue was resolved. I hope that helps@bryan831 I had the same issue on MacOS. I had to increase memory in the docker preferences. After the change, I had to rebuild the image again. Similar issue that @zunurain222 had to manage on Windows.
Wait… I’ll try it later. I’ll let you know @abhisbyk
Faced this issue when building on MacOS as well, dealt with it by building on a Linux-based instance