Skip to Main Content
  • Questions
  • Should I shutdown my databases before a server reboot?


Dev Live Dev Intro

This month we are celebrating Developers at AskTOM. We welcome Developers of all levels of experience to join us at our FREE Developer Live events coming in August. Just click on the left to register today! If you are brand new to Database Technology, then we also have got you covered. Just click on the right for your comprehensive FREE training program to kick start your Oracle Database Development journey!

Question and Answer

Connor McDonald

Thanks for the question, Rafael.

Asked: January 09, 2020 - 2:24 pm UTC

Answered by: Connor McDonald - Last updated: January 13, 2020 - 4:24 am UTC

Category: Database Administration - Version:

Viewed 1000+ times

You Asked

Let's say we have a server maintenance and it needs to rebooted.

Should both teams (OS and database team) work together to, first, shutdown databases (grid daemons, listeners, etc) or should the database rely on server shutdown only? Are there any risks by choosing the second option?


and we said...

First thing I would be checking is that this is not already happening for you. Typically a server shutdown will either have explicitly scripts (in init.d for example) to shut the databases down, or there will be scripts to shutdown the clusterware which in turn will shutdown the databases automatically.

In any event, one of the great things about the Oracle database is that it is resilient to abnormal shutdown (power loss etc etc). That is why, when I need to do a quick bounce of database (eg parameter change) I'll do a "startup force" (which is a shutdown abort/startup). So even if a database shutdown was not performed, you should be fine. But being typically cautious person I am, in *general* I'd use a controlled shutdown because:

a) on that rare day when I needed a *clean* shutdown to do a database patch, I'm not going to get caught out if I was lazy
b) if a server shutdown causes some awkward blackspot where storage is "half" available, I don't want my database saving dirty writes etc. (I've never seen this happen...but you never know :-))

In 25+ years of databases, I've never seen a reboot corrupt an Oracle database unless it was already corrupted and the restart simply brought that fact to attention.

Is this answer out of date? If it is, please let us know via a Review

More to Explore


Need more information on Administration? Check out the Administrators guide for the Oracle Database