RMAN-06496: must use the TO clause when the database is mounted or open

一:问题描述

备份控制文件时报错:

RMAN> restore controlfile from '/home/oracle/backup/PROD_32_20140829.bak';

 

Starting restore at 29-AUG-14

using channel ORA_DISK_1

 

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03002: failure of restore command at 08/29/2014 02:41:21

RMAN-06496: must use the TO clause when the database is mounted or open

 

二:出错原因

在数据库mount状态下恢复了控制文件。

三:解决办法

在nomount状态下恢复控制文件。

四:示例

 

SQL> shutdown immediate;
ORA-01109: database not open

 


Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.

 

Total System Global Area  285212672 bytes
Fixed Size      1218992 bytes
Variable Size    113247824 bytes
Database Buffers   167772160 bytes
Redo Buffers      2973696 bytes

没有再报错了。

 

转载于:https://www.cnblogs.com/yabingshi/p/3944501.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值