oracle备份恢复之rman恢复到异机
发布日期:2025-04-30 01:28:51
浏览次数:19
分类:精选文章
本文共 4378 字,大约阅读时间需要 14 分钟。
Recovery Manager: Release 10.2.0.1.0 - Production on Tue Dec 11 19:02:05 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.connected to target database: CRM (DBID=3601019238)RMAN> list backup of spfile;BS Key Type LV Size Device Type Elapsed Time Completion Time13 Full 7.11M DISK 00:00:04 09-DEC-12BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20121209T040058Piece Name: /oracle/app/db1/dbs/0dnsd96i_1_1SPFILE Included: Modification time: 09-DEC-12RMAN> list backup of controlfile;
BS Key Type LV Size Device Type Elapsed Time Completion Time13 Full 7.11M DISK 00:00:04 09-DEC-12BP Key: 13 Status: AVAILABLE Compressed: NO Tag: TAG20121209T040058Piece Name: /oracle/app/db1/dbs/0dnsd96i_1_1Control File Included: Ckp SCN: 2779528241 Ckp time: 09-DEC-12RMAN> list backup of database;
BS Key Type LV Size Device Type Elapsed Time Completion Time12 Full 599.38M DISK 00:03:33 09-DEC-12BP Key: 12 Status: AVAILABLE Compressed: NO Tag: TAG20121209T040058Piece Name: /oracle/app/db1/dbs/0cnsd8vq_1_1List of Datafiles in backup set 121 Full 2779528081 09-DEC-12 /oracle/test/system1.dbf2 Full 2779528081 09-DEC-12 /oracle/test/zxb.dbf3 Full 2779528081 09-DEC-12 /oracle/test/sysaux01.dbf4 Full 2779528081 09-DEC-12 /oracle/test/users01.dbf5 Full 2779528081 09-DEC-12 /oracle/test/zxa.dbf6 Full 2779528081 09-DEC-12 /oracle/test/test1.dbf7 Full 2779528081 09-DEC-12 /oracle/test/zxc.dbf8 Full 2779528081 09-DEC-12 /oracle/test/undotbs1.dbf9 Full 2779528081 09-DEC-12 /oracle/test/zxbig.dbfRMAN> list backup of archivelog all;
RMAN> restore spfile to '/oracle/app/db1/dbs/spfileCRM.ora' from '/oracle/app/db1/dbs/0dnsd96i_1_1';Starting restore at 10-DEC-12allocated channel: ORA_DISK_1channel ORA_DISK_1: sid=34 devtype=DISKchannel ORA_DISK_1: autobackup found: /oracle/app/db1/dbs/0dnsd96i_1_1channel ORA_DISK_1: SPFILE restore from autobackup completeFinished restore at 10-DEC-12RMAN> restore controlfile to '/oracle/CRM2/CRM/control01.ctl' from '/oracle/app/db1/dbs/0dnsd96i_1_1';
Starting restore at 10-DEC-12allocated channel: ORA_DISK_1channel ORA_DISK_1: sid=210 devtype=DISKchannel ORA_DISK_1: restoring control filechannel ORA_DISK_1: restore complete, elapsed time: 00:00:04Finished restore at 10-DEC-12cp /oracle/CRM2/CRM/control01.ctl /oracle/CRM2/CRM/control02.ctlRMAN> alter database mount;
database mountedreleased channel: ORA_DISK_1RMAN> catalog start with '/backup/';
searching for all files that match the pattern /backup/List of Files Unknown to the DatabaseFile Name: /backup/0ensd96n_1_1File Name: /backup/0bnsd8vn_1_1File Name: /backup/0cnsd8vq_1_1Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...cataloging doneList of Cataloged Files
File Name: /backup/0ensd96n_1_1File Name: /backup/0bnsd8vn_1_1File Name: /backup/0cnsd8vq_1_1RMAN> restore database;
Starting restore at 10-DEC-12allocated channel: ORA_DISK_1channel ORA_DISK_1: sid=209 devtype=DISKchannel ORA_DISK_1: starting datafile backupset restorechannel ORA_DISK_1: specifying datafile(s) to restore from backup setrestoring datafile 00001 to /oracle/test/system1.dbfrestoring datafile 00002 to /oracle/test/zxb.dbfrestoring datafile 00003 to /oracle/test/sysaux01.dbfrestoring datafile 00004 to /oracle/test/users01.dbfrestoring datafile 00005 to /oracle/test/zxa.dbfrestoring datafile 00006 to /oracle/test/test1.dbfrestoring datafile 00007 to /oracle/test/zxc.dbfrestoring datafile 00008 to /oracle/test/undotbs1.dbfrestoring datafile 00009 to /oracle/test/zxbig.dbfchannel ORA_DISK_1: reading from backup piece /oracle/app/db1/dbs/0cnsd8vq_1_1channel ORA_DISK_1: restored backup piece 1piece handle=/oracle/app/db1/dbs/0cnsd8vq_1_1 tag=TAG20121209T040058channel ORA_DISK_1: restore complete, elapsed time: 00:02:56Finished restore at 10-DEC-12RMAN> recover database;
Starting recover at 10-DEC-12using channel ORA_DISK_1archive log thread 1 sequence 16 is already on disk as file /oracle/CRM2/CRM/redo04b.logarchive log thread 1 sequence 17 is already on disk as file /oracle/CRM2/CRM/redo05.logarchive log filename=/oracle/CRM2/CRM/redo04b.log thread=1 sequence=16archive log filename=/oracle/CRM2/CRM/redo05.log thread=1 sequence=17media recovery complete, elapsed time: 00:00:05Finished recover at 10-DEC-12RMAN> alter database open resetlogs;
Database altered.发表评论
最新留言
路过按个爪印,很不错,赞一个!
[***.219.124.196]2026年05月26日 18时35分53秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
php.ini中常见的配置信息选项
2023-02-28
php.ini配置中有10处设置不当,会使网站存在安全问题
2023-02-28
PHP7 新特性
2023-02-28
PHP7+MySQL5.7+Nginx1.9. on Ubuntu 14.0
2023-02-28
php7.1.6 + redis
2023-02-28
php7中使用php_memcache扩展
2023-02-28
PHP7中十个需要避免的坑
2023-02-28
php7和PHP5对比的新特性和性能优化
2023-02-28
PHP7安装pdo_mysql扩展
2023-02-28
PHP7实战开发简单CMS内容管理系统(7) 后台登录架构 用户登录校验
2023-02-28
php7,从phpExcel升级到PhpSpreadsheet
2023-02-28
PHP8中match新语句的操作方法
2023-02-28
PHP:第一章——PHP中常量和预定义常量
2023-02-28
PHP:第一章——PHP中的位运算
2023-02-28
phpcms
2023-02-28
phpcms 2008 product.php pagesize参数代码注射漏洞
2023-02-28
phpcms V9 自定义添加 全局变量{DIY_PATH}方法
2023-02-28
Redis五种核心数据结构的基本使用与应用场景
2023-02-28
PHPCMS多文件上传和上传数量限制
2023-02-28
phpEnv的PHP集成环境
2023-02-28