Get the App
SLTechnology News&Howtos  ›  Servers  › 

Docker deployment document (3)-about the solution to the failure of application container startup after oracle container restart

Shulou Source: shulou.com Published: 2022-06-03 08:34:38 12月06日 Update

Note:

If the application project remains unchanged, after the oracle service is restarted, the application will automatically reconnect and the service will return to normal.

However, if the oracle does not run when the application project is started, the database connection failure will directly lead to the failure of the project startup, and the oracle can not be recovered after re-running, so the application project can only be restarted.

The order of server startup-> docker service startup-> oracle container startup-> oracle service startup-> application container startup remains the same. And after the docker service is started, add firewall rules to allow the container to access the host, which needs to be modified as follows.

1. Modify the init.sh script for the oracle container

In the oracle container, the / root/init.sh script used to make the sysctl kernel parameters and ulimit take effect, which is now modified as follows

#! / bin/bashsysctl-pchown oracle:oinstall / opt/oraclesu-oracle

Tags: Container service application script project data database application project run host host situation file sequence two content kernel parameter server symbol Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux NVidia Redmi Docker