select to_char(startup_time,'DD-MON-YYYY HH24:MI:SS') started_at,
TRUNC(sysdate - (startup_time))||'day(s),'||TRUNC(24*((sysdate-startup_time) -TRUNC(sysdate-startup_time)))
||'hour(s),'||MOD(TRUNC(1440*((SYSDATE-startup_time)-
TRUNC(sysdate-startup_time))),60)
||'minutes(s),'||MOD(TRUNC(86400*((SYSDATE-STARTUP_TIME)-
TRUNC(SYSDATE-startup_time))),60)
||'seconds' uptime
from v$instance;
查看Oracle10g持续运行多久?
最新推荐文章于 2022-09-02 17:39:12 发布