background image
<< Verify the database is online | Backup control file >>
<< Verify the database is online | Backup control file >>

The Remote Site

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shut Down the Oracle Database on the Remote Site
Remote Mirroring of an Oracle Database Using Data Replicator Software
D-13
Shut Down the Oracle Database on the Remote
Site
#!/bin/ksh
#-----------------------------------------------------------
# shutdown Oracle database
#-----------------------------------------------------------
PRI_DB_ID=$1
ORACLE_SID=$2
ORACLE_HOME=$3
ORACLE_BASE=$4
TRACE=$5
PRI_HOST=$6
export PRI_DB_ID
export ORACLE_SID
export ORACLE_HOME
export ORACLE_BASE
export TRACE
export PRI_HOST
if [ -d ${ORACLE_BASE}/admin/${ORACLE_SID} ]
then
rm ${ORACLE_BASE}/admin/${ORACLE_SID} >> $TRACE 2>&1
fi
if [ -L ${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora ]
then
rm ${ORACLE_HOME}/dbs/init${ORACLE_SID}.ora >> $TRACE 2>&1
fi
Start the Oracle Database with Backup Control on
the Remote Site
#!/bin/ksh
#-----------------------------------------------------------
# startup oracle instance with backup controlfile
#-----------------------------------------------------------
ORACLE_SID=$1
ORACLE_HOME=$2
ORA_DUMP=$3
TRACE=$4
export ORACLE_SID
export ORACLE_HOME
export ORA_DUMP
export TRACE