Database Backup and Recovery (MOSC)

MOSC Banner

RMAN restores - parameterisation - shell scripts

edited Jul 9, 2012 2:36AM in Database Backup and Recovery (MOSC) 1 commentAnswered
Hi All,

Thank you...

We have decided to RMAN restore or production database to one dev database and then use that to restore the other dev databases...

We are not an RMAN site and have been provided a set of RMAN scripts which work but need to run in 3 steps.

I would like to run them as a shell script, which runs after the RMAN backup files are copied across..

I list them below:

01.
connect target /
run {
allocate channel c1 device type disk;
RESTORE CONTROLFILE FROM '/u02/backup/APGATE/CNTRL_c-828018631-20120620-00';
sql "alter database mount";
SET NEWNAME FOR DATAFILE '/u02/oradata/APGATE/datafile/ts_applegate01.dbf' TO '/u02/oradata/APGATE/ts_applegate01.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