zoukankan      html  css  js  c++  java
  • 服务器断电,Oracle数据库无法启动解决方案

    数据库没有备份的情况下,数据库所在服务器由于意外断电,导致服务器启动之后,Oracle数据库startup报错.

    1. 数据库没开归档模式

    2. 无备份

    解决方案:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    SQL>startup mount
    SQL>recover database using backup controlfile until cancel;
    SQL>alter database open resetlogs;
    # 此时会提示system表空间需要恢复,但是由于当前日志损坏
    # 无法进行恢复,所以需要加入#隐含参数,oracle才不会监测scn
    # 的一致性,才能打开数据库。
    # 重启数据库加入隐含参数
    SQL> startup mount
    SQL> alter system set “_allow_resetlogs_corruption”=true scope=spfile;
    SQL> shutdown immediate
    SQL> startup mount
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    # 不管这些,再次登录sqlplus起动数据库
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Nov 16 08:03:43 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL>startup
  • 相关阅读:
    完全背包
    二分求值(二分适合求答案在两个数之间的题目)
    set<pair<int,int> >的用法
    01背包 (dp专题)
    矩阵快速幂
    BZOJ1977 [BeiJing2010组队]次小生成树 Tree
    BZOJ1854 [Scoi2010]游戏
    BZOJ1054 [HAOI2008]移动玩具
    NOIP系列复习及题目集合
    BZOJ2708 [Violet 1]木偶
  • 原文地址:https://www.cnblogs.com/tippoint/p/3951337.html
Copyright © 2011-2022 走看看