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>

  • 相关阅读:
    MySQL Workbench的使用教程 (初级入门版)
    优化MySQL语句的十个建议
    Openfire+Spark+Spark Web安装配置(一)
    agsxmpp官方源代码
    (转载)Oracle中删除外键约束、禁用约束、启用约束
    8.手工备份恢复备用数据库(练习10、11)
    (转载)图文推荐给开发人员非常实用的站点
    13.服务器管理恢复RMAN备份(练习20)
    9.手工备份恢复表空间时间点恢复(练习12.13.14)
    12.服务器管理恢复RMAN配置(练习19)
  • 原文地址:https://www.cnblogs.com/datalife/p/1985434.html
Copyright © 2011-2022 走看看