Skip to content

RMAN RESTORATION

export ORACLE_HOME={ORACLE_HOME}
export ORACLE_SID={ORACLE_SID}
$ORACLE_HOME/bin/rman catalog=[username]/[PASSWORD]@[RMANCAT_TNS_NAME]  << EOF
connect target /
run
{
allocate channel c1 device type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo.opt)';
restore controlfile from autobackup;
alter database mount;
restore database;
release channel c1;
}
EOF