SQL> select dbid from v$database;
DBID
----------
50441556
[oracle@mysql1 ~]$ rman target /
RMAN> set DBID=50441556
RMAN> startup force nomount;
startup failed:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/home/oracle/u01/app/oracle/dbs/inittestasm.ora'
starting Oracle instance without parameter file for retrival of spfile Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1266320 bytes
Variable Size 58723696 bytes
Database Buffers 92274688 bytes
Redo Buffers 7118848 bytes
RMAN> restore spfile from '/home/oracle/backup/database_0cmdrgc8_1_1.dbf';
RMAN> restore controlfile from '/home/oracle/backup/database_0cmdrgc8_1_1.dbf';
RMAN> startup force nomount;
RMAN> restore controlfile from '/home/oracle/backup/database_0cmdrgc8_1_1.dbf';
RMAN> alter database mount
RMAN> restore database
RMAN> recover database
RMAN> alter database open resetlogs;
[@more@]找一个临时pfile
RMAN> startup nomount;
RMAN> restore spfile to '/tmp/spfiletestasm.ora' from autobackup;
RMAN> !cp /tmp/spfiletestasm.ora $ORACLE_HOME/dbs
RMAN> startup nomount;
RMAN> restore controlfile from autobackup;
RMAN> alter database mount;
RMAN> restore database;
RMAN> recover database;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9907339/viewspace-1050668/ ,如需转载,请注明出处,否则将追究法律责任。