Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

999

积分

1

好友

942

主题
1#
发表于 2017-4-15 17:07:19 | 查看: 1208| 回复: 0
我是一名初级DBA,刚接手一个生产数据库,近期在日常巡检时发现alter报错如下:
Wed Nov 14 15:15:01 2012
Errors in file /ora_app/app/oracle/admin/SOC/bdump/soc_smon_4372.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-01578: ORACLE data block corrupted (file # 1, block # 164756)
ORA-01110: data file 1: '/ora_data/oradata/SOC/system01.dbf'

后来我用dbv工具检测了一下,结果如下:

[oracle@nx ~]$ dbv FILE='/ora_data/oradata/SOC/system01.dbf'
DBVERIFY: Release 10.2.0.1.0 - Production on Sun Nov 18 15:41:39 2012
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
DBVERIFY - Verification starting : FILE = /ora_data/oradata/SOC/system01.dbf
Page 155998 is marked corrupt
Corrupt block relative dba: 0x0042615e (file 1, block 155998)
Bad check value found during dbv:
Data in bad block:
type: 6 format: 2 rdba: 0x0042615e
last change scn: 0x0000.08f33a7a seq: 0x1 flg: 0x06
spare1: 0x0 spare2: 0x0 spare3: 0x0
consistency value in tail: 0x3a7a0601
check value in block header: 0x34e7
computed block checksum: 0x2ec2
Page 156380 is marked corrupt
Corrupt block relative dba: 0x004262dc (file 1, block 156380)
Bad check value found during dbv:
Data in bad block:
type: 6 format: 2 rdba: 0x004262dc
last change scn: 0x0000.0934e71b seq: 0x3 flg: 0x04
spare1: 0x0 spare2: 0x0 spare3: 0x0
consistency value in tail: 0xe71b0603
check value in block header: 0x6a5b
computed block checksum: 0xd178
Page 164756 is marked corrupt
Corrupt block relative dba: 0x00428394 (file 1, block 164756)
Bad check value found during dbv:
Data in bad block:
type: 6 format: 2 rdba: 0x00428394
last change scn: 0x0000.0917fd5b seq: 0x1 flg: 0x06
spare1: 0x0 spare2: 0x0 spare3: 0x0
consistency value in tail: 0xfd5b0601
check value in block header: 0x7518
computed block checksum: 0x1e2f

DBVERIFY - Verification complete
Total Pages Examined         : 1048576
Total Pages Processed (Data) : 100747
Total Pages Failing   (Data) : 0
Total Pages Processed (Index): 97968
Total Pages Failing   (Index): 0
Total Pages Processed (Other): 1765
Total Pages Processed (Seg)  : 0
Total Pages Failing   (Seg)  : 0
Total Pages Empty            : 848093
Total Pages Marked Corrupt   : 3
Total Pages Influx           : 0
Highest block SCN            : 210041265 (0.210041265)

数据库是未归档,也没有备份,因为是生产库,数据量也较大,在此求助各位大侠,看看有什么比较好的策略解决这个问题?




我没用你提供的SQL语句去查,因为我有些没看懂,就用了下面最简单的方式查了一下,结果如下:

SQL> col OWNER for a10

SQL> col SEGMENT_NAME for a10

SQL> col TABLESPACE_NAME for a15

SQL> selectowner,segment_name,segment_type,tablespace_name from dba_extents where file_id= 1 and block_id between 164756 and block_id + blocks-1;

ERROR:

ORA-01578: ORACLE data block corrupted (file # 1, block #164756)

ORA-01110: data file 1:'/ora_data/oradata/SOC/system01.dbf'


no rows selected



SQL> selectowner,segment_name,segment_type,tablespace_name from dba_extents where file_id= 1 and block_id between 156380 and block_id + blocks-1;

ERROR:

ORA-01578: ORACLE data block corrupted (file # 1, block #164756)

ORA-01110: data file 1:'/ora_data/oradata/SOC/system01.dbf'


no rows selected



SQL> select owner,segment_name,segment_type,tablespace_namefrom dba_extents where file_id = 1 and block_id between 155998 and block_id +blocks-1;

ERROR:

ORA-01578: ORACLE data block corrupted (file # 1, block #164756)

ORA-01110: data file 1:'/ora_data/oradata/SOC/system01.dbf'

no rows selected


下载专业ORACLE数据库恢复工具PRM-DUL  For Oracle http://www.parnassusdata.com/

如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638  QQ: 47079569     邮箱:service@parnassusdata.com
您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-6-15 01:10 , Processed in 0.050847 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569