oracle断电重启之ORA-01033和ORA-01172数据库掉电后磁盘坏块解决方法

来源:互联网 发布:java 并发会话限制 编辑:程序博客网 时间:2024/05/04 18:09
--尝试连接数据库prjdbC:\Documents and Settings\Administrator>sqlplus test/test@prjdbSQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 9 17:23:08 2014Copyright (c) 1982, 2010, Oracle.  All rights reserved.--报错ORA01033ERROR:ORA-01033: ORACLE ????????Process ID: 0Session ID: 0 Serial number: 0--查找ORA-01033的根源是什么,使用管理员身份登陆C:\Documents and Settings\Administrator>SQLPLUS SYS/SYS AS SYSDBASQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 9 17:25:31 2014Copyright (c) 1982, 2010, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options--关闭数据库实例SQL> SHUTDOWNORA-01109: database not openDatabase dismounted.ORACLE instance shut down.--尝试启动数据库,如果启动失败会报错,这样就能够找到问题根源。SQL> STARTUPORACLE instance started.Total System Global Area  778387456 bytesFixed Size                  1374808 bytesVariable Size             469763496 bytesDatabase Buffers          301989888 bytesRedo Buffers                5259264 bytesDatabase mounted.--问题根源是ORA-01172和ORA-01151ORA-01172: recovery of thread 1 stuck at block 651 of file 90ORA-01151: use media recovery to recover block, restore backup if needed--查看file 90到底是哪一个文件,此步骤非必需SQL> select file#,name from v$datafile where file#=90;     FILE#     NAME       D:\ORACLE\ORADATA\PRJDB\TS_HIS18.DBF     --恢复file 90SQL> recover datafile 90;Media recovery complete.SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options--再次尝试连接prjdbC:\Documents and Settings\Administrator>sqlplus test/test@prjdbSQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 9 17:46:33 2014Copyright (c) 1982, 2010, Oracle.  All rights reserved.--依然失败ERROR:ORA-01033: ORACLE ????????Process ID: 0Session ID: 0 Serial number: 0--重复前面的操作C:\Documents and Settings\Administrator>SQLPLUS SYS/SYS AS SYSDBASQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 9 17:46:46 2014Copyright (c) 1982, 2010, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> select open_mode from v$database;OPEN_MODE--------------------MOUNTEDSQL> alter database open;alter database open*ERROR at line 1:--发现还有一个file 7也是有问题的ORA-01172: recovery of thread 1 stuck at block 89361 of file 7ORA-01151: use media recovery to recover block, restore backup if needed--恢复file 7SQL> recover datafile 7;Media recovery complete.--再次启动数据库SQL> alter database open;--数据库启动成功Database altered.SQL> exitDisconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing options--再次尝试连接C:\Documents and Settings\Administrator>sqlplus test/test@prjdbSQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 9 17:48:33 2014Copyright (c) 1982, 2010, Oracle.  All rights reserved.Connected to:Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - ProductionWith the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> --连接成功。


0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 出入境的受理编号不见了怎么办 职工下岗档案单位丢失怎么办退休 大学毕业档案在自己手里怎么办 青岛李沧区房产证加名字怎么办手续 公积金迟交了1天怎么办 科一预约不上怎么办 科目一考试没去怎么办 科目一成绩单丢了怎么办 考科目二身份证丢了怎么办 考科目三身份证丢了怎么办 考科目一身份证丢了怎么办 滴滴顺风车被永久封禁怎么办 三岁宝宝智力发育迟缓怎么办 学车体检听力没过怎么办 学车体检听力不过关怎么办 离职体检发现听力有问题怎么办 买的二手房土地证没过户怎么办 b2扣了9分怎么办 上海网约车车证怎么办 b2驾照累计12分怎么办 c1本扣满12分怎么办 太原公共自行车丢了怎么办 在太原出租车丢了东西怎么办 太原社保卡丢了怎么办 太原铁路医保卡丢了怎么办 学车体检视力不合格怎么办 换驾照色弱被拒怎么办 在上海考驾照贵怎么办 驾驶证有效期过了半年怎么办 资格证脱审2年了怎么办 换驾驶证时眼睛近视了怎么办 违章累计扣12分怎么办 一个违章扣12分怎么办 a1驾照扣3分怎么办 a1驾照扣12分怎么办 吃了毓婷哺乳了怎么办 吃了毓婷后出血怎么办 吃金毓婷喝了水怎么办 白带浓稠浆糊样怎么办 驾校学费不给退怎么办 b1驾证扣了9分怎么办