background image
<< Archive log current | Back Up the Control File >>
<< Archive log current | Back Up the Control File >>

Recover the tablespace backup

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Archive the Unarchived Redo Logs on the Primary Site
Remote Mirroring of an Oracle Database Using Data Replicator Software
C-7
STATUS=`rsh $PRI_HOST -l $PRI_DB_ID $PRI_SCRIPT_DIR/
db_archive_log_current ${ORACLE_SID} ${ORACLE_HOME}` >> ${TRACE}
if [ $STATUS != 0 ]
then
echo "ERROR!\n\tUnable to archive current logs on Primary
database" >> $LOG
exit 1
else
echo `date +%H":"%M":"%S`" SUCCESS - current logs archived
on primary database" >> $LOG
echo "OK"
fi
exit 0
Archive the Unarchived Redo Logs on the Primary
Site
#!/bin/ksh
#-----------------------------------------------------------
# Archive the unarchived redo logs so redo required to recover
the tablespace backup is archived.
#-----------------------------------------------------------
ORACLE_SID=$1
ORACLE_HOME=$2
export ORACLE_SID
export ORACLE_HOME
${ORACLE_HOME}/bin/sqlplus -s <<EOF > /dev/null 2>&1
/ as sysdba
ALTER SYSTEM ARCHIVE LOG CURRENT;
exit
EOF
echo 0
Begin the Online Backup on the Primary Site
#!/bin/ksh
#-----------------------------------------------------------
# Mark the beginning of the online backup
#-----------------------------------------------------------
ORACLE_SID=$1
ORACLE_HOME=$2
export ORACLE_SID