RMAN-06496: must use the TO clause when the database is mounted or open
2014-08-29 11:12
3939 查看
一:问题描述
备份控制文件时报错:
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://oscdn.geek-share.com/Uploads/Images/Content/202008/14/4a25eb1acdff8e042daeb9fdf42ef5df)
没有再报错了。
备份控制文件时报错:
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
没有再报错了。
相关文章推荐
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- Server 2008 R2: “You must use the Role Management Tool to install or configure Microsoft .NET”
- Error code: 0x80004005 "The Microsoft Access database engine cannot open or write to the file ''
- Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE
- “ORA-01589:must use RESETLOGS or NORESETLOGS option for database open”
- The Behavior version of the Forest is 0 it must be 2 or greater to perform a domain rename: 该服务器不愿意处理该请求。 :8245
- The installer you are trying to use is corrupted or incomplete.
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Debug:This kind of launch is configured to openthe debug perspective when it解决办法
- ORA-01155: the database is being opened, closed, mounted or dismounted
- Must use JDK 1.5.x or higher to build Openfire
- Error code: 0x80004005 "The Microsoft Access database engine cannot open or write to the file &
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1
- You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5
- The action cannot be completed. The connection to Microsoft Exchange is unavailable. Outlook must be online or connected to complete this action.
- How to grant access to SQL logins on a standby database when the guest user is disabled in SQL Serve
- ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
- 47 You want to use RMAN to create compressed backups. Which statement is true about the compression
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard
- 技术人生:Knowing when or where it’s appropriate to use a technique or tool is just as important as knowing how to use it.