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>

原文地址:https://www.cnblogs.com/datalife/p/1985434.html