Cloning Procedure of Single Tier

download Cloning Procedure of Single Tier

of 26

Transcript of Cloning Procedure of Single Tier

  • 8/13/2019 Cloning Procedure of Single Tier

    1/26

    1.1. HOW TO USE THIS MANUALHOW TO USE THIS MANUAL

    This user manual contains a Table of Contents.

    Each chapter of this table of contents contains information and as well as step-by-step instructions on

    how to perform tasks.

    BACKUP PROCEDURES Page 1 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    2/26

    2.2. PSM BACKUP PROCEDUREPSM BACKUP PROCEDURE

    1. Cloned Backu Se!"e! # Co$ o% P!oduc&'on Se!"e! Da&a(a)e and Al'ca&'on

    It 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. Clon'n* P!ocedu!e

    Production Server clonin! steps are"

    Production Server#PS$ %atabase and &pplication Shutdown #see &nne'ure-&$ #%B and &pplication

    Clonin! %etail Steps$

    &pply pre-re(uisite patches and scripts on source machine #Production Server$ recommended by

    &nne'ure-& #%B and &pplication Clonin! %etail Steps$ Copy folders in a se(uence recommended by &nne'ure-& to tar!et machine i.e. Backup Server #BPS$

    &pply Clonin! scripts as mentioned in &nne'ure-%B and &pplication Clonin! %etail Steps$

    &pply post clonin! steps mentioned in &nne'ure-& #%B and &pplication Clonin! %etail Steps$

    )urther the followin! are the routine backup procedures"

    It is recommended and su!!ested by Sidat *yder +orshed &ssociates that the followin! backup plan

    should be implemented to backin! up the production server and to avoid data loss.

    +. Da'l$ ,ull Backu P!ocedu!e

    %aily )ull Cold Backup should be taken on the backup machine #BPS$ usin! local intranet or +edia

    #C% %,% T&PE$ or any of the networks drivepart mounted on backup machine #BPS$

    Backup should be estore on daily basis on Backup +achine #BPS$

    &fter estorin! Backup the &pplication and %atabase of backup server must be tested

    See &nne'ure-B# /pdatin! of Backup Server %aily $

    -. Mon&l$ ,ull Backu P!ocedu!e

    +onthly )ull Cold Backup should be taken on the backup machine #BPS$ usin! local intranet or

    +edia #C%%,%T&PE$ or any of the networks drivepart mounted on backup machine +onthly Backup should be estore on monthly basis on Backup +achine #BPS$. 0hen any chan!es

    in apps means apply any patches

    &fter estorin! Backup the &pplication and %atabase of backup server must be tested

    See &nne'ure-C # /pdatin! of Backup Server +onthly $

    /. Re&en&'on Pol'c$ %o! Da&a(a)e

    1ast day of the 0eek Backup #)riday$ and retain four weak backup or as per PS+ policy.

    1ast )riday of the +onth for +onthly Backup and retain 23 month or as per PS+ policy.

    4early backup on 5une 67th

    and retain it for three years or as per PS+ policy. 8 PS 9 Production Server

    BACKUP PROCEDURES Page 2 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    3/26

    8 BPS 9 Backup Production Server

    BACKUP PROCEDURES Page 3 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    4/26

    +.+. ANNE0URE AANNE0URE A

    1. DB and Al'ca&'on Clon'n* De&a'l S&e)

    lo!in as" oracle

    oracle:2;3.2

    -bash" @A/SE9oracle" command not found

    avi!ate to this path

    @oracle:prod DA cd u72oracleP%dbtechFst27.3.7appsutilscriptsP%Fprod

    @oracle:prod P%FprodA ls

    adautocf!.sh addbctl.sh ade'ecs(l.pl adpreclone.pl adstrtdb.s(l

    adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.s(l

    @oracle:prod P%FprodA perl adpreclone.pl dbTier

    Enter the &PPS user password"

    @oracle:prod P%FprodA pwd

    u72oracleP%dbtechFst27.3.7appsutilscriptsP%Fprod

    @oracle:prod P%FprodA

    &fter completion navi!ate to this path

    @oracle:prod scriptsA cd u72oracleP%instappsP%Fprodadminscripts

    &nd run this script

    @oracle:prod scriptsA perl adpreclone.pl appsTier

    unnin! apid Clone with command...

    Thu 5ul 6 32"=3"G3 377>

    perl u72oracleP%appsappsFstapplad23.7.7binadclone.pl

    Hava9u72oracleP%appstechFst27.2.6appsutilHdk mode9sta!e

    sta!e9u72oracleP%appsappsFstcomnclone component9appsTier method9C/ST+appct'9u72oracleP%instappsP%FprodappladminP%Fprod.'ml showPro!ress

    &PPS Password "

    Be!innin! application tier Sta!e - Thu 5ul 6 32"=3"G3 377>

    u72oracleP%appstechFst27.2.6appsutilHdkbinHava -m'J77+ -%CTETF,&1I%&TE%9false

    -%oracle.installer.ouiFloc9oui -classpath

    u72oracleP%appstechFst27.2.6lib'mlparserv3.Har"u72oracleP%appstechFst27.2.6Hdbclib

    oHdbc2G.Har"u72oracleP%appsappsFstcomnHavaclasses"u72oracleP%appstechFst27.2.6ouiH

    libraInstaller.Har"u72oracleP%appstechFst27.2.6ouiHlibewt6.Har"u72oracleP%appstechFst

    27.2.6ouiHlibshare.Har"u72oracleP%appstechFst27.2.6ouiHlibsrvm.Har"u72oracleP%appstechFst27.2.6HliboHmisc.Har oracle.apps.ad.clone.Sta!e&ppsTier -e

    BACKUP PROCEDURES Page 4 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    5/26

    u72oracleP%instappsP%FprodappladminP%Fprod.'ml -sta!e

    u72oracleP%appsappsFstcomnclone -tmp tmp -method C/ST+ -showPro!ress

    1o! file located at u72oracleP%instappsP%Fprodadminlo!Sta!e&ppsTierF7

    Completed perl u72oracleP%appsappsFstapplad23.7.7binadclone.pl

    Hava9u72oracleP%appstechFst27.2.6appsutilHdk mode9sta!e

    sta!e9u72oracleP%appsappsFstcomnclone component9appsTier method9C/ST+

    appct'9u72oracleP%instappsP%FprodappladminP%Fprod.'ml showPro!ress ...

    Thu 5ul 6 32"=6"73 377>

    &fter this closin! the application and database by this command or by script #A. .appstop.sh . .

    lsnrstop.sh and . .dbstop.sh$

    @oracle:prod scriptsA .adstpall.sh appsapps

    Then !o to another BPS machine and first make folder and name them by these convention

    A cd u72

    A mkdir oracle

    A cd oracle

    A mkdir P%

    A cd P%

    A mkdir apps

    A cd appsA mkdir appsFst

    &fter makin! directories then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8a):)&8al8 8u918o!acle8PROD8a)8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM Every time when you

    copy it ask for password so !ive this password and it starts the copy from source to destination. &fter

    completin! copy run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8a):)&8co;n88u918o!acle8PROD8a)8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completin! copy then make directory by this command

    ;kd'! &ec:)&

  • 8/13/2019 Cloning Procedure of Single Tier

    6/26

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completin! copy then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8&ec:)&819.1.+8 8u918o!acle8PROD8a)8&ec:)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completin! this !o to P% directory and make directory LdbM

    ;kd'! d(

    ;kd'! a):)&

    &fter makin! appsFst directory then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a):)&8da&a88u918o!acle8PROD8d(8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completin! copy then make directory by this command

    ;kd'! &ec:)&

  • 8/13/2019 Cloning Procedure of Single Tier

    7/26

    S&e7 1= e!l adc%*clone.l d(T'e!

    BACKUP PROCEDURES Page 7 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    8/26

    S&e7 2= '"e &e a!a;e&e!) ;ean) &a!*e& o)& na;e )$)&e; da&a(a)e na;e d'!ec&o!$ %o! )ou!ce o;e

    BACKUP PROCEDURES Page 8 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    9/26

    S&e7 += '"e a& o% u&l:%'le:d'!ec&o!$ o% Da&a:&o RDBMS O!acle Ho;e d'!ec&o!$ u)'n* )a;e

    o!& "alue) o% )ou!ce

    BACKUP PROCEDURES Page 9 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    10/26

    S&e 7-= A%&e! *'"'n* all &e)e a!a;e&e!) &en )c!'& ') !unn'n* and a%&e! co;le&'on da&a(a)e and

    l')&ene! !oce))e) a!e au&o;a&'call$ )&a!&ed

    &fter Completin! the confi!uration of %atabase then started the application confi!uration. Take the new

    terminal and navi!ate to this path by this command

    BACKUP PROCEDURES Page 10 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    11/26

    S&e7 /=>o!acle3(acku ?@ cd 8u918o!acle8PROD8a)8a):)&8co;n8clone8('n8

    and !un &e )c!'&

    e!l adc%*clone.l a)T'e!

    BACKUP PROCEDURES Page 11 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    12/26

    S&e7 = '"e &e a!a;e&e!) o% Ho)&na;e da&a(a)e SID Se!"e! Node F'c ') a) %olloF)

    BACKUP PROCEDURES Page 12 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    13/26

    S&e7 5= '"e ano&e! a!a;e&e!)

    BACKUP PROCEDURES Page 13 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    14/26

    S&e7 6= *'"e &e)e la)& a!a;e&e!)

    &fter !ivin! all these parameters the script is runnin! automatically and after completion of application

    confi!uration the application is started automatically. *ere clonin! is completed and cloned backup

    server is providin! for further procedure.

    BACKUP PROCEDURES Page 14 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    15/26

    -.-. ANNE0URE BANNE0URE B

    1. Uda&'n* o% Backu Se!"e! Da'l$

    )irst make the copy of u72oracleP%db to another location in backup #BPS$ server. By this procedurepen Computer from desktop and open filesystemu72oracleP%db ri!ht click the db and click

    Lcopy fileM and paste into u73.0hen it is completed then remove the same name folders from backup

    server by this procedure

    pen Computer from desktop and open filesystemu72oracleP%dbappsFst and remove

    LdataM folder after this

    pen Computer from desktop and open filesystemu72oracleP%dbtechFst and remove the

    L27.3.7M folder.

    2. Uda&'n* o% Da&a(a)e

    Oo to production server. 1o!in in production server as oracle userlo!in as" oracle

    oracle:2;3.2

    -bash" @A/SE9oracle" command not found

    @oracle:prod DA cd A&C1EF*+E

    @oracle:prod 27.3.7A cd appsutil

    @oracle:prod appsutilA cd scripts

    @oracle:prod scriptsA ls

    P%Fprod

    @oracle:prod scriptsA cd P%Fprod

    @oracle:prod P%FprodA ls

    adautocf!.sh addbctl.sh ade'ecs(l.pl adpreclone.pl adstrtdb.s(l

    adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.s(l

    @oracle:prod P%FprodA perl adpreclone.pl dbTier

    Enter the &PPS user password"

    &fter this closin! the application and database by this command or by script #A. .appstop.sh . .lsnrstop.sh and . .dbstop.sh$

    0hen it is completed !o to backup #BPS$ server and run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a):)&8da&a88u918o!acle8PROD8d(8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. 0hen it is completed then run

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8d(8&ec:)&819.2.988u918o!acle8PROD8d(8&ec:)&8

    BACKUP PROCEDURES Page 15 of 26

    mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/
  • 8/13/2019 Cloning Procedure of Single Tier

    16/26

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. +ake sure that in copy no files are missin! even a sin!le file. 0hen copy is

    completed then navi!ate to this path

    cd 8u918o!acle8PROD8d(8&ec:)&819.2.98a)u&'l8clone8('n and

    S&e7 1= !un &e )c!'& ($ &') co;;and

  • 8/13/2019 Cloning Procedure of Single Tier

    17/26

    S&e7 2= '"e &e a!a;e&e!) ;ean) &a!*e& o)& na;e )$)&e; da&a(a)e na;e d'!ec&o!$ %o! )ou!ce o;e

    BACKUP PROCEDURES Page 17 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    18/26

    S&e7 += '"e a& o% u&l:%'le:d'!ec&o!$ o% Da&a:&o RDBMS O!acle Ho;e d'!ec&o!$ u)'n* )a;e

    o!& "alue) o% )ou!ce

    BACKUP PROCEDURES Page 18 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    19/26

    S&e 7-= A%&e! *'"'n* all &e)e a!a;e&e!) &en )c!'& ') !unn'n* and a%&e! co;le&'on da&a(a)e and

    l')&ene! !oce))e) a!e au&o;a&'call$ )&a!&ed

    BACKUP PROCEDURES Page 19 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    20/26

    Step" =$ after completin! the confi!uration of %atabase then started the application confi!uration. Take

    the new terminal and navi!ate to

    cd 8u918o!acle8PROD8a)8a):)&8co;n8clone8('n8

    and run the script

    e!l adc%*clone.l a)T'e!8u918o!acle8PROD8a)8a):)&8al8'n)&8a)8PROD:(acku8al8ad;'n8PROD:(acku.G;l

    &fter completin! the application start automatically and you test both application and database. *ere

    updatin! of database is completed.

    BACKUP PROCEDURES Page 20 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    21/26

    /./. ANNE0URE CANNE0URE C

    1. Uda&'n* o% Backu Se!"e! Mon&l$

    2. Uda&'n* o% Al'ca&'on

    If you apply any patch on production server or on month end then you also updates the application in

    backup server by followin! procedure

    )irst make copy of Lapps and dbM in backup server to another location in backup server. By this

    procedure

    pen Computer from desktop and open filesystemu72oracleP%db ri!ht click the db and click

    Lcopy fileM and paste into u73.0hen it is completed then make sure the same name folders are not

    present in backup server means LdataM folder in LappsFstM directory and L27.3.7M folder in LtechFstM

    directory should remove.

    &fter this thenpen computer form desktop and open filesystemu72oracleP%apps ri!ht click the apps and

    click Lcopy fileM and paste into u73.

    0hen it is completed then make sure the same name folders are not present in backup server means !o to

    this path

    pen computer form desktop and open filesystemu72oracleP%appsappsFst

    In this Lappl comnM folder should remove after this

    pen computer form desktop and open filesystemu72oracleP%appstechFst

    &nd in this L27.2.3 27.2.6M should remove. &fter Completion

    Oo to Production Server and navi!ate to

    @oracle:prod DA cd A&C1EF*+E

    @oracle:prod 27.3.7A cd appsutil

    @oracle:prod appsutilA cd scripts

    @oracle:prod scriptsA ls

    P%Fprod

    @oracle:prod scriptsA cd P%Fprod

    @oracle:prod P%FprodA lsadautocf!.sh addbctl.sh ade'ecs(l.pl adpreclone.pl adstrtdb.s(l

    adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.s(l

    @oracle:prod P%FprodA perl adpreclone.pl dbTier

    Enter the &PPS user password"

    0hen it is completed then navi!ates to this path

    >o!acle3!od )c!'&)@ cd 8u918o!acle8PROD8'n)&8a)8PROD:!od8ad;'n8)c!'&)

    &nd run this script

    BACKUP PROCEDURES Page 21 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    22/26

    >o!acle3!od )c!'&)@ e!l ad!eclone.l a)T'e!

    &fter this closin! the application and database by this command or by script #A. .appstop.sh . .

    lsnrstop.sh and . .dbstop.sh$ Then !o to backup server and run this command. +ake sure that in copy no

    files are missin! even a sin!le file

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a):)&8da&a88u918o!acle8PROD8d(8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. 0hen it is completed then run

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8d(8&ec:)&819.2.988u918o!acle8PROD8d(8&ec:)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completion then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8a):)&8al8 8u918o!acle8PROD8a)8a):)&8

    Then it asks for password !ive the password of Production Server which is LproductionM and it starts the

    copy from source to destination. &fter completin! copy then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8a):)&8co;n88u918o!acle8PROD8a)8a):)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completin! copy then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8&ec:)&819.1.28 8u918o!acle8PROD8a)8&ec:)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copyfrom source to destination. &fter completin! copy then run this command

    )c #!o!acle3142.15/.15/.4678u918o!acle8PROD8a)8&ec:)&819.1.+8 8u918o!acle8PROD8a)8&ec:)&8

    It asks for password !ive the password of Production Server which is LproductionM and it starts the copy

    from source to destination. &fter completion then update the database by the procedure of L&E/E-

    BM from Step" 2 to Step" G.

    &fter Completin! the confi!uration of %atabase then started the application confi!uration.

    Take the new terminal and navi!ate to this path

    >o!acle3(acku ?@ cd 8u918o!acle8PROD8a)8a):)&8co;n8clone8('n8

    &nd run this script

    BACKUP PROCEDURES Page 22 of 26

    mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/appl/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/appl/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/comn/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/comn/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/comn/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.2/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.2/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.3/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.3/mailto:[email protected]:/u01/oracle/PROD/db/apps_st/data/mailto:[email protected]:/u01/oracle/PROD/db/tech_st/10.2.0/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/appl/mailto:[email protected]:/u01/oracle/PROD/apps/apps_st/comn/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.2/mailto:[email protected]:/u01/oracle/PROD/apps/tech_st/10.1.3/
  • 8/13/2019 Cloning Procedure of Single Tier

    23/26

    >o!acle3(acku ('n@ e!l adc%*clone.l a)T'e!

    BACKUP PROCEDURES Page 23 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    24/26

    '"e &e a!a;e&e!) o% Ho)&na;e da&a(a)e SID Se!"e! Node F'c ') a) %olloF)

    BACKUP PROCEDURES Page 24 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    25/26

    '"e o&e! a!a;e&e!)

    BACKUP PROCEDURES Page 25 of 26

  • 8/13/2019 Cloning Procedure of Single Tier

    26/26

    '"e &e)e la)& a!a;e&e!)

    &fter !ivin! all these parameters the script is runnin! automatically and after completion of application

    confi!uration the application is started automatically