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.
thanks in advance
Instead of tracking the time, track the ARCH file Log Seq.No which should and make that script wake up and find if any new files are generated copy all of them
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.
to mbaliga, Kishore
thanks your input. could you please give me detail syntax/description how to do it? thanks
Click Here to Expand Forum to Full Width