如何模拟数据文件损坏

[复制链接]
查看11 | 回复9 | 2010-11-15 10:46:13 | 显示全部楼层 |阅读模式
想模拟一下oracle 数据文件损坏 ,不知道有没有好的办法没有(不要用UltraEdit 等编辑工具 )在数据库面上有没有办法那?
谢谢各位大侠

回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
你不用UE,一般情况如何破坏.

回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
本帖最后由 289312688 于 2012-1-9 17:34 编辑
[oracle@VS1 ~]$ dd of=test.dbfbs=8192 seek=2432 conv=notrunc count=2 if=/dev/zero
1+0 records in
1+0 records out
8192 bytes (8.2 kB) copied, 4.3e-05 seconds, 191 MB/s
[oracle@VS1 ~]$ dbv file=test.dbf blocksize=8192
DBVERIFY: Release 11.2.0.3.0 - Production on Wed Dec 14 10:27:12 2011
Copyright (c) 1982, 2011, Oracle and/or its affiliates.All rights reserved.
DBVERIFY - Verification starting : FILE = test.dbf
Page 2432 is marked corrupt
Corrupt block relative dba: 0x01400980 (file 5, block 2432)
Completely zero block found during dbv:
Page 2433 is marked corrupt
Corrupt block relative dba: 0x01400981 (file 5, block 2433)
Completely zero block found during dbv:

DBVERIFY - Verification complete
Total Pages Examined : 12800
Total Pages Processed (Data) : 9068
Total Pages Failing (Data) : 0
Total Pages Processed (Index): 0
Total Pages Failing (Index): 0
Total Pages Processed (Other): 300
Total Pages Processed (Seg): 0
Total Pages Failing (Seg): 0
Total Pages Empty
: 3430
Total Pages Marked Corrupt : 2
Total Pages Influx : 0
Total Pages Encrypted: 0
Highest block SCN
: 2925353 (0.2925353)


回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
bbed也可以
回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
不懂。。。。
回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
ue进去你懂的
回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
太容易了。
echo "dfdfdfdgagdg">>你的数据文件。

回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
last_day_1983 发表于 2012-1-9 21:53
太容易了。
echo "dfdfdfdgagdg">>你的数据文件。

我的是os 是windowns用你的 echo "dfdfdfdgagdg">> 不可以那
回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层
pingdanorcale 发表于 2012-1-10 08:40
我的是os 是windowns用你的 echo "dfdfdfdgagdg">> 不可以那

windows echo sdsfdsf>数据文件 可以
回复

使用道具 举报

千问 | 2010-11-15 10:46:13 | 显示全部楼层


win.曾经我使用过360粉碎文件,如果文件不要的话。
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行