The remote facilities
Oracle on the AIX OS Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B-56
Remote Mirroring of an Oracle Database Using Data Replicator Software
fi
if [[ ! -n $ORACLE_HOME || ! -n $ORACLE_SID ]]; then
echo "Please make sure ${B0} \$ORACLE_HOME ${EB} and ${B0}
\$ORACLE_SID ${EB} are properly set. ${B1}STATUS=8${EB}\n"
exit 8
fi
echo "This script will move all the files and directories from
the"
echo "'$ORACLE_HOME/admin/$ORACLE_SID' directory"
echo "to a user specified location that must reside on a logical"
echo "drive that will be mirrored to a remote location utilizing"
echo "the LSI Logic ERM Solution. This script will also move the"
echo "spfile${ORACLE_SID}.ora and the init${ORACLE_SID}.ora
files."
echo "Once the files and directories have been moved, soft links"
echo "will be created in the original locations to point to the"
echo "new locations. Another script called
undo_move_admin_files.ksh"
echo "is provided to revert back to the original configuration
if"
echo "required.\n\n\n"
echo "Press ENTER to continue."
read BLANK
echo "Please enter the directory to move the Oracle admin
directory to."
echo "(Example: /data/oracle)"
echo "\nNOTE: This must be on a volume that will be remotely
mirrored"
echo "to the backup host."
echo "\nEnter path: \c"
read MIRROR_PATH
echo "\nAll files and directories from: ${B0}$ORACLE_HOME/admin/
$ORACLE_SID${EB}"
echo "\nWill be moved to: ${B0}$MIRROR_PATH/admin/
$ORACLE_SID${EB}"
echo "\nWith soft links created at the original locations
pointing"
echo "to the new locations."
echo "\nIs this correct? (Y or N) [ ]\b\b\c"
read ANS
if [[ $ANS != 'Y' ]]; then
echo "\nAborting script, no files or directories processed.
${B1}STATUS=5${EB}\n"
exit 5
fi