Hey, I was following your guide at https://blogs.oracle.com/developer/entry/creating_and_oracle_database_docker
and running the container after building the image with
docker run -p 1521:1521 --name oracle oracle/database:12.1.0.2-ee
this results in the following error which afaik is different from the other ones in open issues.
Does anyone have an idea how to solve this?
````
Copying database files
1% complete
2% complete
27% complete
Creating and starting Oracle instance
29% complete
32% complete
33% complete
34% complete
38% complete
42% complete
DBCA Operation failed.
Look at the log file "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/ORCLCDB.log" for further details.
Unique database identifier check passed.
/opt/oracle/oradata/ has enough space. Required space is 7665 MB , available space is 23037 MB.
/ has enough space. Required space is 0 MB , available space is 23037 MB.
File Validations Successful.
Copying database files
DBCA_PROGRESS : 1%
DBCA_PROGRESS : 2%
DBCA_PROGRESS : 27%
Creating and starting Oracle instance
DBCA_PROGRESS : 29%
DBCA_PROGRESS : 32%
DBCA_PROGRESS : 33%
DBCA_PROGRESS : 34%
DBCA_PROGRESS : 38%
DBCA_PROGRESS : 42%
ORA-04031: unable to allocate 1015832 bytes of shared memory ("shared pool","unknown object","PDB Dynamic He","Alloc/Free SWRF Metric CHBs")
Error while executing "/opt/oracle/product/12.1.0.2/dbhome_1/rdbms/admin/dbmssml.sql". Refer to "/opt/oracle/cfgtoollogs/dbca/ORCLCDB/dbmssml0.log" for more details. Error in Process: /opt/oracle/product/12.1.0.2/dbhome_1/perl/bin/perl
DBCA_PROGRESS : DBCA Operation failed.
SQL*Plus: Release 12.1.0.2.0 Production on Thu Mar 9 00:43:07 2017
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to an idle instance.
SQL> ALTER SYSTEM SET control_files='/opt/oracle/oradata/ORCLCDB/control01.ctl' scope=spfile
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> ALTER PLUGGABLE DATABASE ORCLPDB1 SAVE STATE
*
ERROR at line 1:
ORA-01034: ORACLE not available
Process ID: 0
Session ID: 0 Serial number: 0
SQL> Disconnected
mv: cannot stat '/opt/oracle/product/12.1.0.2/dbhome_1/dbs/spfileORCLCDB.ora': No such file or directory
mv: cannot stat '/opt/oracle/product/12.1.0.2/dbhome_1/dbs/orapwORCLCDB': No such file or directory
DATABASE IS READY TO USE!
ORA-4031 signalled during: alter pluggable database PDB$SEED OPEN...
Thu Mar 09 00:43:03 2017
Shutting down instance (abort)
License high water mark = 19
Thu Mar 09 00:43:03 2017
USER (ospid: 641): terminating the instance
Thu Mar 09 00:43:04 2017
Instance terminated by USER, pid = 641
Thu Mar 09 00:43:04 2017
Instance shutdown complete
````
I closed this, the problem was as dumb as it could be:
Forgot I am on mac and had set the vm memory for some reason set to 2gb, indeed a memory issue...
Most helpful comment
I closed this, the problem was as dumb as it could be:
Forgot I am on mac and had set the vm memory for some reason set to 2gb, indeed a memory issue...