Database Instance Pre Clone Script
==================================
[root@testerp ~]# su - oradev
[oradev@testerp /]$ cd /d03/oracle/DEV_NEW/db/tech_st/11.1.0/appsutil/scripts/DEV_testerp/
[oradev@testerp DEV_testerp]$ ./adpreclone.pl dbTier
Application Pre Clone Script
==================================
[root@testerp ~]# su - appldev
[appldev@testerp /]$ cd $INST_TOP
[appldev@testerp DEV_testerp]$ cd admin/scripts/
[appldev@testerp scripts]$ ./adpreclone.pl appsTier
Stop Application
[appldev@testerp /]# ./adstpall.sh apps/apps
Stop Listener
[oradev@testerp DEV_testerp]$ lsnrctl stop $ORACLE_SID
Stop Database Instance
[oradev@testerp DEV_testerp]$ sqlplus "/as sysdba"
SQL> shu immediate
SQL> exit
[root@testerp ~]# df -h (To check Used & Free Space)[appldev@testerp
[root@testerp ]# du -ch|grep total -- total size of a folder
scripts]$ echo $APPL_TOP
[root@testerp ]# du -ch|grep total -- total size of a folder
scripts]$ echo $APPL_TOP
+++++++++++++++++++++++++++++++++++++
[appldev@testerp scripts]$ cd /d03
[appldev@testerp d03]$ ls -ltr
+++++++++++++++++++++++++++++++++++++
Create Directory / Folder for Backup Files : -
[root@testerp dev_bkps]# mkdir dec06_2010/
[root@testerp dev_bkps]# chmod -& R 777 dec06_2010/
[root@testerp dec06_2010]$ ls -ltr
[root@testerp dec06_2010]$ mkdir appltest/
[root@testerp dec06_2010]$ mkdir oratest/
[root@testerp dec06_2010]$ mkdir inst/
Start Backup : -
[root@testerp]# cd /d03/dev_bkps/dec06_2010/
Application Backup
/d03/dev_bkps/dec06_2010/appltest
tar -zcvf tech_st.tar.Z /d03/oracle/DEV_NEW/apps/tech_st
tar -zcvf apps_st.tar.Z /d03/oracle/DEV_NEW/apps/apps_st
Database Instance Backup
/d03/dev_bkps/dec06_2010/oratest
tar -zcvf tech_st.tar.Z /d03/oracle/DEV_NEW/db/tech_st
tar -zcvf apps_st.tar.Z /d03/oracle/DEV_NEW/db/apps_st
Inst Backup
tar -zcvf inst.tar.Z /d03/oracle/DEV_NEW/inst
Regards,
Sukhwinder Singh
.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.