Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

131

积分

1

好友

13

主题
1#
发表于 2012-5-11 14:23:09 | 查看: 4763| 回复: 2
  1. RMAN> list backup of archivelog all;
  2. List of Backup Sets
  3. ===================
  4. BS Key  Size       Device Type Elapsed Time Completion Time
  5. ------- ---------- ----------- ------------ ---------------
  6. 2334    386.11M    DISK        00:00:47     11-MAY-12      
  7.         BP Key: 2334   Status: AVAILABLE  Compressed: NO  Tag: TAG20120511T041619
  8.         Piece Name: /disk3/backups/arch_MAILDATA_20120511_95namd8r.back
  9.   List of Archived Logs in backup set 2334
  10.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  11.   ---- ------- ---------- --------- ---------- ---------
  12.   1    1369    1105579974 10-MAY-12 1105583524 10-MAY-12
  13.   1    1370    1105583524 10-MAY-12 1106127437 11-MAY-12
  14.   1    1371    1106127437 11-MAY-12 1106127462 11-MAY-12
  15. BS Key  Size       Device Type Elapsed Time Completion Time
  16. ------- ---------- ----------- ------------ ---------------
  17. 2336    556.20M    DISK        00:00:00     09-MAY-12      
  18.         BP Key: 2336   Status: AVAILABLE  Compressed: NO  Tag: TAG20120509T043723
  19.         Piece Name: /disk7/backups/arch_MAILDATA_20120509_8onah5o3.back
  20.   List of Archived Logs in backup set 2336
  21.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  22.   ---- ------- ---------- --------- ---------- ---------
  23.   1    1356    1101334855 08-MAY-12 1102171868 09-MAY-12
  24.   1    1357    1102171868 09-MAY-12 1102171881 09-MAY-12
  25. BS Key  Size       Device Type Elapsed Time Completion Time
  26. ------- ---------- ----------- ------------ ---------------
  27. 2337    629.99M    DISK        00:00:00     10-MAY-12      
  28.         BP Key: 2337   Status: AVAILABLE  Compressed: NO  Tag: TAG20120510T040239
  29.         Piece Name: /disk7/backups/arch_MAILDATA_20120510_8unajo2v.back
  30.   List of Archived Logs in backup set 2337
  31.   Thrd Seq     Low SCN    Low Time  Next SCN   Next Time
  32.   ---- ------- ---------- --------- ---------- ---------
  33.   1    1360    1103314063 09-MAY-12 1104256465 10-MAY-12
  34.   1    1361    1104256465 10-MAY-12 1104256493 10-MAY-12
  35. RMAN的备份脚本
  36. rman target / <<  END
  37. run{
  38. allocate channel ch1 type disk;
  39. allocate channel ch2 type disk;
  40. backup database format '/disk3/backups/full_%d_%T_%u.back';
  41. sql 'alter system archive log current';
  42. backup archivelog all format '/disk3/backups/arch_%d_%T_%u.back' delete all input;
  43. release channel ch1;
  44. release channel ch2;
  45. }
  46. crosscheck backup;
  47. delete noprompt obsolete;
  48. exit
  49. END

  50. cp /disk3/backups/*`date +%Y%m%d`* /disk7/backups/
  51. rm -f /disk7/backups/*_DATA_`date "+%Y%m%d" -d'-11 days'`_*.back
复制代码



现在的问题就是为什么连续3天的archivelog的备份是不连续的那?我现在想单独restore序列为1358的archivelog就不行,改如何restore出1358那?多谢啊
2#
发表于 2012-5-11 21:03:04
action plan:
执行以下命令并给出输出

list backup of archivelog sequence 1358;

list  archivelog sequence 1358;

restore archivelog sequence 1358

回复 只看该作者 道具 举报

3#
发表于 2012-5-15 15:47:48
实在抱歉,因为每天会过期导致现在查不到了,先结贴,多谢刘总的解答

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2024-11-15 15:58 , Processed in 0.060143 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569