In the case of sun cluster dual-machine switching, accidental power outages, or other situations where the shared disk is not mount, it is necessary to use FSCK to repair the shared disk. After the repair completes, in the database starts the process, but also appears "The block of data blocks, cannot start the database" The phenomenon, at this time, may according to the different data block damage type, detects and fixes the error. Here are three ways to use oracle8i to repair damaged blocks of data.
One, the data block is corrupted, the error code is ORA-01578
ORA-1115 I/O ERROR READING block
Typically followed by ora-737x errors and operating system errors (such as error number 5 in Unix)
Causes:
1. Hardware problem (disk controller problem or disk problem)
2. Damage to the physical block of data (usually caused by the previous reason)
3. When handling mega files, followed by error code ORA-7371
Determine the cause of the failure and how to recover:
1. View the occurrence of other ORA-1115 errors in the Alert.log file:
1 if a file pointing to a different disk is a problem with the disk controller, see V$datafile, which files are located under the controller and go to step two.
2 If you point to a different file on the same disk, it is a problem with the disk and go to step two.
3 If you point to the same file, execute the following statement to find the file name:
SELECT SEGMENT_NAME,SEGMENT_TYPE FROM DBA_EXTENTS
WHERE FILE_ID=<文件号> AND <块号> BETWEEN BLOCK_ID
AND BLOCK_ID+BLOCKS-1;
Where the file number and block number are indicated in ORA-1115, if the query continues to point to a table or index, rebuild them.
2. If the file is System tablespace, or in Noarchivelog mode, close the database and go to step fourth.
3. If the database is in Archivelog mode, the database should still be closed, and if the database cannot be closed, the corresponding data file will be taken offline: ALTER database datafile ' filename ' OFFLINE;
4. Try copying the data files to another disk.
5. If the copy fails, the file is lost.
6.STARTUP MOUNT;
7. Rename the data file to a file name that was successfully copied to another disk:
ALTER DATABASE RENAME FILE '老路径文件名' TO '新路径文件名';
8.ALTER DATABASE OPEN;
9.RECOVER datafile filename;
ALTER DATABASE datafile ' filename ' ONLINE;