• RMAN系列控制文件丢失


    [oracle@server ~]$ rman target/

    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 15 22:33:23 2011

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

    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-06003: ORACLE error from target database:
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/orcl/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    [oracle@server ~]$ sqlplus / as sysdba

    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jan 15 22:33:29 2011

    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> shutdown immediate
    ORA-00210: cannot open the specified control file
    ORA-00202: control file: '/oracle/oradata/orcl/control01.ctl'
    ORA-27041: unable to open file
    Linux Error: 2: No such file or directory
    Additional information: 3
    SQL> shutdown abort;
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    [oracle@server ~]$ rman target/

    Recovery Manager: Release 10.2.0.1.0 - Production on Sat Jan 15 22:33:58 2011

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

    connected to target database (not started)

    RMAN> startup nomount   -------------注意nomount状态-----------------

    Oracle instance started

    Total System Global Area     285212672 bytes

    Fixed Size                     1218968 bytes
    Variable Size                 96470632 bytes
    Database Buffers             180355072 bytes
    Redo Buffers                   7168000 bytes

    RMAN> restore controlfile from autobackup;

    Starting restore at 15-JAN-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK

    recovery area destination: /oracle/product/10.2.0/db_1/flash_recovery_area
    database name (or database unique name) used for search: ORCL
    channel ORA_DISK_1: no autobackups found in the recovery area
    autobackup search outside recovery area not attempted because DBID was not set
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/15/2011 22:34:19
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

    RMAN> restore controlfile from '/oracle/orabak/ctlbak/c-1268295002-20110115-08';

    Starting restore at 15-JAN-11
    using channel ORA_DISK_1

    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
    output filename=/oracle/oradata/orcl/control01.ctl
    output filename=/oracle/oradata/orcl/control02.ctl
    output filename=/oracle/oradata/orcl/control03.ctl
    Finished restore at 15-JAN-11

    RMAN> alter database mount;

    database mounted
    released channel: ORA_DISK_1

    RMAN> alter database open;

    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 01/15/2011 22:36:16
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open

    RMAN> alter database open resetlogs; ---------resetlogs会把online redo清空做好全备份-----

    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 01/15/2011 22:36:22
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/oracle/oradata/orcl/system01.dbf'

    RMAN> recover database;

    Starting recover at 15-JAN-11
    Starting implicit crosscheck backup at 15-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 3 objects
    Finished implicit crosscheck backup at 15-JAN-11

    Starting implicit crosscheck copy at 15-JAN-11
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 15-JAN-11

    searching for all files in the recovery area
    cataloging files...
    no files cataloged

    using channel ORA_DISK_1

    starting media recovery

    archive log thread 1 sequence 18 is already on disk as file /oracle/oradata/orcl/redo02.log
    archive log filename=/oracle/oradata/orcl/redo02.log thread=1 sequence=18
    media recovery complete, elapsed time: 00:00:03
    Finished recover at 15-JAN-11

    RMAN> alter database open resetlogs;

    database opened

    RMAN>

  • 相关阅读:
    go语言之行--简介与环境搭建
    Django Rest Framework源码剖析(八)-----视图与路由
    基于TLS证书手动部署kubernetes集群(下)
    多线程编程
    Java IO流
    java异常处理
    字符串处理(二)
    字符串处理(一)
    正则表达式(应用)
    集合相关知识
  • 原文地址:https://www.cnblogs.com/datalife/p/1985432.html
Copyright © 2020-2023  润新知