---
title: "ORA-17502 与 ORA-15173 错误解决"
author: "libin123"
date: "2010-05-21T17:27:39Z"
tags: []
categories: ["数据库"]
slug: "ora-17502-ora-15173"
draft: false
lastmod: "2010-05-21T17:28:37Z"
id: 671925
url: "https://dbua.iteye.com/blog/671925"
---

用rman恢复spfile时，报错误如下：

 

RMAN&gt; 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&gt; cd DISKGRP1  
ASMCMD&gt; ls  
ASMCMD&gt; mkdir orac  
ASMCMD&gt; ls  
orac/

 

 重新执行操作：

 

RMAN&gt; 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

 

执行成功！