oracle - Oracle in linux container unable to allocate shared memory
问题描述
I've been trying to run Oracle DB 12. on docker on linux, but it fails to start showing this error:
$ docker run -it --rm=true --name ORCLCDB -p 1521:1521 store/oracle/database-enterprise:12.2.0.1-slim
...
ORA-04031: unable to allocate 40 bytes of shared memory ("shared pool","SELECT
DECODE(null,'','Total...","SQLA","tmp"
I've seen similar issues appearing for those running on Mac/Windows and the VM not having enough memory. On linux there's no VM and have enough free memory and hard drive:
$ docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
2f3afa902836 ORCLCDB 0.46% 255.5MiB / 125.7GiB 0.20% 1.43kB / 0B 9.8MB / 6.49MB 48```
Any ideas?