- 最后登录
- 2016-10-15
- 在线时间
- 13 小时
- 威望
- 0
- 金钱
- 81
- 注册时间
- 2013-6-24
- 阅读权限
- 10
- 帖子
- 23
- 精华
- 0
- 积分
- 0
- UID
- 1139
|
6#
发表于 2013-11-12 00:05:14
Maclean Liu(刘相兵 发表于 2013-11-11 23:58
去掉双引号试试 "cf_c-2883472017-20131111-05", 或者这个并非有效的 控制文件备份 ...
试过,去掉后的报错,
oracle@nms[/rman/shell]$./ctl.sh
Recovery Manager: Release 10.2.0.5.0 - Production on Mon Nov 11 17:00:06 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN>
RMAN> #! /bin/sh
2> connect target *
connected to target database: nmdb (not mounted)
RMAN> run{
2> restore controlfile from '/rman/&1';
3> }
Starting restore at 11-NOV-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1094 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/11/2013 17:00:07
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
RMAN> **end-of-file**
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter, backup, beginline, blockrecover, catalog, change, connect, copy, convert, create, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flashback, host, {, library, list, mount, open, print, quit, recover, register, release, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, set, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport, upgrade, unregister, validate"
RMAN-01008: the bad identifier was: cf_c
RMAN-01007: at line 0 column 2 file: standard input
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01006: error signalled during parse
RMAN-02001: unrecognized punctuation symbol "-"
RMAN>
Recovery Manager complete.
oracle@nms[/rman/shell]$
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
控制文件备份是有效的
oracle@nms[/rman/shell]$rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Mon Nov 11 17:02:45 2013
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: nmdb (not mounted)
RMAN> restore controlfile from '/rman/cf_c-2883472017-20131111-05';
Starting restore at 11-NOV-13
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=1094 devtype=DISK
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
output filename=/oracle/oradata/nmdb/ctl/control01.ctl
output filename=/oracle/oradata/nmdb/ctl/control02.ctl
output filename=/oracle/oradata/nmdb/ctl/control03.ctl
Finished restore at 11-NOV-13
|
|