- 最后登录
- 2015-4-22
- 在线时间
- 122 小时
- 威望
- 133
- 金钱
- 1304
- 注册时间
- 2012-2-22
- 阅读权限
- 50
- 帖子
- 144
- 精华
- 1
- 积分
- 133
- UID
- 254
|
1#
发表于 2014-5-26 11:26:19
|
查看: 5038 |
回复: 3
本帖最后由 saup007 于 2014-5-26 11:53 编辑
内部使用的数据库,之前断电了,undo坏块了,尝试使用隐藏参数,库启来了。(虽然有备份)但,最后还是用备份恢复一次。
今天早上来公司,alter还是有坏块!- Fri May 23 22:00:05 2014
- GATHER_STATS_JOB encountered errors. Check the trace file.
- Fri May 23 22:00:05 2014
- Errors in file /u01/app/oracle/admin/MYSID/bdump/MYSID_j001_16658.trc:
- ORA-01578: ORACLE data block corrupted (file # 3, block # 50481)
- ORA-01110: data file 3: '/u01/oradata/MYSID/sysaux.dbf'
- Sat May 24 06:00:05 2014
- Errors in file /u01/app/oracle/admin/MYSID/bdump/MYSID_j001_12393.trc:
- ORA-01578: ORACLE data block corrupted (file # 3, block # 50481)
- ORA-01110: data file 3: '/u01/oradata/MYSID/sysaux.dbf'
复制代码 从trace文件可知,是收集统计信息是,报的错:- $ vim /u01/app/oracle/admin/MYSID/bdump/MYSID_j001_12393.trc
- /u01/app/oracle/admin/MYSID/bdump/MYSID_j001_12393.trc
- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
- With the Partitioning, OLAP, Data Mining and Real Application Testing options
- ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1
- System name: Linux
- Node name: MYSID1
- Release: 2.6.9-55.ELsmp
- Version: #1 SMP Fri Apr 20 17:03:35 EDT 2007
- Machine: i686
- Instance name: MYSID
- Redo thread mounted by this instance: 1
- Oracle process number: 31
- Unix process pid: 12393, image: oracle@MYSID1 (J001)
- *** ACTION NAME:(GATHER_STATS_JOB) 2014-05-24 06:00:05.678
- *** MODULE NAME:(DBMS_SCHEDULER) 2014-05-24 06:00:05.678
- *** SERVICE NAME:(SYS$USERS) 2014-05-24 06:00:05.678
- *** SESSION ID:(1090.6978) 2014-05-24 06:00:05.678
- ORA-01578: ORACLE data block corrupted (file # 3, block # 50481)
- ORA-01110: data file 3: '/u01/oradata/MYSID/sysaux.dbf'
- *** 2014-05-24 06:00:05.679
- GATHER_STATS_JOB: GATHER_TABLE_STATS('"SYS"','"WRH$_COMP_IOSTAT"','""', ...)
- ORA-01578: ORACLE data block corrupted (file # 3, block # 50481)
- ORA-01110: data file 3: '/u01/oradata/MYSID/sysaux.dbf'
复制代码 查看坏块:- SQL> select * from v$database_block_corruption;
-
- FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTION_TYPE
- ---------- ---------- ---------- ------------------ ---------------
- 2 2 1 0 CORRUPT
- 3 50481 1 0 CORRUPT
-
- SQL>
- SQL>
- SQL>
- SQL> SELECT tablespace_name, segment_type, owner, segment_name
- 2 FROM dba_extents
- 3 WHERE file_id = 3
- 4 and 50481 between block_id AND block_id + blocks - 1;
-
-
- TABLESPACE_NAME SEGMENT_TYPE OWNER SEGMENT_NAME
- ------------------------------ ------------------ ------------------------------ ------------------------------------
- SYSAUX TABLE SYS WRH$_COMP_IOSTAT
- SQL> SELECT tablespace_name, segment_type, owner, segment_name
- 2 FROM dba_extents
- 3 WHERE file_id = 2
- 4 and 2 between block_id AND block_id + blocks - 1;
-
- TABLESPACE_NAME SEGMENT_TYPE OWNER SEGMENT_NAME
- ------------------------------ ------------------ ------------------------------ ---------------------------------------------------------------------------
-
复制代码 file_id =2 应该是原来undo上的坏块,但现在已经没有对应的数据库对象了,只有sysaux有一条记录...- $ dbv file=/u01/oradata/MYSID/sysaux.dbf blocksize=8192
- DBVERIFY: Release 10.2.0.4.0 - Production on Mon May 26 11:52:27 2014
- Copyright (c) 1982, 2007, Oracle. All rights reserved.
- DBVERIFY - Verification starting : FILE = /u01/oradata/MYSID/sysaux.dbf
- DBV-00200: Block, DBA 12633393, already marked corrupt
- DBVERIFY - Verification complete
- Total Pages Examined : 86016
- Total Pages Processed (Data) : 38261
- Total Pages Failing (Data) : 0
- Total Pages Processed (Index): 24716
- Total Pages Failing (Index): 0
- Total Pages Processed (Other): 14080
- Total Pages Processed (Seg) : 0
- Total Pages Failing (Seg) : 0
- Total Pages Empty : 8959
- Total Pages Marked Corrupt : 1
- Total Pages Influx : 0
- Highest block SCN : 1608730663 (0.1608730663)
复制代码 |
|