Oracle 11g 通過 RMAN 檢查資料檔案、控制檔案、引數檔案的狀態和是否存在壞塊
1、驗證整個資料庫的資料檔案和控制檔案、引數檔案
[oracle@DB1 bk]$ rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Dec 10 16:53:08 2015
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SITE (DBID=4224792395)
RMAN> validate database;
Starting validate at 10-DEC-15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=2193 device type=DISK
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00005 name=/oradata/oradata/site/site/ts_site_data01.dbf
input datafile file number=00006 name=/oradata/oradata/site/site/ts_site_index01.dbf
input datafile file number=00003 name=/oradata/oradata/site/site/undotbs01.dbf
input datafile file number=00002 name=/oradata/oradata/site/site/sysaux01.dbf
input datafile file number=00001 name=/oradata/oradata/site/site/system01.dbf
input datafile file number=00004 name=/oradata/oradata/site/site/users01.dbf
channel ORA_DISK_1: validation complete, elapsed time: 00:01:25
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
1 OK 0 16928 101120 10310730
File Name: /oradata/oradata/site/site/system01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 66094
Index 0 14016
Other 0 4082
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
2 OK 0 29630 135680 10312535
File Name: /oradata/oradata/site/site/sysaux01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 33036
Index 0 28516
Other 0 44498
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
3 OK 0 327 168320 10316052
File Name: /oradata/oradata/site/site/undotbs01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 167993
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
4 OK 0 477 640 378531
File Name: /oradata/oradata/site/site/users01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 15
Index 0 3
Other 0 145
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
5 OK 0 4190015 4193280 10316052
File Name: /oradata/oradata/site/site/ts_site_data01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 2149
Index 0 851
Other 0 265
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
6 OK 0 4193153 4193280 758918
File Name: /oradata/oradata/site/site/ts_site_index01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 127
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
including current control file for validation
including current SPFILE in backup set
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
List of Control File and SPFILE
===============================
File Type Status Blocks Failing Blocks Examined
------------ ------ -------------- ---------------
SPFILE OK 0 2
Control File OK 0 1106
Finished validate at 10-DEC-15
2、驗證某個資料塊
RMAN> VALIDATE DATAFILE 1 BLOCK 10;
Starting validate at 2015-12-10 17:19:08
using channel ORA_DISK_1
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00001 name=/ORADATA/oradata/fire/system01.dbf
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
1 OK 0 0 1 24
File Name: /ORADATA/oradata/fire/system01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 1
Finished validate at 2015-12-10 17:19:09
[oracle@DB1 bk]$ rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Dec 10 16:53:08 2015
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SITE (DBID=4224792395)
RMAN> validate database;
Starting validate at 10-DEC-15
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=2193 device type=DISK
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00005 name=/oradata/oradata/site/site/ts_site_data01.dbf
input datafile file number=00006 name=/oradata/oradata/site/site/ts_site_index01.dbf
input datafile file number=00003 name=/oradata/oradata/site/site/undotbs01.dbf
input datafile file number=00002 name=/oradata/oradata/site/site/sysaux01.dbf
input datafile file number=00001 name=/oradata/oradata/site/site/system01.dbf
input datafile file number=00004 name=/oradata/oradata/site/site/users01.dbf
channel ORA_DISK_1: validation complete, elapsed time: 00:01:25
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
1 OK 0 16928 101120 10310730
File Name: /oradata/oradata/site/site/system01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 66094
Index 0 14016
Other 0 4082
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
2 OK 0 29630 135680 10312535
File Name: /oradata/oradata/site/site/sysaux01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 33036
Index 0 28516
Other 0 44498
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
3 OK 0 327 168320 10316052
File Name: /oradata/oradata/site/site/undotbs01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 167993
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
4 OK 0 477 640 378531
File Name: /oradata/oradata/site/site/users01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 15
Index 0 3
Other 0 145
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
5 OK 0 4190015 4193280 10316052
File Name: /oradata/oradata/site/site/ts_site_data01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 2149
Index 0 851
Other 0 265
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
6 OK 0 4193153 4193280 758918
File Name: /oradata/oradata/site/site/ts_site_index01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 127
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
including current control file for validation
including current SPFILE in backup set
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
List of Control File and SPFILE
===============================
File Type Status Blocks Failing Blocks Examined
------------ ------ -------------- ---------------
SPFILE OK 0 2
Control File OK 0 1106
Finished validate at 10-DEC-15
2、驗證某個資料塊
RMAN> VALIDATE DATAFILE 1 BLOCK 10;
Starting validate at 2015-12-10 17:19:08
using channel ORA_DISK_1
channel ORA_DISK_1: starting validation of datafile
channel ORA_DISK_1: specifying datafile(s) for validation
input datafile file number=00001 name=/ORADATA/oradata/fire/system01.dbf
channel ORA_DISK_1: validation complete, elapsed time: 00:00:01
List of Datafiles
=================
File Status Marked Corrupt Empty Blocks Blocks Examined High SCN
---- ------ -------------- ------------ --------------- ----------
1 OK 0 0 1 24
File Name: /ORADATA/oradata/fire/system01.dbf
Block Type Blocks Failing Blocks Processed
---------- -------------- ----------------
Data 0 0
Index 0 0
Other 0 1
Finished validate at 2015-12-10 17:19:09
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26506993/viewspace-1869875/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE中沒有引數檔案和控制檔案如何通過rman恢復資料庫Oracle資料庫
- 使用dbv和RMAN檢查資料檔案中的壞塊
- 引數檔案控制檔案和資料檔案丟失的恢復
- 資料庫引數檔案控制檔案日誌檔案資料檔案跟蹤檔案等8大檔案的字典資料庫
- oracle控制檔案及引數檔案問題Oracle
- 【dbv】使用dbv工具檢驗資料檔案是否有壞塊
- 【exp】快速檢測資料檔案壞塊
- 利用RMAN修復資料檔案中的壞塊
- oracle資料庫移動資料檔案、日誌檔案和控制檔案Oracle資料庫
- Oracle 11g RMAN恢復-場景2:所有的資料檔案損壞,OPEN狀態Oracle
- 通過 v$database_block_corruption 查詢資料檔案中的壞塊DatabaseBloC
- RMAN備份資料檔案+控制檔案+歸檔日誌
- ORACLE 11G沒有備份檔案引數檔案在異機通過rman備份恢復找回被誤刪的資料Oracle
- 在Oracle中移動資料檔案、控制檔案和日誌檔案Oracle
- Python3如何檢查檔案或資料夾是否存在?Python
- 陣列櫃故障造成控制檔案損壞,資料檔案損壞陣列
- RMAN說,我能備份(4)--RMAN備份資料檔案和控制檔案
- oracle中移動控制檔案、資料檔案、日誌檔案Oracle
- RMAN學習-資料檔案損壞
- 通過trace檔案重新建立控制檔案
- RMAN恢復表空間,資料檔案,歸檔檔案,控制檔案等介紹
- oracle 普通表空間資料檔案壞塊Oracle
- RMAN備份恢復典型案例——資料檔案存在壞快
- 通過檔案控制程式碼恢復刪除的資料檔案
- Oracle引數檔案解析——引數檔案分析獲取Oracle
- Python3檢查檔案是否存在的常用方法!Python
- Oracle 引數檔案Oracle
- oracle的引數檔案Oracle
- 使用RMAN CROSSCHECK 更新檔案狀態ROS
- 資料檔案壞塊的製造和恢復
- java判斷檔案是否存在並建立檔案Java
- 重建控制檔案, 資料檔案檢查點SCN到底來自哪裡?
- oracle 控制檔案及引數檔案何時自動備份Oracle
- 引數檔案/口令檔案
- rman 恢復---歸檔丟失and資料檔案損壞
- 誤刪除資料檔案、控制檔案的非RMAN恢復方法
- 表空間&資料檔案和控制檔案(zt)
- Oracle資料檔案和臨時檔案的管理Oracle