system表空间的数据文件有两个坏块,如何定位对象

[复制链接]
查看11 | 回复4 | 2012-10-10 14:50:58 | 显示全部楼层 |阅读模式
system表空间的数据文件system3.dbf有两个坏块,现在数据库打不开,在mount状态,请问如何定位到对象?select * from dba_entents;提示数据库没打开。准备使用dbms_repair试试修复,但问题是怎么得到坏块所在的对象?

回复

使用道具 举报

千问 | 2012-10-10 14:50:58 | 显示全部楼层
mount了,看看v$database_block_corruption这个能查不
回复

使用道具 举报

千问 | 2012-10-10 14:50:58 | 显示全部楼层
看下alert提示是报什么错误导致数据库不能open的。贴出alert日志
回复

使用道具 举报

千问 | 2012-10-10 14:50:58 | 显示全部楼层
sh231708 发表于 2012-7-4 11:54
我试了一下,在mount 下,能查看这个视图;

那不就应该看到坏块的信息了?
回复

使用道具 举报

千问 | 2012-10-10 14:50:58 | 显示全部楼层
1). Connect to rman in nocatalog mode to check the datafile:
$ rman target /
RMAN> run {
allocate channel d1 type disk;
backup check logical validate datafile ;
release channel d1;
}
2). Or check all datafiles:
run {
allocate channel d1 type disk;
backup check logical validate database;
release channel d1;
}
3). Run following command to check if there is corruption information:
SQL> select * from V$DATABASE_BLOCK_CORRUPTION;
4). Check alert log if there is corruption information.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行