Does anyone has a script to copy the archive log from primary site to standby site? could you send me?
or help me to fix my script:
if [ ! -a $AL1/$csid/.rcp.tim ] ; then
for F in `find $AL1/$csid -type f -newer $AL1/$csid/.rcp.tim -name 'arch*'|sort`
rcp $F $remote:$AL1/$csid/
cp -p $F $AL1/$csid/.rcp.tim
--- I use the dummy file, .rcp.tim as a milestone to tracking the latest "time" which file been copies. the problem is it doesnot work correctly when 2 log files created at the same mininute- it only copy one.
Another way to to do this is to send the output of standby roll to a file. When the roll stops due to non-availability of file the information is logged in the output file. From this output file you can get the next log file name to be copied.