一,环境准备
1, 拥有全备 数据
2, 查看spfile文件位置
1 SQL> SQL> SELECT NAME, VALUE, DISPLAY_VALUE FROM V$PARAMETER WHERE NAME ='spfile';
2
3 NAME
4 --------------------------------------------------------------------------------
5 VALUE
6 --------------------------------------------------------------------------------
7 DISPLAY_VALUE
8 --------------------------------------------------------------------------------
9 spfile
10 /u01/oracle/db_1/dbs/spfileprod.ora
11 /u01/oracle/db_1/dbs/spfileprod.ora
View Code
3,
1 SQL> Show parameter spfile
2
3 NAME TYPE VALUE
4 ------------------------------------ ----------- ------------------------------
5 spfile string /u01/oracle/db_1/dbs/spfilepro
6 d.ora
7 SQL>
View Code
4,删除spfile
二,故障恢复
01,拥有备份的spfile 拷贝即可
02,为拥有备份,通过全备数据恢复
03,查看全备又spfile的文件,寻找最新的
rman target /
list backup of spfile
04,恢复sfpile备份
restore spfile from '/u01/backup/spfile_PROD_20190301_735_1';
05,验证
查看目录验证即可