Git Product home page Git Product logo

Comments (8)

bofm avatar bofm commented on May 29, 2024

How do you run the container? Did you use --shm-size parameter? Oracle AMM requires shared memory to be mounted.

from docker-oracle12c.

antonmry avatar antonmry commented on May 29, 2024

Hi @bofm

Thanks for the quick response, this is the command I've executed:

docker run -d --shm-size 1GB --name oracledb -p 1521:1521 bofm/oracle12c

from docker-oracle12c.

bofm avatar bofm commented on May 29, 2024

Is shared memory mounted on the host?
mount|grep shm

If it's not, try this:
mount -t tmpfs tmpfs /dev/shm -o rw,nosuid,nodev

from docker-oracle12c.

antonmry avatar antonmry commented on May 29, 2024

Yes, it is:

$ mount | grep shm
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)

Thanks for your help!

from docker-oracle12c.

bofm avatar bofm commented on May 29, 2024

Could you please
docker run --rm --shm-size 1GB bofm/oracle12c bash -c mount | grep -E 'shm|tmpfs'

from docker-oracle12c.

ashaver avatar ashaver commented on May 29, 2024

I had a very similar error and just had to increase the size of the shared memory.
Before:

  • docker run -d --shm-size 1GB --name oracledb -p 1521:1521 bofm/oracle12c
    After:
  • docker run -d --shm-size 4GB --name oracledb -p 1521:1521 bofm/oracle12c

Doing an attach to the running container showed exactly what the problem was:

  • docker attach bofm/oracle 12c

from docker-oracle12c.

bofm avatar bofm commented on May 29, 2024

Exactly! Oracle attempts to use 40% of total memory and fails as there is only 1G available. If you are not planning to use more than 1G then just edit create_database script and set memory percentage according to your requirements.

If there is 8GB of memory on the Docker host and 1GB is planned to be given to Oracle database, then memory percentage should be set to 12 and --shm-size 1GB arg should be used when running the container.

from docker-oracle12c.

antonmry avatar antonmry commented on May 29, 2024

Change memory percentage to 12 worked as charm, thanks for the help!

from docker-oracle12c.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.