RSYNC Commads
Note: Configure the password less SSH connectivity between the source and target servers
rsync -av /erp_appl/oracle/app/apps/apps_st/appl applmgr@standbyhost:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/apps/apps_st/comn
applmgr@standbyhost:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/log applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/out applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/log applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/out applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
Example shell scripts for RSYNC Job script
-bash-4.4$ cat /export/home/applprd/dba/bin/standby_appstier_rsyncjob.ksh
echo "#############################################################"
# "Created by Nizamudheen Attiri for Oracle EBS Apps Stanby Tier sync"
echo " "
date
echo "Apps Standby Tier Sync Job Started"
echo "Apps Tier Sync Job Started for APPL_TOP"
rsync -av /erp_appl/oracle/app/apps/apps_st/appl applprd@standbyhostapp1:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for APPL_TOP"
else
echo "Error while running rsync for APPL_TOP"
fi
echo "Apps Tier Sync Job Started for COMMON_TOP"
rsync -av /erp_appl/oracle/app/apps/apps_st/comn applprd@standbyhostapp1:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for COMMON_TOP"
else
echo "Error while running rsync for COMMON_TOP"
fi
echo "Apps Tier Sync Started for Concurrent Request logs in production node1"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/log applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request logs in production node1"
else
echo "Error while running rsync for Concurrent Request logs in production node1"
fi
echo "Apps Tier Sync Started for Concurrent Request outs in production node1"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/out applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request outs in production node1"
else
echo "Error while running rsync for Concurrent Request outs in production node1"
fi
echo "Apps Tier Sync Started for Concurrent Request logs in production node2"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/log applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request logs in production node2"
else
echo "Error while running rsync for Concurrent Request logs in production node2"
fi
echo "Apps Tier Sync Started for Concurrent Request outs in production node2"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode2/logs/appl/conc/out applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request outs in production node2"
else
echo "Error while running rsync for Concurrent Request outs in production node2"
fi
echo "Oracle EBS Apps Standby Tier Sync Job Completed"
-bash-4.4$
Note: Configure the password less SSH connectivity between the source and target servers
rsync -av /erp_appl/oracle/app/apps/apps_st/appl applmgr@standbyhost:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/apps/apps_st/comn
applmgr@standbyhost:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/log applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/out applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/log applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
rsync -av /erp_appl/oracle/app/inst/apps/logs/appl/conc/out applmgr@standbyhost:/erp_appl/oracle/app/inst/apps/logs/appl/conc --rsync-path=/usr/bin/rsync
Example shell scripts for RSYNC Job script
-bash-4.4$ cat /export/home/applprd/dba/bin/standby_appstier_rsyncjob.ksh
echo "#############################################################"
# "Created by Nizamudheen Attiri for Oracle EBS Apps Stanby Tier sync"
echo " "
date
echo "Apps Standby Tier Sync Job Started"
echo "Apps Tier Sync Job Started for APPL_TOP"
rsync -av /erp_appl/oracle/app/apps/apps_st/appl applprd@standbyhostapp1:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for APPL_TOP"
else
echo "Error while running rsync for APPL_TOP"
fi
echo "Apps Tier Sync Job Started for COMMON_TOP"
rsync -av /erp_appl/oracle/app/apps/apps_st/comn applprd@standbyhostapp1:/erp_appl/oracle/app/apps/apps_st --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for COMMON_TOP"
else
echo "Error while running rsync for COMMON_TOP"
fi
echo "Apps Tier Sync Started for Concurrent Request logs in production node1"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/log applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request logs in production node1"
else
echo "Error while running rsync for Concurrent Request logs in production node1"
fi
echo "Apps Tier Sync Started for Concurrent Request outs in production node1"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/out applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request outs in production node1"
else
echo "Error while running rsync for Concurrent Request outs in production node1"
fi
echo "Apps Tier Sync Started for Concurrent Request logs in production node2"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode1/logs/appl/conc/log applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request logs in production node2"
else
echo "Error while running rsync for Concurrent Request logs in production node2"
fi
echo "Apps Tier Sync Started for Concurrent Request outs in production node2"
rsync -av /erp_appl/oracle/app/inst/apps/ERPDBA_prodnode2/logs/appl/conc/out applprd@standbyhostapp1:/erp_appl/oracle/app/inst/apps/ERPDBA1_standbyhostapp1/logs/appl/conc --rsync-path=/usr/bin/rsync
if [ "$?" -eq "0" ]
then
echo "Apps Tier Sync Job Completed for Concurrent Request outs in production node2"
else
echo "Error while running rsync for Concurrent Request outs in production node2"
fi
echo "Oracle EBS Apps Standby Tier Sync Job Completed"
-bash-4.4$
Tags:
UNIX