Problem solve Get help with specific problems with your technologies, process and projects.

Database uptime

This query calculates and displays database uptime.

By using the query below, you can calculate and display the database uptime:

select 
'Host Name : '||host_name||chr(10)|| 
'Instance Name : '||instance_name||chr(10)|| 
'Uptime : '||floor(xx)||'days '||floor((xx-floor(xx))*24)||'hours '||round(((xx-floor(xx 
)*24)-floor((xx-floor(xx)*24)))*60)||'minutes' "Database Uptime" 
from (select host_name,instance_name ,(sysdate-STARTUP_TIME) xx from v$instance) 

For More Information


Dig Deeper on Oracle database design and architecture

SearchDataManagement
SearchBusinessAnalytics
SearchSAP
SearchSQLServer
TheServerSide.com
SearchDataCenter
SearchContentManagement
SearchHRSoftware
Close