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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN備份恢復典型案例——資料檔案存在壞快
- oracle 普通表空間資料檔案壞塊Oracle
- Python3檢查檔案是否存在的常用方法!Python
- oracle 控制檔案及引數檔案何時自動備份Oracle
- Oracle資料檔案和臨時檔案的管理Oracle
- 繞過 TPM 檢查,.reg檔案 .bat檔案BAT
- Oracle 控制檔案損壞解決方案Oracle
- Oracle 控制檔案Oracle
- Oracle 11g 重新建立控制檔案Oracle
- 【RMAN】Oracle中如何備份控制檔案?備份控制檔案的方式有哪幾種?Oracle
- Python3中如何檢查檔案是否存在?Python教程!Python
- Oracle RAC引數檔案管理Oracle
- 【RMAN】如果控制檔案損壞那麼如何恢復?恢復控制檔案的方式有哪幾種?
- golang判斷檔案是否存在Golang
- python 判斷檔案是否存在Python
- input檔案選擇框檔案過濾引數accept
- 【/proc/檔案淺析】另類辦法恢復資料檔案和控制檔案
- 【Oracle】如何修改資料檔案和日誌檔案的路徑Oracle
- Oracle RAC修改引數檔案位置Oracle
- 用 Python 批量檢查 sqlite/db3 檔案是否損壞(qbit)PythonSQLite
- 控制檔案損壞處理
- Oracle使用RMAN將普通資料檔案轉成ASMOracleASM
- 通過反射獲取上傳檔案方法引數中的檔名反射
- Oracle單個資料檔案損壞,在Rman命令裡設定表空間、資料檔案offline方式來恢復最方便Oracle
- VBA判斷指定的資料夾或檔案是否存在
- Oracle 資料檔案回收Oracle
- C語言判斷檔案存在和建立檔案C語言
- git的gitignore檔案排除資料夾和檔案Git
- python怎麼驗證檔案是否存在Python
- 通過配置檔案(.htaccess)實現檔案上傳
- oracle資料庫的配置檔案Oracle資料庫
- Oracle 資料庫應急寶典(二)_引數檔案篇Oracle資料庫
- ORACLE 控制檔案(Control Files)概述Oracle
- mysql學習7:第四章:資料庫檔案--引數檔案和型別MySql資料庫型別
- cp: 無法建立普通檔案 : 檔案已存在
- Oracle 12C 中CDB和PDB的引數檔案管理Oracle
- 在Ubuntu檔案管理器中檢視隱藏檔案和資料夾Ubuntu
- 檔案批次查詢複製匯出,按檔名批次查詢檔案,按檔案內容批次查詢檔案
- js動態載入 js檔案和 css檔案JSCSS