WEB开发网
开发学院数据库Oracle Oracle 9i数据坏块的处理实例 阅读

Oracle 9i数据坏块的处理实例

 2010-01-27 16:10:59 来源:WEB开发网   
核心提示:查找SCN 11856250905 以后的archivelog是否有备份RMAN>listbackupofarchivelogscnfrom11856250905ListofBackupSets===BSKeySizeDeviceTypeElapsedTimeCompletionTime-----------68

查找SCN 11856250905 以后的archivelog是否有备份

RMAN> list backup of archivelog scn from 11856250905
List of Backup Sets
===================
BS Key  Size       Device Type Elapsed Time Completion Time
------- ---------- ----------- ------------ ---------------
680     265K       DISK        00:00:00     16-MAR-09
BP Key: 681   Status: AVAILABLE   Tag: TAG20090316T154731
Piece Name: /d02/fullbackup/20090316_arch_28
List of Archived Logs in backup set 680
Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
---- ------- ---------- --------- ---------- ---------
1    109     11856250805 16-MAR-09 11856251483 16-MAR-09
1    110     11856251483 16-MAR-09 11856251487 16-MAR-09

查找sequence 110 以后的archivelog是否有备份

RMAN> list copy of archivelog from sequence 110;

List of Archived Log Copies
Key     Thrd Seq     S Low Time  Name
------- ---- ------- - --------- ----
694     1    111     A 16-MAR-09 /d02/arch/1_111.dbf
695     1    112     A 16-MAR-09 /d02/arch/1_112.dbf

查询online archive log

SQL> select sequence#,members,archived,status from v$log;

SEQUENCE#    MEMBERS ARC STATUS
---------- ---------- --- ----------------
113          1 NO  CURRENT
111          1 YES INACTIVE
112          1 YES INACTIVE

从以上查询中可以看出datafile 15有一次最近的全备份,有全备份以来的所有archivelog,online redo log

Tags:Oracle 数据 处理

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接