生产环境恢复脚本

[oraprod@db01 archivelog ]$ rman target / nocatalog

Recovery Manager: Release 11.1.0.7.0 - Production on Sat Nov 3 16:35:49 2012

Copyright (c) 1982, 2007, Oracle. All rights reserved.

connected to target database: PROD (DBID=109431336)
using target database control file instead of recovery catalog

RMAN> @res_arc.rcvyzz1103

RMAN> run
2> {
3> allocate channel c1 type 'sbt_tape' parms 'ENV=(tdpo_optfile=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
4> restore archivelog from logseq 5019 until logseq 5023 thread 1;
5> release channel c1;
6> }
allocated channel: c1
channel c1: SID=2670 instance=PROD1 device type=SBT_TAPE
channel c1: Data Protection for Oracle: version 5.4.1.0

Starting restore at 03-NOV-12

channel c1: starting archived log restore to default destination
channel c1: restoring archived log
archived log thread=1 sequence=5019
channel c1: restoring archived log
archived log thread=1 sequence=5020
channel c1: restoring archived log
archived log thread=1 sequence=5021
channel c1: restoring archived log
archived log thread=1 sequence=5022
channel c1: reading from backup piece /arch_23996_1/
channel c1: piece handle=/arch_23996_1/ tag=TAG20121103T032506
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:01:05
channel c1: starting archived log restore to default destination
channel c1: restoring archived log
archived log thread=1 sequence=5023
channel c1: reading from backup piece /arch_23999_1/
channel c1: piece handle=/arch_23999_1/ tag=TAG20121103T032506
channel c1: restored backup piece 1
channel c1: restore complete, elapsed time: 00:00:07
Finished restore at 03-NOV-12

released channel: c1

RMAN> **end-of-file**

RMAN>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值