#!/bin/bash
echo "----------------------------------------`date`---------------------------------------" >>log1.txt
source ~/.bash_profile
rman target / <<EOF
crosscheck archivelog all;
delete noprompt archivelog all;
##delete noprompt archivelog until time 'sysdate-7';
EOF
echo -e "\n"
echo "------------------------------------ FINISHED ------------------------------------" >>log1.txt