HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
General
cancel
Showing results for 
Search instead for 
Did you mean: 

database uptime and downtime report

 
Nirmalkumar
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.


Thanks,
Nirmal
1 REPLY
avizen9
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
http://www.windows-tech.info/15/2528abe2344ff12d.php