problem with rman duplicate database
Oracle 11.2.0.4 SE-One, 64bit
Oracle Linux 5 and 6
I don't know if this is an rman issue, or a shell script issue . . .
Given this script (with line numbers)
1 #!/bin/sh 2 # active duplicate of fssys 3 # 4 #-- 5 #-- Set basic enviornment variables 6 #-- 7 export NLS_DATE_FORMAT='dd-Mon-yyyy hh24:mi:ss' 8 ORAENV_ASK=NO 9 echo ======================================================= 10 echo Begin job at `date` 11 echo ======================================================= 12 #-- 13 #-- Insure that the aux (destination) instance is shut down 14 #-- 15 ORACLE_SID=fssys 16 . oraenv 17 sqlplus / as sysdba <<EOF 18 shutdown immediate 19 EOF 20 # ---------------------------------------------------------------------- -- 21 echo ======================================================= 22 echo `date +%Y-%m-%d" "%H:%M:%S` - begin delete of data files. 23 echo from /oradata/$ORACLE_SID 24 echo 25 #===================================================== 26 #-- delete the
0