Oracle 修复坏块,关掉闪回
admin
2023-05-07 16:02:02
0

RMAN 修复报错:

RMAN> recover datafile 2 block 410352;

Starting recover at 05-OCT-15

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=292 device type=DISK

allocated channel: ORA_DISK_2

channel ORA_DISK_2: SID=577 device type=DISK

finished standby search, restored 1 blocks

starting media recovery

some blocks not recovered: See trace file for details

media recovery complete, elapsed time: 00:00:01


$ cat CWFOL_ora_7471310.trc

Trace file /oracle/diag/rdbms/cwfol/CWFOL/trace/CWFOL_ora_7471310.trc

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

ORACLE_HOME = /oracle/product/11.2/db_2

System name:    AIX

Node name:      DB2

Release:        1

Version:        6

Machine:        00F813C84C00

Instance name: CWFOL

Redo thread mounted by this instance: 1

Oracle process number: 146

Unix process pid: 7471310, p_w_picpath: oracle@DB2 (TNS V1-V3)

*** 2015-10-05 11:33:34.183

*** SESSION ID:(292.63641) 2015-10-05 11:33:34.183

*** CLIENT ID:() 2015-10-05 11:33:34.183

*** SERVICE NAME:(SYS$USERS) 2015-10-05 11:33:34.183

*** MODULE NAME:(rman@DB2 (TNS V1-V3)) 2015-10-05 11:33:34.183

*** ACTION NAME:(0000013 STARTED104) 2015-10-05 11:33:34.183

Begin Media Recovery of 1 blocks

Dumping database incarnation table:

Resetlogs 0 scn and time: 0x000a.ea74a943 02/19/2015 21:16:47

Initial buffer sizes: read 1024K, overflow 832K, change 805K

*** 2015-10-05 11:33:34.214

Media Recovery add redo thread 1

Start recovery at thread 1 ckpt scn 67757762871 logseq 8049 block 2

End recovery at scn 67758750891

*** 2015-10-05 11:33:34.214

Recovery of Online Redo Log: Thread 1 Group 6 Seq 8049 Reading mem 0

----- Redo read statistics for thread 1 -----

Read rate (ASYNC): 32499Kb in 0.05s => 634.76 Mb/sec

Total redo bytes: 34815Kb Longest record: 8Kb, moves: 19/74859 moved: 0Mb (0%)

Longest LWN: 85Kb, reads: 14531 

Last redo scn: 0x000f.c6bc7caa (67758750890)

Change vector header moves = 12979/167649 (7%)

----------------------------------------------

*** 2015-10-05 11:33:34.262

Media Recovery drop redo thread 1

Recovery of file 2, block 410352 failed: Flashback was enabled for the data file when the backup data block used for block media recovery had an unlogged change.

*** 2015-10-05 11:34:57.593

*** ACTION NAME:(0000031 STARTED104) 2015-10-05 11:34:57.593

Begin Media Recovery of 1 blocks

Dumping database incarnation table:

Resetlogs 0 scn and time: 0x000a.ea74a943 02/19/2015 21:16:47

Initial buffer sizes: read 1024K, overflow 832K, change 805K

*** 2015-10-05 11:34:57.625

Media Recovery add redo thread 1

Start recovery at thread 1 ckpt scn 67757762871 logseq 8049 block 2

End recovery at scn 67758797944

*** 2015-10-05 11:34:57.626

Recovery of Online Redo Log: Thread 1 Group 6 Seq 8049 Reading mem 0

----- Redo read statistics for thread 1 -----

Read rate (ASYNC): 33970Kb in 0.05s => 663.49 Mb/sec

Total redo bytes: 35839Kb Longest record: 8Kb, moves: 20/78192 moved: 0Mb (0%)

Longest LWN: 85Kb, reads: 15300 

Last redo scn: 0x000f.c6bd3477 (67758797943)

Change vector header moves = 13600/175275 (7%)

----------------------------------------------

*** 2015-10-05 11:34:57.675

Media Recovery drop redo thread 1

Recovery of file 2, block 410352 failed: Flashback was enabled for the data file when the backup data block used for block media recovery had an unlogged change.


关掉数据库闪回:


SQL> alter database flashback off;

Database altered.

RMAN> recover datafile 2 block 410352;

Starting recover at 05-OCT-15

using channel ORA_DISK_1

using channel ORA_DISK_2

finished standby search, restored 1 blocks

starting media recovery

media recovery complete, elapsed time: 00:00:01

Finished recover at 05-OCT-15


然后再打开闪回:

SQL> alter database flashback on;

Database altered.


相关内容

热门资讯

Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...
5G+165Hz!联想新品官宣... 近两年来,小屏平板一直是比较有趣的一个品类。 不同于大平板注重效率、手机追求万能的特点,拯救者Y70...
原创 马... 马斯克又出来了。这次说2036年钱就没用了。 理由是人工智能加机器人,东西多到你用不完,还拿钱干嘛...
美的集团:我国智能家居互联互通... IT之家 7 月 30 日消息,美的集团今日发布公告,7 月 21 日至 23 日,智能家居互联互通...
华为新款MatePad Pro... 【CNMO科技消息】7月30日,@华为终端 官宣全新旗舰平板华为MatePad Pro。 新款华为...
从实验室到实景验证:6G光子太... 全息通信是第六代移动通信(6G)的典型应用场景之一,旨在通过融合无线传输与全息三维成像技术,实现超大...
从“能对话”到“能干活”——人... 【经济界面】 光明日报记者 刘坤 李晓东 周洪双 人工智能(AI)眼镜化身为个人“助理”,实时进行...
【全新发布】UminiP Pr... (来源:洲明科技)
日本通过“H3火箭8号”发射失... △H3火箭(资料图) 日本文部科学省30日召开关于去年“H3火箭8号”发射失败的会议。会议通过的最终...
互联网巨头抢滩健康硬件,上游芯... 封面新闻记者 付文超 当下,互联网巨头对健康硬件的押注,正在成为产业现实,加速拉动整个产业链步入新一...