Database Administration (MOSC)

MOSC Banner

How to force shutdown database (immediate) before reboot or shutdown command execution - OEL7 ?

edited Apr 7, 2017 6:17PM in Database Administration (MOSC) 8 commentsAnswered

Hi, I'm using Oracle Linux 7 also I'm using "systemctl".

I need to force database shutdown before reboot is completed, script is working but log message indicates that script was not finished correctly, I don't know why...I guess reboot process is being executed more faster than scripts.

Automatic startup is working good, the problem is in our shutdown process; I've attached systemctl service code and shutdown scripts (also logs)

Thanks for your help.

...In response of some answers, I put the code here:

Systemctl:

[Unit]

Description=The Oracle Database Service

After=syslog.target network.target

Before=shutdown.target reboot.target halt.target

Tagged:

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