#!/bin/ksh
# --------------------------------------------------------------------------
# archive.ksh:
# Sample BRARCHIVE shell script
# --------------------------------------------------------------------------
# Task:
# Invokes the SAP utility brarchive in order to save ORACLE's archived
# redo logs (using Data Protection for SAP (R) ) and deletes the redo
# logs from their original location. After completing this, the brarchive
# protocol is saved separately.
# --------------------------------------------------------------------------
# ***** NOTE ***** NOTE ***** NOTE *****
#
# This script is intended only as a model and should be
# carefully tailored to the needs of the specific site.
#
# ***** NOTE ***** NOTE ***** NOTE *****
# --------------------------------------------------------------------------
#
# Remarks on the parameters:
#
# -u system/manager Oracle username/password
# -sd save and delete archived redo logs
# -c run BRARCHIVE in unattended mode
# (-n number of redo logs to be saved, default is 10000,
# which means all available)
#
# The following should be configured within the SAP profile initC11.sap:
#
# backup_dev_type = util_file
# causes brbackup to use the external program backint
# util_par_file = initC11.utl
# Data Protection for SAP profile
#
# --------------------------------COMMAND-----------------------------------
brarchive -u system/manager -c -sd