Linux Operating System (MOSC)

MOSC Banner

Need shut down of the database cleanly before it is shut by ohasd while server stop

edited Sep 13, 2020 9:12PM in Linux Operating System (MOSC) 20 commentsAnswered

My requirement is to cleanly shutdown the Oracle database before stopping the server. I checked the log file, and when i am shutting down the server, the database instance is getting terminated(aborted) by OHASD. But i don't want my database to get aborted rather shut down cleanly. To achieve that, i wrote my own script to do the shut immediate of the database and made it as a service(I used systemd). But instead of using after clause in the UNIT, the database is still getting aborted by OHASD. Below is my systemd script.

[Unit]

Description=DB Services

After=oracle-ohasd.service network-online.target

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center