首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

ORA-17502 与 ORA-15173 异常解决

2012-08-24 
ORA-17502 与 ORA-15173 错误解决?用rman恢复spfile时,报错误如下:?RMAN restore spfile from +FLASHBAC

ORA-17502 与 ORA-15173 错误解决

?

用rman恢复spfile时,报错误如下:

?

RMAN> restore spfile from '+FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_16/s_719137976.308.719137979';

Starting restore at 17-MAY-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=33 devtype=DISK

channel ORA_DISK_1: autobackup found: +FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_16/s_719137976.308.719137979
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/17/2010 06:41:35
ORA-19870: error reading backup piece +FLASHBACKDATA1/orac/autobackup/2010_05_16/s_719137976.308.719137979
ORA-32015: unable to restore SPFILE
ORA-17502: ksfdcre:4 Failed to create file +DISKGRP1/orac/spfileorac.ora
ORA-15173: entry 'orac' does not exist in directory '/'

Solution

A workaround for this would be to pre-create the appropriate directory hierarchy before RMAN duplicate command issued.

This can be done with ASMCMD or ALTER DISKGROUP ... ADD DIRECTORY.

All auxiliary directories and subdirectories should be precreated before duplicate as they will
not created automatically..


进入ASM目录,创建orac目录

FLASHBACKDATA1/
ASMCMD> cd DISKGRP1
ASMCMD> ls
ASMCMD> mkdir orac
ASMCMD> ls
orac/

?

?重新执行操作:

?

RMAN> restore spfile from '+FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_16/s_719137976.308.719137979';

Starting restore at 17-MAY-10
using channel ORA_DISK_1

channel ORA_DISK_1: autobackup found: +FLASHBACKDATA1/ORAC/AUTOBACKUP/2010_05_16/s_719137976.308.719137979
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 17-MAY-10

?

执行成功!

?

?

热点排行