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


This was last published in June 2001

Dig Deeper on Oracle database design and architecture

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close