重庆思庄Oracle、Redhat认证学习论坛

标题: 查看数据库最近重启时间和重启时间历史 [打印本页]

作者: 刘泽宇    时间: 2024-5-19 10:35
标题: 查看数据库最近重启时间和重启时间历史
Oracle 数据库实例上次重启时间
SQL> select instance_name,
to_char(startup_time,'mm/dd/yyyy hh24:mi:ss') as startup_time
from v$instance;
INSTANCE_NAME STARTUP_TIME
---------------------- ----------------------
orahowdb 09 /03/2020 03:24:03

数据库启动历史
SQL> select * from
( select STARTUP_TIME FROM dba_hist_database_instance ORDER BY startup_time DESC)
WHERE rownum < 10;

STARTUP_TIME
-----------------------------
03-SEP-20 03.24.43.000 AM
03-SEP-20 03.24.27.000 AM
01-SEP-20 02.32.32.000 PM
01-SEP-20 02.32.31.000 PM
08-AUG-20 02.35.45.000 PM
08-AUG-20 02.35.44.000 PM
08-AUG-20 09.05.24.000 AM
08-AUG-20 08.02.43.000 AM
03-AUG-20 01.25.07.000 PM
9 rows selected.






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2