Within pl/sql you will need to do some error handling by using SQLERRM and/or SQLCODE... since I am not a developer I will leave the actual syntax in your hands but they are well documented.
select status from v$thread
(should return OPEN)
good luck.
If you are looking for a simple way to have some assurance that the database started and is functioning I would suggest two things.
1.) ps -ef | grep smon
(the database wont run without this process)
2.) actively monitor the alert_log file for the instance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.