1. HOW TO USE THIS MANUALThis user manual contains a Table of Contents.Each chapter of this table of contents contains inf...
2. PSM BACKUP PROCEDURE    1.     Cloned Backup Server – Copy of Production Server Database and ApplicationIt is recommend...
   * BPS = Backup Production ServerBACKUP PROCEDURES                      Page 3 of 26
3. ANNEXURE- A1.   DB and Application Cloning Detail Stepslogin as: oracleoracle@192.175.175.98s password:Last login: Thu ...
/u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml -stage/u01/oracle/PROD/apps/apps_st/comn/clone -tmp /tmp -me...
It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to des...
Step: 1) $ perl adcfgclone.pl dbTierBACKUP PROCEDURES                      Page 7 of 26
Step: 2) Give the parameters means target host name, system database name, directory for source homeBACKUP PROCEDURES     ...
Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using sameport values of sourceBA...
Step :4) After giving all these parameters then script is running and after completion database andlistener processes are ...
Step: 5)[oracle@backup ~]$ cd /u01/oracle/PROD/apps/apps_st/comn/clone/bin/and run the script$ perl adcfgclone.pl appsTier...
Step: 6) Give the parameters of Hostname; database SID, Server Node which is as followsBACKUP PROCEDURES                  ...
Step: 7) Give another parametersBACKUP PROCEDURES                  Page 13 of 26
Step: 8) give these last parametersAfter giving all these parameters the script is running automatically and after complet...
4. ANNEXURE- B    1.   Updating of Backup Server DailyFirst make the copy of /u01/oracle/PROD/db to another location in ba...
It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to des...
Step: 2) Give the parameters means target host name, system database name, directory for source homeBACKUP PROCEDURES     ...
Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using sameport values of sourceBA...
Step :4) After giving all these parameters then script is running and after completion database andlistener processes are ...
Step: 5) after completing the configuration of Database then started the application configuration. Takethe new terminal a...
5. ANNEXURE- C    1.   Updating of Backup Server Monthly    2.   Updating of ApplicationIf you apply any patch on producti...
[oracle@prod scripts]$ perl adpreclone.pl appsTierAfter this closing the application and database by this command or by sc...
[oracle@backup bin]$ perl adcfgclone.pl appsTierBACKUP PROCEDURES                                  Page 23 of 26
Give the parameters of Hostname; database SID, Server Node which is as followsBACKUP PROCEDURES                           ...
Give other parametersBACKUP PROCEDURES       Page 25 of 26
Give these last parametersAfter giving all these parameters the script is running automatically and after completion of ap...
Upcoming SlideShare
Loading in …5
×

6048618 cloning-procedure-of-r12-single-tier

1,672 views

Published on

Published in: Technology, News & Politics
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,672
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

