Skip to content

Commit 6095668

Browse files
authored
Update and rename asm-copy-file-with-rman.sh to asm-move-datafile-with-rman.sh
1 parent 4c81ff7 commit 6095668

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

asm-copy-file-with-rman.sh renamed to asm-move-datafile-with-rman.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/ksh
2+
#
3+
# asm-move-datafile-with-rman.sh
4+
#
5+
# Copy datafiles to another diskgroup
6+
#
7+
#
28

39
if [ $# -lt 2 ]
410
then
@@ -13,10 +19,13 @@ to_diskgroup=$2
1319
logfileformat=${script}.${file_list_file}.${to_diskgroup}
1420
rmantmpfile1=${logfileformat}.rman.tmp1
1521
rmantmpfile2=${logfileformat}.rman.tmp2
22+
rmantmpfile3=${logfileformat}.rman.tmp3
23+
logfile=${logfileformat}.log
1624

1725
# need to get the new file name from the string
1826
# output file name=+NEW_DG/<db_unique_name>/datafile/my_ts.1097.923044943 tag=TAG20160920T092223 RECID=5 STAMP=923044953
1927

28+
exec > $logfile 2>> $logfile
2029

2130
cat $file_list_file | while read datafile
2231
do

0 commit comments

Comments
 (0)