zoukankan      html  css  js  c++  java
  • RMAN系列spfile丢失的恢复

    [oracle@server ~]$ rman target/

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

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

    connected to target database: ORCL (DBID=1268295002)

    RMAN> shutdown immediate

    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down

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

    connected to target database (not started)
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file '/oracle/product/10.2.0/db_1/dbs/initorcl.ora'

    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started

    Total System Global Area     159383552 bytes

    Fixed Size                     1218244 bytes
    Variable Size                 58722620 bytes
    Database Buffers              92274688 bytes
    Redo Buffers                   7168000 bytes

    RMAN> set dbid 1268295002

    executing command: SET DBID

    RMAN> restore spfile from autobackup;

    Starting restore at 15-JAN-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=36 devtype=DISK

    channel ORA_DISK_1: looking for autobackup on day: 20110115
    channel ORA_DISK_1: looking for autobackup on day: 20110114
    channel ORA_DISK_1: looking for autobackup on day: 20110113
    channel ORA_DISK_1: looking for autobackup on day: 20110112
    channel ORA_DISK_1: looking for autobackup on day: 20110111
    channel ORA_DISK_1: looking for autobackup on day: 20110110
    channel ORA_DISK_1: looking for autobackup on day: 20110109
    channel ORA_DISK_1: no autobackup in 7 days found
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 01/15/2011 22:24:52
    RMAN-06172: no autobackup found or specified handle is not a valid copy or piece

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

    Starting restore at 15-JAN-11
    using channel ORA_DISK_1

    channel ORA_DISK_1: autobackup found: /oracle/orabak/ctlbak/c-1268295002-20110115-08
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 15-JAN-11

    RMAN> shutdown immediate

    Oracle instance shut down

    RMAN> startup------------------------注这里startup起不来时可以指定dbid=1268295002

    connected to target database (not started)
    Oracle instance started
    database mounted
    database opened

    Total System Global Area     285212672 bytes

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

    RMAN>

  • 相关阅读:
    Linux安装python3.6
    Python安装常见问题(1):zipimport.ZipImportError: can't decompress data
    ModuleNotFoundError: No module named 'apt_pkg'
    【第九届蓝桥杯大赛决赛真题】JAVA大学C组题解
    Mineweep(扫雷)
    Josephus环的四种解法(约瑟夫环)
    java背包的数组实现,链表实现
    Java 实现栈,队列
    java实现单链表
    MySql8最新配置方式(完美)
  • 原文地址:https://www.cnblogs.com/datalife/p/1985434.html
Copyright © 2011-2022 走看看