http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/ssh-keygen -t rsatouch $HOME/.ssh/authorized_keyschmod 600 $HOME/.ssh/authorized_keyscat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keyschmod 400 $HOME/.ssh/authorized_keysoracle@localdb01 CAFOS]$ sh /home/oracle/scripts/archivemove_DB01.shsending incremental file list./1_277_916187371.dbf1_278_916187371.dbf1_279_916187371.dbf1_280_916187371.dbf1_281_916187371.dbf1_282_916187371.dbf sent 124137499 bytes received 130 bytes 3819619.35 bytes/sectotal size is 54621243392 speedup is 440.01[oracle@localdb01 CAFOS]$[oracle@localdb01 CAFOS]$ cat /home/oracle/scripts/archivemove_CAFOS.shexport ORACLE_SID=CAFOSexport ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1export PATH=$ORACLE_HOME/bin:$PATH:.rsync -avz -u --update --include '1_*dbf' /u01/app/oracle/CAFOS/archive/ 10.1.1.91:/u01/app/oracle/DR/archive [oracle@localdb01 CAFOS]$ crontab -l 15,30,45,59 * * * * /home/oracle/scripts/archivemove_CAFOS.sh > /home/oracle/scripts/archivemove_CAFOS.log
http://pandidba.blogspot.in/2015/11/archive-gap-between-primary-and-standby.html
http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
ReplyDeletessh-keygen -t rsa
touch $HOME/.ssh/authorized_keys
chmod 600 $HOME/.ssh/authorized_keys
cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
chmod 400 $HOME/.ssh/authorized_keys
oracle@localdb01 CAFOS]$ sh /home/oracle/scripts/archivemove_DB01.sh
sending incremental file list
./
1_277_916187371.dbf
1_278_916187371.dbf
1_279_916187371.dbf
1_280_916187371.dbf
1_281_916187371.dbf
1_282_916187371.dbf
sent 124137499 bytes received 130 bytes 3819619.35 bytes/sec
total size is 54621243392 speedup is 440.01
[oracle@localdb01 CAFOS]$
[oracle@localdb01 CAFOS]$ cat /home/oracle/scripts/archivemove_CAFOS.sh
export ORACLE_SID=CAFOS
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH:.
rsync -avz -u --update --include '1_*dbf' /u01/app/oracle/CAFOS/archive/ 10.1.1.91:/u01/app/oracle/DR/archive
[oracle@localdb01 CAFOS]$ crontab -l
15,30,45,59 * * * * /home/oracle/scripts/archivemove_CAFOS.sh > /home/oracle/scripts/archivemove_CAFOS.log
http://pandidba.blogspot.in/2015/11/archive-gap-between-primary-and-standby.html
ReplyDelete