wscherphof / oracle-12c

Docker image with Oracle database server on Oracle Linux. Formerly known as https://registry.hub.docker.com/u/wscherphof/oracle-12c/
Other
123 stars 94 forks source link

Startup - ORA-00845: MEMORY_TARGET #8

Closed caoimhindenais closed 9 years ago

caoimhindenais commented 9 years ago

Hi,

I got to the very end, my image is build with no errors but I can't start the database due to a memory target problem.

I read you can try and resize the tmpfs but I get an device busy.

Any ideas?

Thanks, Kevin

[oracle@67cf5715b10e ~]$ sqlplus sys/managed as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Wed Apr 22 20:56:21 2015

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup ORA-00845: MEMORY_TARGET not supported on this system SQL>

umount tmpfs mount -t tmpfs shmfs -o size=1500m /dev/shm

[root@67cf5715b10e /]# umount tmpfs umount: /dev: target is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))

caoimhindenais commented 9 years ago

Not an issue:

The last docker command in the step3/Dockerfile file is CMD /tmp/start

"The main purpose of a CMD is to provide defaults for an executing container." https://docs.docker.com/reference/builder/#cmd

And in the start file a temporary file system is mounted mount -t tmpfs shmfs -o size=4g /dev/shm

And the the database is started as normal :-)