Часть таблиц проходит нормально , запускаю alter
но когда потом запускаю DBVERIFY блок всё равно в файле Corrupt
SQL> analyze table sapdev.moni validate structure cascade online;
Table analyzed.
SQL> alter table sapdev.moni deallocate unused;
Table altered.
dbv file=/oracle/DEV/sapdata1/dev_10/dev.data10 blocksize=8192
DBVERIFY: Release 9.2.0.7.0 - Production on Tue Feb 26 17:07:27 2008
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
DBVERIFY - Verification starting : FILE = /oracle/DEV/sapdata1/dev_10/dev.data10
Page 208009 is marked corrupt
***
Corrupt block relative dba: 0x06032c89 (file 24, block 208009)
Bad header found during dbv:
Data in bad block -
type: 11 format: 2 rdba: 0x05400001
last change scn: 0x0000.00000000 seq: 0x1 flg: 0x04
consistency value in tail: 0x00000b01
check value in block header: 0x946, computed block checksum: 0x0
spare1: 0x0, spare2: 0x0, spare3: 0x0
***
Часть показывает при анализе с ошибками
SQL> analyze table sapdev.vbpa validate structure cascade online;
analyze table sapdev.vbpa validate structure cascade online
*
ERROR at line 1:
ORA-01578: ORACLE data block corrupted (file # 24, block # 361580)
ORA-01110: data file 24: '/oracle/DEV/sapdata1/dev_10/dev.data10'
не совсем разобрался что прописать из пункта 7 ноты 365481.
a) dbverify without errors/analyze without errors
You probably do not have a corruption. Repeat the access that indicated the corruption. If this is successful this time AND if you can read the table using a
select * from sapr3."<TABLE>";
AND if none of the procedures described in Note 23345 reports a problem, it is very likely that a temporary corruption existed in the memory but not on the hard disk. The block (which was only corrupt in the main memory) was not reimported to the hard disk because it was not changed. Always check your hardware in this case. Note 786645 contains additional reasons for temporary corruption.
b) dbverify with errors/analyze without errors
The corruption is probably located in a block of the table that has never contained data. Execute the following command:
alter table <tablename> deallocate unused;
The corruption should then appear in the free space and should therefore be deleted as described there.
Furthermore, in tables with LOB columns, the corruption may be located in the lob segment. The analysis is not capable of recognizing this type of corruption. In this case, proceed as described under "dbverify with errors/analyze with errors".
c) dbverify with errors/analyze with errors
Save the corrupt data file and transfer a backup of this file from a backup that does not contain the corruption. Recover this file up to the current time.
If you do not have a backup that you can definitely say does not contain the corruption, you can restore a file from a backup that is still available in A DIRECTORY THAT DOES NOT BELONG TO THE DB and check this backup using dbv. If a corruption is not reported, you have subsequently verified your backup because, on the one hand, dbverify can recognize the corruption and, on the other, your backup does not have any corruptions.
To import a file back into another directory using brrestore, use the following command:
Abstract:
brrestore -b <log> -m <number of file>=<Restore Directory>
For example:
brrestore -b bddcbjcq.afd -m 59=c:\temp
d) dbverify without errors/analyze with errors
This case differs from the previous case in that dbverify does not recognize an existing corruption that an analysis finds. If you do not have a backup that you can definitely say does not contain the corruption, you can check this easily at a later stage.
After you have made a backup of the corrupt file, you can reimport and recover the backup of the file without checking it and hope that the corruption was not yet contained in the backup OR
you can create a temporary check system using a (partial) DB copy from this backup (consisting of the rollback, system and tablespace that contains the corruption) and analyze the table on this check system. If this is possible without errors, in retrospect you have verified your backup and you can restore and recover this.
|
|