oracle查询scn

概述

在数据库的恢复过程,有时我们需要查询scn,分享一下具体的方法

解决方案

SQL>set numwidth 50
SQL> set linesize 150 pagesize 1000
SQL> select 'D' file_type, file#, checkpoint_change#, status from V$datafile_header
union all
select 'L', group#, first_change#, status from V$log order by 1,3,2;  2    3  

  

posted @ 2023-10-25 10:54  雪竹子  阅读(71)  评论(0编辑  收藏  举报