Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

systemd kills oracle immediatly on shutdown

user3399704Nov 11 2016 — edited Nov 11 2016

Hello,

after moving a database to a linux box with systemd, we noticed that the shutdown does not work properly anymore. In fact, the oracle processes are killed immediately after the shutdown command with SIGTERM.

Doing some more investigations, we found out that this is depending on the cgroup the database is started with.

If started directly from a .service file with User=oracle and no su/sudo in the start script, the DB processes are in the cgroup SYSTEM and the shutdown works properly. But if we use a su/sudo in the start skript (or reboot the database manually using sqlplus), the DB processes are in cgroup USER and are sent a SIGTERM, thus killing the instance.

Any ideas how to modify systemd to not to send SIGTERM? Or any other solution?

TIA

Stephan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2016
Added on Nov 11 2016
8 comments
1,891 views