Database Backup and Recovery (MOSC)

MOSC Banner

RMAN Cmd file script error

edited Dec 18, 2012 5:33PM in Database Backup and Recovery (MOSC) 1 commentAnswered
 Dear All,
I am trying to create rman cmd file script to clone a database. When i execute the commands through rman command scripts, its working fine, but when executing through a cmd file, its showing the following error.

Recovery Manager: Release 11.2.0.2.0 - Production on Fri Dec 14 12:59:27 2012

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

RMAN> connect target *
2> run 
3> {
4> restore controlfile from '/testdb/backup/CISPROD/141212/cf_c-2003381688-20121214-00';
5> allocate channel c1 type disk;
6> allocate channel c2 type disk;
7> allocate channel c3 type disk;
8> allocate channel c4 type disk;
9> set newname for datafile 1 to '/testdb/app/oradata/cistest/system01.dbf';

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center