Skip to content

Commit 3e4781d

Browse files
authored
Update asm-move-datafile-with-rman.sh
1 parent 6095668 commit 3e4781d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

asm-move-datafile-with-rman.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ logfile=${logfileformat}.log
2727

2828
exec > $logfile 2>> $logfile
2929

30+
echo "INFO - Starting script $script for file-list $file_list_file to move to diskgroup $to_diskgroup" `date`
31+
32+
# Loop through the file list
3033
cat $file_list_file | while read datafile
3134
do
3235

36+
echo ""
37+
echo "INFO - Starting $datafile" `date`
3338
echo "INFO - Backup as copy of $datafile"
3439
rman target sys/password <<EOF > $rmantmpfile1
3540
BACKUP AS COPY DATAFILE "${datafile}" FORMAT "+${to_diskgroup}";
@@ -74,4 +79,8 @@ then
7479
exit 1
7580
fi
7681

82+
echo "INFO - Ending $datafile" `date`
83+
7784
done
85+
86+
echo "INFO - Ending script $script for file-list $file_list_file to move to diskgroup $to_diskgroup" `date`

0 commit comments

Comments
 (0)