Vous êtes sur la page 1sur 26

1.

HOW 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

2. PSM BACKUP PROCEDURE


1. Cloned Backu Se!"e! # Co $ o% P!oduc&'on Se!"e! Da&a(a)e and A l'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 drive-part 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 drive-part 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 BPS 9 Backup Production Server

BACKUP PROCEDURES

Page 3 of 26

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

lo!in as" oracle oracle:2;3.2<=.2<=.;>?s password" 1ast lo!in" Thu 5ul 6 23"=6"2; 377> -bash" @A/SE.9oracleB" command not found Cavi!ate to this path @oracle:prod DBA cd -u72-oracle-P.E%-db-techFst-27.3.7-appsutil-scripts-P.E%Fprod @oracle:prod P.E%FprodBA 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.E%FprodBA perl adpreclone.pl dbTier Enter the &PPS user password" @oracle:prod P.E%FprodBA pwd -u72-oracle-P.E%-db-techFst-27.3.7-appsutil-scripts-P.E%Fprod @oracle:prod P.E%FprodBA &fter completion navi!ate to this path @oracle:prod scriptsBA cd -u72-oracle-P.E%-inst-apps-P.E%Fprod-admin-scripts &nd run this script @oracle:prod scriptsBA perl adpreclone.pl appsTier .unnin! .apid Clone with command... Thu 5ul 6 32"=3"G3 377> perl -u72-oracle-P.E%-apps-appsFst-appl-ad-23.7.7-bin-adclone.pl Hava9-u72-oracle-P.E%-apps-techFst-27.2.6-appsutil-Hdk mode9sta!e sta!e9-u72-oracle-P.E%-apps-appsFst-comn-clone component9appsTier method9C/STE+ appct'9-u72-oracle-P.E%-inst-apps-P.E%Fprod-appl-admin-P.E%Fprod.'ml showPro!ress &PPS Password " Be!innin! application tier Sta!e - Thu 5ul 6 32"=3"G3 377> -u72-oracle-P.E%-apps-techFst-27.2.6-appsutil-Hdk-bin-Hava -Im'J77+ -%CECTEITF,&1I%&TE%9false -%oracle.installer.ouiFloc9-oui -classpath -u72-oracle-P.E%-apps-techFst-27.2.6-lib-'mlparserv3.Har"-u72-oracle-P.E%-apps-techFst-27.2.6-Hdbc-liboHdbc2G.Har"-u72-oracle-P.E%-apps-appsFst-comn-Hava-classes"-u72-oracle-P.E%-apps-techFst-27.2.6-oui-H lib-EraInstaller.Har"-u72-oracle-P.E%-apps-techFst-27.2.6-oui-Hlib-ewt6.Har"-u72-oracle-P.E%-apps-techFst -27.2.6-oui-Hlib-share.Har"-u72-oracle-P.E%-apps-techFst-27.2.6-oui-Hlib-srvm.Har"-u72-oracle-P.E%-apps-te chFst-27.2.6-Hlib-oHmisc.Har oracle.apps.ad.clone.Sta!e&ppsTier -e

BACKUP PROCEDURES

Page 4 of 26

-u72-oracle-P.E%-inst-apps-P.E%Fprod-appl-admin-P.E%Fprod.'ml -sta!e -u72-oracle-P.E%-apps-appsFst-comn-clone -tmp -tmp -method C/STE+ -showPro!ress 1o! file located at -u72-oracle-P.E%-inst-apps-P.E%Fprod-admin-lo!-Sta!e&ppsTierF7<7632=3.lo! 7K completed

Completed Sta!e... Thu 5ul 6 32"=6"73 377> Completed perl -u72-oracle-P.E%-apps-appsFst-appl-ad-23.7.7-bin-adclone.pl Hava9-u72-oracle-P.E%-apps-techFst-27.2.6-appsutil-Hdk mode9sta!e sta!e9-u72-oracle-P.E%-apps-appsFst-comn-clone component9appsTier method9C/STE+ appct'9-u72-oracle-P.E%-inst-apps-P.E%Fprod-appl-admin-P.E%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 scriptsBA .-adstpall.sh apps-apps

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.E% A cd -P.E% A mkdir apps A cd -apps A mkdir -appsFst &fter makin! directories then run this command 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8a )8a ):)&8a l8 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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8a )8a ):)&8co;n8 8u918o!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 2 ;kd'! &ec.:)& <'n &.e a Then run this command 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8a )8&ec.:)&819.1.28 8u918o!acle8PROD8a )8&ec.:)&8 ) d'!ec&o!$=

BACKUP PROCEDURES

Page 5 of 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 2 )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.E% directory and make directory LdbM 2 ;kd'! d( 2 ;kd'! a ):)& &fter makin! appsFst directory then run this command 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a ):)&8da&a8 8u918o!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 2 ;kd'! &ec.:)& <'n &.e d( d'!ec&o!$= Then run this command 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8&ec.:)&819.2.98 8u918o!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 completin! copy then run this command 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8'n)&8 8u918o!acle8PROD8a )8a ):)&8a l8

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 copy of production is completed and started first database and then application by runnin! the scripts. &fter Copyin! all these items to BPS machine then start the confi!uration of clonin!. 0hich is as underN Cavi!ate to this path >o!acle3(acku ?@2 cd 8u918o!acle8PROD8d(8&ec.:)&819.2.98a &nd run this script by this command )u&'l8clone8('n

BACKUP PROCEDURES

Page 6 of 26

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

BACKUP PROCEDURES

Page 7 of 26

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

BACKUP PROCEDURES

Page 8 of 26

