SQL循环冗余错误。

磁盘D有坏道,SQL文件刚好在D盘,拷贝到其他盘循环冗余。修复硬盘坏道,就可以拷贝了。对SQL数据有影响吗?
求专业人士,关乎到本人的过失!

查出坏块的object
SELECT tablespace_name, segment_type, owner, segment_name FROM dba_extents WHERE file_id = 文件号 AND <BLOCK> between block_id AND block_id+blocks-1;
用Oracle提供的DBMS_REPAIR包标记出坏块 exec DBMS_REPAIR.SKIP_CORRUPT_BLOCKS('<schema>','<tablename>'); 使用Create table as select命令将表中其它块上的记录保存到另一张表上 create table corrupt_table_bak as select * from corrupt_table; 用DROP TABLE命令删除有坏块的表 drop table corrupt_table; 用alter table rename命令恢复原来的表 alter table corrupt_table_bak rename to corrupt_table;
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网