MaksymBilenko / docker-oracle-12c

:whale: Docker image with Oracle Database 12c on board
Apache License 2.0
679 stars 285 forks source link

Container crashes during database startup #152

Closed jeff303 closed 3 years ago

jeff303 commented 3 years ago

For me, the container crashes during DB initialization, a few seconds after it starts. Docker Desktop 3.1.0 (Docker engine 20.10.2), on OS X 11.1. Full command used to start: docker run -d -p 8081:8080 -p 1521:1521 --name oracle12c -e ORACLE_ALLOW_REMOTE=true quay.io/maksymbilenko/oracle-12c

Output of docker log:

Database not initialized. Initializing database.
Starting tnslsnr
[WARNING] [DBT-11209] Current available physical memory is less than the required physical memory (4,096MB) for creating the database.
[WARNING] [DBT-11217] Unable to check available shared memory on specified node(s) (8336ae8b3524).
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
   CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
   ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
   CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
   ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Copying database files
1% complete
2% complete
DBCA Operation failed.
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/xe/xe.log" for further details.

I capture the file mentioned, and it shows:

[ 2021-03-03 16:29:20.408 UTC ] Copying database files
DBCA_PROGRESS : 1%
DBCA_PROGRESS : 2%
[ 2021-03-03 16:29:31.857 UTC ] Error while cataloging RMAN Backups
[ 2021-03-03 16:29:37.393 UTC ] DBCA_PROGRESS : DBCA Operation failed.

Has anyone run into this?

MaksymBilenko commented 3 years ago

Are you running latest imege? Try with -e DBCA_TOTAL_MEMORY=4096

jeff303 commented 3 years ago

Are you running latest imege? Try with -e DBCA_TOTAL_MEMORY=4096

Yes, image ID a063ba7a3cab (current latest tag). Sorry, forgot to mention that initially. And your suspicion was right. Tried increasing the memory allotted (via Docker Desktop, which I believe manages the Linux VM on which Docker daemon runs) to 16GB, and passed -e DBCA_TOTAL_MEMORY=4096, and now it has made it further in the process.