6048618 cloning-procedure-of-r12-single-tier

  1. 1. 1. HOW TO USE THIS MANUALThis user manual contains a Table of Contents.Each chapter of this table of contents contains information and as well as step-by-step instructions onhow to perform tasks.BACKUP PROCEDURES Page 1 of 26
  2. 2. 2. PSM BACKUP PROCEDURE 1. Cloned Backup Server – Copy of Production Server Database and ApplicationIt is recommended that a Production Server must be cloned on Backup machine that in case of disaster,the backup server can be used as a production server until the unavailability of actual production server. 2. Cloning ProcedureProduction Server cloning steps are: Production Server(PS) Database and Application Shutdown (see Annexure-A) (DB and Application Cloning Detail Steps) Apply pre-requisite patches and scripts on source machine (Production Server) recommended by Annexure-A (DB and Application Cloning Detail Steps) Copy folders in a sequence recommended by Annexure-A to target machine i.e. Backup Server (BPS) Apply Cloning scripts as mentioned in Annexure-A(DB and Application Cloning Detail Steps) Apply post cloning steps mentioned in Annexure-A (DB and Application Cloning Detail Steps)Further, the following are the routine backup procedures:It is recommended and suggested by Sidat Hyder Morshed Associates that the following backup planshould be implemented to backing up the production server and to avoid data loss. 3. Daily Full Backup Procedure Daily Full Cold Backup should be taken on the backup machine (BPS) using local intranet or Media (CD, DVD, TAPE) or any of the networks drive/part mounted on backup machine (BPS) Backup should be Restore on daily basis on Backup Machine (BPS) After Restoring Backup, the Application and Database of backup server must be tested See Annexure-B( Updating of Backup Server Daily ) 4. Monthly Full Backup Procedure Monthly Full Cold Backup should be taken on the backup machine (BPS) using local intranet or Media (CD,DVD,TAPE) or any of the networks drive/part mounted on backup machine Monthly Backup should be Restore on monthly basis on Backup Machine (BPS). When any changes in apps means apply any patches After Restoring Backup, the Application and Database of backup server must be tested See Annexure-C ( Updating of Backup Server Monthly ) 5. Retention Policy for Database Last day of the Week Backup (Friday) and retain four weak backup or as per PSM policy. Last Friday of the Month for Monthly Backup and retain 12 month or as per PSM policy. Yearly backup on June 30th and retain it for three years or as per PSM policy. * PS = Production ServerBACKUP PROCEDURES Page 2 of 26
  3. 3.  * BPS = Backup Production ServerBACKUP PROCEDURES Page 3 of 26
  4. 4. 3. ANNEXURE- A1. DB and Application Cloning Detail Stepslogin as: oracleoracle@192.175.175.98s password:Last login: Thu Jul 3 12:53:19 2008-bash: [$USER=oracle]: command not foundNavigate to this path[oracle@prod ~]$ cd /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/scripts/PROD_prod[oracle@prod PROD_prod]$ lsadautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sqladchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql[oracle@prod PROD_prod]$ perl adpreclone.pl dbTierEnter the APPS user password: [oracle@prod PROD_prod]$ pwd/u01/oracle/PROD/db/tech_st/10.2.0/appsutil/scripts/PROD_prod[oracle@prod PROD_prod]$After completion navigate to this path[oracle@prod scripts]$ cd /u01/oracle/PROD/inst/apps/PROD_prod/admin/scriptsAnd run this script[oracle@prod scripts]$ perl adpreclone.pl appsTierRunning Rapid Clone with command...Thu Jul 3 21:52:42 2008perl /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/adclone.pljava=/u01/oracle/PROD/apps/tech_st/10.1.3/appsutil/jdk mode=stagestage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOMappctx=/u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml showProgressAPPS Password :Beginning application tier Stage - Thu Jul 3 21:52:42 2008/u01/oracle/PROD/apps/tech_st/10.1.3/appsutil/jdk/bin/java -Xmx600M -DCONTEXT_VALIDATED=false-Doracle.installer.oui_loc=/oui -classpath/u01/oracle/PROD/apps/tech_st/10.1.3/lib/xmlparserv2.jar:/u01/oracle/PROD/apps/tech_st/10.1.3/jdbc/lib/ojdbc14.jar:/u01/oracle/PROD/apps/apps_st/comn/java/classes:/u01/oracle/PROD/apps/tech_st/10.1.3/oui/jlib/OraInstaller.jar:/u01/oracle/PROD/apps/tech_st/10.1.3/oui/jlib/ewt3.jar:/u01/oracle/PROD/apps/tech_st/10.1.3/oui/jlib/share.jar:/u01/oracle/PROD/apps/tech_st/10.1.3/oui/jlib/srvm.jar:/u01/oracle/PROD/apps/tech_st/10.1.3/jlib/ojmisc.jar oracle.apps.ad.clone.StageAppsTier -eBACKUP PROCEDURES Page 4 of 26
  5. 5. /u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml -stage/u01/oracle/PROD/apps/apps_st/comn/clone -tmp /tmp -method CUSTOM -showProgressLog file located at /u01/oracle/PROD/inst/apps/PROD_prod/admin/log/StageAppsTier_07032152.log / 0% completedCompleted Stage...Thu Jul 3 21:53:02 2008Completed perl /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/adclone.pljava=/u01/oracle/PROD/apps/tech_st/10.1.3/appsutil/jdk mode=stagestage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOMappctx=/u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml showProgress ...Thu Jul 3 21:53:02 2008After this closing the application and database by this command or by script ($. ./appstop.sh ,. ./lsnrstop.sh and . ./dbstop.sh)[oracle@prod scripts]$ ./adstpall.sh apps/appsThen go to another BPS machine and first make folder and name them by these convention$ cd /u01$ mkdir oracle$ cd /oracle$ mkdir PROD$ cd /PROD$ mkdir apps$ cd /apps$ mkdir /apps_stAfter making directories then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/apps_st/appl/ /u01/oracle/PROD/apps/apps_st/It asks for password give the password of Production Server which is “production” Every time when youcopy it ask for password so give this password and it starts the copy from source to destination. Aftercompleting copy, run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/apps_st/comn/ /u01/oracle/PROD/apps/apps_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then make directory by this command$ mkdir tech_st (in the apps directory)Then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/tech_st/10.1.2/ /u01/oracle/PROD/apps/tech_st/BACKUP PROCEDURES Page 5 of 26
  6. 6. It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/tech_st/10.1.3/ /u01/oracle/PROD/apps/tech_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing this go to PROD directory and make directory “db”$ mkdir db$ mkdir apps_stAfter making apps_st directory then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/apps_st/data/ /u01/oracle/PROD/db/apps_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then make directory by this command$ mkdir tech_st (in the db directory)Then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/tech_st/10.2.0/ /u01/oracle/PROD/db/tech_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/inst/ /u01/oracle/PROD/apps/apps_st/appl/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination .When it is completed then copy of production is completed and started firstdatabase and then application by running the scripts.After Copying all these items to BPS machine then start the configuration of cloning. Which is as under?Navigate to this path[oracle@backup ~]$ cd /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/clone/binAnd run this script by this commandBACKUP PROCEDURES Page 6 of 26
  7. 7. Step: 1) $ perl adcfgclone.pl dbTierBACKUP PROCEDURES Page 7 of 26
  8. 8. Step: 2) Give the parameters means target host name, system database name, directory for source homeBACKUP PROCEDURES Page 8 of 26
  9. 9. Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using sameport values of sourceBACKUP PROCEDURES Page 9 of 26
  10. 10. Step :4) After giving all these parameters then script is running and after completion database andlistener processes are automatically startedAfter Completing the configuration of Database then started the application configuration. Take the newterminal and navigate to this path by this commandBACKUP PROCEDURES Page 10 of 26
  11. 11. Step: 5)[oracle@backup ~]$ cd /u01/oracle/PROD/apps/apps_st/comn/clone/bin/and run the script$ perl adcfgclone.pl appsTierBACKUP PROCEDURES Page 11 of 26
  12. 12. Step: 6) Give the parameters of Hostname; database SID, Server Node which is as followsBACKUP PROCEDURES Page 12 of 26
  13. 13. Step: 7) Give another parametersBACKUP PROCEDURES Page 13 of 26
  14. 14. Step: 8) give these last parametersAfter giving all these parameters the script is running automatically and after completion of applicationconfiguration the application is started automatically. Here cloning is completed and cloned backupserver is providing for further procedure.BACKUP PROCEDURES Page 14 of 26
  15. 15. 4. ANNEXURE- B 1. Updating of Backup Server DailyFirst make the copy of /u01/oracle/PROD/db to another location in backup (BPS) server. By this procedureOpen Computer from desktop and open filesystemu01oraclePRODdb right click the db and click“copy file” and paste into u02.When it is completed then remove the same name folders from backupserver by this procedureOpen Computer from desktop and open filesystemu01oraclePRODdbapps_st and remove“data” folder after thisOpen Computer from desktop and open filesystemu01oraclePRODdbtech_st and remove the“10.2.0” folder. 2. Updating of DatabaseGo to production server. Login in production server as oracle userlogin as: oracleoracle@192.175.175.98s password:Last login: Thu Jul 3 12:53:19 2008-bash: [$USER=oracle]: command not found[oracle@prod ~]$ cd $ORACLE_HOME[oracle@prod 10.2.0]$ cd appsutil[oracle@prod appsutil]$ cd scripts/[oracle@prod scripts]$ lsPROD_prod[oracle@prod scripts]$ cd PROD_prod/[oracle@prod PROD_prod]$ lsadautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sqladchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql[oracle@prod PROD_prod]$ perl adpreclone.pl dbTierEnter the APPS user password:After this closing the application and database by this command or by script ($. ./appstop.sh ,. ./lsnrstop.sh and . ./dbstop.sh)When it is completed, go to backup (BPS) server and run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/apps_st/data/ /u01/oracle/PROD/db/apps_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. When it is completed then run$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/tech_st/10.2.0/ /u01/oracle/PROD/db/tech_st/BACKUP PROCEDURES Page 15 of 26
  16. 16. It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. Make sure that in copy no files are missing even a single file. When copy iscompleted then navigate to this path$ cd /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/clone/bin andStep: 1) run the script by this command ($ perl adcfgclone.pl dbTier)BACKUP PROCEDURES Page 16 of 26
  17. 17. Step: 2) Give the parameters means target host name, system database name, directory for source homeBACKUP PROCEDURES Page 17 of 26
  18. 18. Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using sameport values of sourceBACKUP PROCEDURES Page 18 of 26
  19. 19. Step :4) After giving all these parameters then script is running and after completion database andlistener processes are automatically startedBACKUP PROCEDURES Page 19 of 26
  20. 20. Step: 5) after completing the configuration of Database then started the application configuration. Takethe new terminal and navigate to$ cd /u01/oracle/PROD/apps/apps_st/comn/clone/bin/and run the script$ perl adcfgclone.pl appsTier/u01/oracle/PROD/apps/apps_st/appl/inst/apps/PROD_backup/appl/admin/PROD_backup.xmlAfter completing, the application start automatically and you test both application and database. Hereupdating of database is completed.BACKUP PROCEDURES Page 20 of 26
  21. 21. 5. ANNEXURE- C 1. Updating of Backup Server Monthly 2. Updating of ApplicationIf you apply any patch on production server or on month end then you also updates the application inbackup server by following procedureFirst make copy of “apps and db” in backup server to another location in backup server. By thisprocedureOpen Computer from desktop and open filesystemu01oraclePRODdb right click the db and click“copy file” and paste into u02.When it is completed then make sure the same name folders are notpresent in backup server means “data” folder in “apps_st” directory and “10.2.0” folder in “tech_st”directory should remove. After this thenOpen computer form desktop and open filesystemu01oraclePRODapps right click the apps andclick “copy file” and paste into u02.When it is completed then make sure the same name folders are not present in backup server means go tothis pathOpen computer form desktop and open filesystemu01oraclePRODapps/apps_st/In this “appl , comn” folder should remove, after thisOpen computer form desktop and open filesystemu01oraclePRODapps/tech_st/And in this “10.1.2, 10.1.3” should remove. After CompletionGo to Production Server and navigate to[oracle@prod ~]$ cd $ORACLE_HOME[oracle@prod 10.2.0]$ cd appsutil[oracle@prod appsutil]$ cd scripts/[oracle@prod scripts]$ lsPROD_prod[oracle@prod scripts]$ cd PROD_prod/[oracle@prod PROD_prod]$ lsadautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sqladchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql[oracle@prod PROD_prod]$ perl adpreclone.pl dbTierEnter the APPS user password:When it is completed then navigates to this path[oracle@prod scripts]$ cd /u01/oracle/PROD/inst/apps/PROD_prod/admin/scriptsAnd run this scriptBACKUP PROCEDURES Page 21 of 26
  22. 22. [oracle@prod scripts]$ perl adpreclone.pl appsTierAfter this closing the application and database by this command or by script ($. ./appstop.sh ,. ./lsnrstop.sh and . ./dbstop.sh) Then go to backup server and run this command. Make sure that in copy nofiles are missing even a single file$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/apps_st/data/ /u01/oracle/PROD/db/apps_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. When it is completed then run$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/db/tech_st/10.2.0/ /u01/oracle/PROD/db/tech_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completion then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/apps_st/appl/ /u01/oracle/PROD/apps/apps_st/Then it asks for password give the password of Production Server which is “production” and it starts thecopy from source to destination. After completing copy then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/apps_st/comn/ /u01/oracle/PROD/apps/apps_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/tech_st/10.1.2/ /u01/oracle/PROD/apps/tech_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completing copy then run this command$ scp –r oracle@192.175.175.98:/u01/oracle/PROD/apps/tech_st/10.1.3/ /u01/oracle/PROD/apps/tech_st/It asks for password give the password of Production Server which is “production” and it starts the copyfrom source to destination. After completion then update the database by the procedure of “ANNEXURE-B” from Step: 1 to Step: 4.After Completing the configuration of Database then started the application configuration.Take the new terminal and navigate to this path[oracle@backup ~]$ cd /u01/oracle/PROD/apps/apps_st/comn/clone/bin/And run this scriptBACKUP PROCEDURES Page 22 of 26
  23. 23. [oracle@backup bin]$ perl adcfgclone.pl appsTierBACKUP PROCEDURES Page 23 of 26
  24. 24. Give the parameters of Hostname; database SID, Server Node which is as followsBACKUP PROCEDURES Page 24 of 26
  25. 25. Give other parametersBACKUP PROCEDURES Page 25 of 26
  26. 26. Give these last parametersAfter giving all these parameters the script is running automatically and after completion of applicationconfiguration the application is started automaticallyBACKUP PROCEDURES Page 26 of 26

×