Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report