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 4c81ff7 commit 6095668Copy full SHA for 6095668
asm-copy-file-with-rman.sh renamed to asm-move-datafile-with-rman.sh
@@ -1,4 +1,10 @@
1
#!/bin/ksh
2
+#
3
+# asm-move-datafile-with-rman.sh
4
5
+# Copy datafiles to another diskgroup
6
7
8
9
if [ $# -lt 2 ]
10
then
@@ -13,10 +19,13 @@ to_diskgroup=$2
13
19
logfileformat=${script}.${file_list_file}.${to_diskgroup}
14
20
rmantmpfile1=${logfileformat}.rman.tmp1
15
21
rmantmpfile2=${logfileformat}.rman.tmp2
22
+rmantmpfile3=${logfileformat}.rman.tmp3
23
+logfile=${logfileformat}.log
16
24
17
25
# need to get the new file name from the string
18
26
# output file name=+NEW_DG/<db_unique_name>/datafile/my_ts.1097.923044943 tag=TAG20160920T092223 RECID=5 STAMP=923044953
27
28
+exec > $logfile 2>> $logfile
29
30
cat $file_list_file | while read datafile
31
do
0 commit comments