liabilities. You should also examine other options available for addressing corrupt
objects. Begin by answering the following questions:
在使用DBMS_REPAIR前你必须权衡使用它的益在一些相关的问题上。你也可以测试
其它的可用的选择对于访问有问题的对象。开始前先回答以下几个问题:
To determine if there are corruptions and repair actions, execute the
CHECK_OBJECT procedure and query the repair table.
#EXTENT中损坏的是什么
确定是否有损坏和修改,执行CHECK_OBJECT过程并且查询REPAIR表。
following:
#有哪些其它选项可用的作为访问损坏的数据块?确认以下方面:
repopulate the object.
– Issue the CREATE TABLE...AS SELECT statement from the corrupt table to
create a new one.
– Ignore the corruption by excluding corrupt rows from SELECT statements.
– Perform media recovery.
-如果数据可用的对于其它资源,那么DROP,RE-CREATE,并且重新填充对象。
--输入CTAS语句从损坏的表中去创建一个新的表。
--忽略损坏排除有问题的行从SELECT语句中。
--执行介质还原
DBMS_REPAIR to make an object usable? Can these be addressed? What is the
effort required to do so?
#什么逻辑损坏或负作用被介绍当你使用DBMS_REPAIR使得一个对象可用?
这些都能被访问吗?有什么要求等要做的?
However, a block can be marked corrupt even if there are rows that you can
validly access.
可能话你不需要访问被标识为损坏块的行。另外,一个块可以被标识为损坏
尽管这些行你可以有效的访问它。
marked corrupt. If this occurs, then disable and reenable the constraint; any
inconsistencies are reported. After fixing all problems, you should be able to
reenable the constraint.
它也可能相关的完整性约束被中断当数据块被标识为损坏时。如果发生了这个,
那么DISABLE并且重新开启约束;任何的非一致将会被显示。当修复了所有的问题后,
你可以重新开启约束。
example, if rows are reinserted, should insert triggers be fired or not? You can
address these issues only if you understand triggers and their use in your
installation.
逻辑损坏可能发生的,当在表上存有触发器时。比如,如果行被重新插入,插入
触发器是否被触发?你可以访问这些问题仅当你理解触发器并且它们在你的安装
过程中使用。
procedure to obtain information from the keys that might be useful in rebuilding
corrupted data. Then issue the ALTER INDEX...REBUILD ONLINE statement to
synchronize the table with its indexes.
如果索引和表不同步,那么执行DUMP_ORPHAN_KEYS过程去获得信息从主键,那个可能
有用的在重新损坏数据。然后输入ALTER INDEX...REBUILD ONLINE语句去同步表和它的索引。
You can retrieve data from the index when a data block is marked corrupt. The
DUMP_ORPHAN_KEYS procedure can help you retrieve this information.
如果修复引发了数据丢失。这些数据可以被还原吗?
你可以返回数据从索引中当一个数据块标识为损坏时。DUMP_ORPHAN_KEYS过程可以帮你返回这些数据。