S&e 7 += A'"e a&. o% u&l:%'le:d'!ec&o!$ B C o% Da&a:&o B RDBMS O!acle Ho;e d'!ec&o!$ B u)'n* )a;e o!& "alue) o% )ou!ce

BACKUP PROCEDURES

Page 9 of 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

S&e 7 /=>o!acle3(acku ?@2 cd 8u918o!acle8PROD8a and !un &.e )c!' & 2 e!l adc%*clone. l a )T'e!

)8a

):)&8co;n8clone8('n8

BACKUP PROCEDURES

Page 11 of 26

S&e 7 D= A'"e &.e a!a;e&e!) o% Ho)&na;eE da&a(a)e SIDB Se!"e! Node F.'c. ') a) %olloF)

BACKUP PROCEDURES

Page 12 of 26

S&e 7 5= A'"e ano&.e! a!a;e&e!)

BACKUP PROCEDURES

Page 13 of 26

S&e 7 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

-. ANNE0URE1 B
1. U da&'n* o% Backu Se!"e! Da'l$

)irst make the copy of -u72-oracle-P.E%-db to another location in backup #BPS$ server. By this procedure Epen Computer from desktop and open filesystemu72oracleP.E%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 Epen Computer from desktop and open filesystemu72oracleP.E%dbappsFst and remove LdataM folder after this Epen Computer from desktop and open filesystemu72oracleP.E%dbtechFst and remove the L27.3.7M folder. 2. U da&'n* o% Da&a(a)e

Oo to production server. 1o!in in production server as oracle user lo!in as" oracle oracle:2;3.2<=.2<=.;>?s password" 1ast lo!in" Thu 5ul 6 23"=6"2; 377> -bash" @A/SE.9oracleB" command not found @oracle:prod DBA cd AE.&C1EF*E+E @oracle:prod 27.3.7BA cd appsutil @oracle:prod appsutilBA cd scripts@oracle:prod scriptsBA ls P.E%Fprod @oracle:prod scriptsBA cd P.E%Fprod@oracle:prod P.E%FprodBA 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.E%FprodBA 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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a ):)&8da&a8 8u918o!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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8&ec.:)&819.2.98 8u918o!acle8PROD8d(8&ec.:)&8

BACKUP PROCEDURES

Page 15 of 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 2 cd 8u918o!acle8PROD8d(8&ec.:)&819.2.98a )u&'l8clone8('n and S&e 7 1= !un &.e )c!' & ($ &.') co;;and <2 e!l adc%*clone. l d(T'e!=

BACKUP PROCEDURES

Page 16 of 26

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

BACKUP PROCEDURES

Page 17 of 26

S&e 7 += A'"e a&. o% u&l:%'le:d'!ec&o!$ B C o% Da&a:&o B RDBMS O!acle Ho;e d'!ec&o!$ B u)'n* )a;e o!& "alue) o% )ou!ce

BACKUP PROCEDURES

Page 18 of 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

Step" =$ after completin! the confi!uration of %atabase then started the application confi!uration. Take the new terminal and navi!ate to 2 cd 8u918o!acle8PROD8a and run the script )8a ):)&8co;n8clone8('n8

2 e!l adc%*clone. l a )T'e! 8u918o!acle8PROD8a )8a ):)&8a

l8'n)&8a

)8PROD:(acku 8a

l8ad;'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

/. ANNE0URE1 C
1. 2. U da&'n* o% Backu Se!"e! Mon&.l$ U da&'n* o% A l'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 Epen Computer from desktop and open filesystemu72oracleP.E%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 then Epen computer form desktop and open filesystemu72oracleP.E%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 Epen computer form desktop and open filesystemu72oracleP.E%apps-appsFstIn this Lappl comnM folder should remove after this Epen computer form desktop and open filesystemu72oracleP.E%apps-techFst&nd in this L27.2.3 27.2.6M should remove. &fter Completion Oo to Production Server and navi!ate to @oracle:prod DBA cd AE.&C1EF*E+E @oracle:prod 27.3.7BA cd appsutil @oracle:prod appsutilBA cd scripts@oracle:prod scriptsBA ls P.E%Fprod @oracle:prod scriptsBA cd P.E%Fprod@oracle:prod P.E%FprodBA 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.E%FprodBA perl adpreclone.pl dbTier Enter the &PPS user password" 0hen it is completed then navi!ates to this path >o!acle3 !od )c!' &)@2 cd 8u918o!acle8PROD8'n)&8a &nd run this script )8PROD: !od8ad;'n8)c!' &)

BACKUP PROCEDURES

Page 21 of 26

>o!acle3 !od )c!' &)@2 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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8a ):)&8da&a8 8u918o!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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8d(8&ec.:)&819.2.98 8u918o!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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8a )8a ):)&8a l8 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 2 )c #! o!acle3142.15/.15/.4678u918o!acle8PROD8a )8a ):)&8co;n8 8u918o!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 2 )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 copy from source to destination. &fter completin! copy then run this command 2 )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&CCEI/.EBM 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 ?@2 cd 8u918o!acle8PROD8a &nd run this script )8a ):)&8co;n8clone8('n8

BACKUP PROCEDURES

Page 22 of 26

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

)T'e!

BACKUP PROCEDURES

Page 23 of 26

A'"e &.e a!a;e&e!) o% Ho)&na;eE da&a(a)e SIDB Se!"e! Node F.'c. ') a) %olloF)

BACKUP PROCEDURES

Page 24 of 26

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

BACKUP PROCEDURES

Page 25 of 26

A'"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

BACKUP PROCEDURES

Page 26 of 26

Vous aimerez peut-être aussi