网管联盟 | 网管论坛 | 网管u家 | 网管博客 | 网管软件 | 网管求职 | 小游戏 | 网管搜索 | 网管原创 | 网管聚合 | 网管读摘 | 网管焦点 | 世界素材 | 会员投稿 | 会员中心 
中国网管联盟
Windows Linux Cisco 网络技术 数据库 黑客攻防 DotNet Java PHP 认证 新闻资讯 服务器 存储资讯 网络设备 网管学堂 技术专题 焦点 网吧频道
 当前位置: > bitsCN.com > 数据库技术 > Oracle > 备份与恢复 > 使用RMAN进行基于表空间的恢复  

使用RMAN进行基于表空间的恢复

2007-07-02  作者:bitsCN整理  来源:中国网管联盟  点评 投稿 收藏

示范案例,仅供参考:
1.察看备份文件
$ rman target / Recovery Manager: Release 10.1.0.2.0 - 64bit Production Copyright (c) 1995, 2004, Oracle. All rights reserved. connected to target database: EYGLE (DBID=1337390772) RMAN> list backup of datafile 1; List of Backup Sets =================== BS Key Type LV Size Device Type Elapsed Time Completion Time ------- ---- -- ---------- ----------- ------------ --------------- 17 Full 131M DISK 00:01:50 29-MAR-05 BP Key: 17 Status: AVAILABLE Compressed: NO Tag: TAG20050329T065513 Piece Name: /data5/flash_recovery_area/EYGLE/backupset/ 2005_03_29/o1_mf_nnndf_TAG20050329T065513_14k2tmx7_.bkp List of Datafiles in backup set 17 File LV Type Ckp SCN Ckp Time Name ---- -- ---- ---------- --------- ---- 1 Full 10605717 29-MAR-05 /opt/oracle/oradata/eygle/system01.dbf

网管u家u.bitscn@com

2.mount数据库
RMAN> startup mount; connected to target database (not started) Oracle instance started database mounted Total System Global Area 314572800 bytes Fixed Size 1301704 bytes Variable Size 261890872 bytes Database Buffers 50331648 bytes Redo Buffers 1048576 bytes
网管u家u.bitsCN.com

3.恢复数据文件

网管网www.bitscn.com

RMAN> restore datafile 1; Starting restore at 30-MAR-05 allocated channel: ORA_DISK_1 channel ORA_DISK_1: sid=160 devtype=DISK channel ORA_DISK_1: starting datafile backupset restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set restoring datafile 00001 to /opt/oracle/oradata/eygle/system01.dbf channel ORA_DISK_1: restored backup piece 1 piece handle=/data5/flash_recovery_area/EYGLE/backupset/2005_03_29/ o1_mf_nnndf_TAG20050329T065513_14k2tmx7_.bkp tag=TAG20050329T065513 channel ORA_DISK_1: restore complete Finished restore at 30-MAR-05

网管联盟bitsCN@com

  网管u家u.bitscn@com

网管联盟bitsCN@com


TAGs   空间   恢复   基于   进行   使用   thread   log   sequence   archive      
 上一篇:从Access 2000数据库转移到Oracle 9i   下一篇:系统损坏情况下恢复 Oracle 10g 数据库
使用RMAN进行基于表空间的恢复 评论:
loading.. 评论加载中…
评论:请自觉遵守互联网相关政策法规,评论不得超过250字。

验证码: 注册用户
本类热门排行:
最新推荐文章:
网管论坛交流: