oracle資料壞塊檢測

來源:互聯網
上載者:User

標籤:

1.使用dbv檢查

 

D:\oradata\eygle>dbv file=EYGLE.DBF blocksize=8192

 

DBVERIFY: Release 10.1.0.4.0 - Production on 星期六 6月 11 17:36:37 2005

 

Copyright (c) 1982, 2004, Oracle.  All rights reserved.

 

DBVERIFY - 開始驗證: FILE = EYGLE.DBF

 

頁 219 標記為損壞

Corrupt block relative dba: 0x010000db (file 4, block 219)

Bad check value found during dbv:

Data in bad block:

 type: 6 format: 2 rdba: 0x010000db

 last change scn: 0x0000.0005ee6d seq: 0x2 flg: 0x04

 spare1: 0x0 spare2: 0x0 spare3: 0x0

 consistency value in tail: 0xee6d0602

 check value in block header: 0x9779

computed block checksum: 0x6141

 

頁 1258 標記為損壞

Corrupt block relative dba: 0x010004ea (file 4, block 1258)

Bad check value found during dbv:

Data in bad block:

 type: 6 format: 2 rdba: 0x010004ea

 last change scn: 0x0000.00042681 seq: 0x2 flg: 0x06

 spare1: 0x0 spare2: 0x0 spare3: 0x0

 consistency value in tail: 0x26810602

 check value in block header: 0x660b

computed block checksum: 0x9317

 

DBVERIFY - 驗證完成

 

檢查的頁總數: 1280

處理的頁總數 (資料): 150

失敗的頁總數 (資料): 0

處理的頁總數 (索引): 127

失敗的頁總數 (索引): 0

處理的頁總數 (其它): 1001

處理的總頁數 (段)  : 0

失敗的總頁數 (段)  : 0

空的頁總數: 0

標記為損壞的總頁數: 2

流入的頁總數: 0

Highest block SCN            : 428223 (0.428223)

 

2.使用RMAN檢查壞塊

 

D:\oradata\eygle>rman target /

 

復原管理員: 版本9.2.0.6.0 - Production

 

Copyright (c) 1995, 2002, Oracle Corporation.  All rights reserved.

 

串連到目標資料庫: EYGLE (DBID=1365961916)

 

RMAN> backup validate datafile 4;

 

啟動 backup 於 11-6月 -05

正在使用目標資料庫控制檔案替代恢複目錄

分配的通道: ORA_DISK_1

通道 ORA_DISK_1: sid=17 devtype=DISK

通道 ORA_DISK_1: 正在啟動 full 資料檔案備份組

通道 ORA_DISK_1: 正在指定備份組中的資料檔案

輸入資料檔案 fno=00004 name=D:\ORADATA\EYGLE\EYGLE.DBF

通道 ORA_DISK_1: 備份組已完成, 經過時間:00:00:03

完成 backup 於 11-6月 -05

 

RMAN>

 

SQL> select * from v$database_block_corruption;

 

     FILE#     BLOCK#     BLOCKS CORRUPTION_CHANGE# CORRUPTIO

---------- ---------- ---------- ------------------ ---------

         4        219          1                  0 FRACTURED

         4       1258          1                  0 FRACTURED

 

oracle資料壞塊檢測

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.