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>

  • 相关阅读:
    js的event对象 详解
    RestSharp使用详解(1)调用阿里巴巴开放存储服务
    RestSharp使用详解(2)RestSharp的BUG和不足
    WF实例学习笔记:(2)通过Workflow 调用 WCF Data Services 获取数据
    译文:SQL Azure客户端瞬态错误处理最佳实践
    Windbg 基本命令
    RestSharp使用详解(3)OSS文件上传的问题
    Transient Fault Handling and Retry Logic: 瞬间错误处理——重试
    推荐一本免费的Node.js电子书(台湾)
    CSS导航菜单应用滑动门技术的玻璃效果菜单
  • 原文地址:https://www.cnblogs.com/datalife/p/1985434.html
Copyright © 2011-2022 走看看