Recovering NOLOGGING Tables and Indexes

NOLOGGING用法
本文介绍了在Oracle数据库中使用NOLOGGING选项创建表和索引的风险与注意事项,包括这些对象在介质恢复后的不可恢复性及如何正确处理此类情况。

在使用CREATE TABLE AS SELECT创建表及索引时可以使用NOLOGGING选项,这将导致表或索引无法恢复
使用NOLOGGING操作后最好备份一下
NOLOGGING对象在恢复后会标识为逻辑错误,只能重建
Be aware that when you perform media recovery, and some tables or indexes are created normally whereas others are created with the NOLOGGING option, 
the NOLOGGING objects are marked logically corrupt by the RECOVER operation. 
Any attempt to access the unrecoverable objects returns an ORA-01578 error message. 
Drop the NOLOGGING objects and re-create them if needed.

Note: Because it is possible to create a table with the NOLOGGING option and then create an index with the LOGGING option on that table, 
the index is not marked as logically corrupt after you perform media recovery. 
The table was unrecoverable (and thus marked as corrupt after recovery), however, so the index points to corrupt blocks. 
The index must be dropped, and the table and index must be re-created if necessary.

另外在使用传输表空间后,也应该对相关表空间进行备份
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值