Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6095668 commit 3e4781dCopy full SHA for 3e4781d
asm-move-datafile-with-rman.sh
@@ -27,9 +27,14 @@ logfile=${logfileformat}.log
27
28
exec > $logfile 2>> $logfile
29
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
33
cat $file_list_file | while read datafile
34
do
35
36
+echo ""
37
+echo "INFO - Starting $datafile" `date`
38
echo "INFO - Backup as copy of $datafile"
39
rman target sys/password <<EOF > $rmantmpfile1
40
BACKUP AS COPY DATAFILE "${datafile}" FORMAT "+${to_diskgroup}";
@@ -74,4 +79,8 @@ then
74
79
exit 1
75
80
fi
76
81
82
+echo "INFO - Ending $datafile" `date`
83
77
84
done
85
86
+echo "INFO - Ending script $script for file-list $file_list_file to move to diskgroup $to_diskgroup" `date`
0 commit comments