• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

ORA-01172、ORA-01151错误处理

mysql 搞代码 4年前 (2022-01-09) 100次浏览 已收录 0个评论

遇到ORA-01172、ORA-01151错误,询问得知存储出现故障导致数据库无法启动。

遇到ORA-01172、ORA-01151错误,询问得知存储出现故障导致数据库无法启动。

数据库版本:10.2.0.1.0

[Oracle@hhserverfs ~]$ sqlplus /nolog

SQL*Plus: Release 10.2.0.1.0 – Production on Sat Jun 8 11:46:38 2013

Copyright (c) 1982, 2005, Oracle. All rights reserved.

SQL> conn /as sysdba

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 1124073472 bytes

Fixed Size 1218968 bytes

Variable Size 385877608 bytes

Database Buffers 721420288 bytes

Redo Buffers 15556608 bytes

Database mounted.

ORA-01172: recovery of thread 1 stuck at block 121 of file 2

ORA-01151: use media recovery to recover block, restore backup if needed

SQL> !

[oracle@hhserverfs ~]$ oerr ora 01172

01172, 00000, “recovery of thread %s stuck at block %s of file %s”

// *Cause: Crash recovery or instance recovery could not apply a change to a

// block because it was not the next change. This can happen if the

// block was corrupted and then repaired during recovery.

// *Action: Do a RECOVER DATAFILE for the file containing the block. If this

//

本文来源gaodai.ma#com搞##代!^码@网*

does not resolve the problem then restore the file from a backup

// and recover it.

[oracle@hhserverfs ~]$ exit

exit

SQL> recover datafile 2;

Media recovery complete.

SQL> alter database open;

Database altered.

SQL> exit

Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 – Pr

oduction

With the Partitioning, OLAP and Data Mining options

[oracle@hhserverfs ~]$


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:ORA-01172、ORA-01151错误处理

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址