troubleshooting Question

Creating a are-you-sure condition prior to shutdown: what do you think of...

Avatar of David VanZandt
David VanZandtFlag for United States of America asked on
Oracle Database
14 Comments2 Solutions225 ViewsLast Modified:
Oracle standalone instance, say 11gR2 on Linux, DBA mistakenly issues a SHUTDOWN in a production session rather than development as intended. It's been suggested to (1) be extra careful next time and (2) don't do it a second time :)

Would it be worth pursuing to add a BEFORE SHUTDOWN trigger that checks IF business day AND IF business hours, THEN RAISE EXCEPTION to check for some intervening control -- such as a global variable value, or file presence. IOW prevent an unscheduled outage during business hours unless there is an override.

It appears that the BEFORE DATABASE trigger syntax could accommodate either a PL/SQL procedure or an OS shell. But what kind of trace would be required to see where control would go after the SHUTDOWN is prevented?
Join our community to see this answer!
Unlock 2 Answers and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros