Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

database uptime and downtime report

Frequent Advisor

database uptime and downtime report

Hello all,

can some one provide me the script to get oracle database uptime and downtime report.

Thanks in advance.

Esteemed Contributor

Re: database uptime and downtime report

Hello Nirmal,
below is sample script to check uptime.

SELECT SYSDATE - logon_time "DB Uptime in Days",
(SYSDATE - logon_time) * 24 "DB Uptime in Hours"
FROM v$session
WHERE program LIKE '%PMON%'

here one line where you can modify as per your requirement