Anda di halaman 1dari 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 Backup Server – Copy of Production Server Database and Application

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. Cloning Procedure

Production 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 plan
should 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 Server

BACKUP PROCEDURES Page 2 of 26


 * BPS = Backup Production Server

BACKUP PROCEDURES Page 3 of 26


3. ANNEXURE- A

1. DB and Application Cloning Detail Steps

login as: oracle


oracle@192.175.175.98's password:
Last login: Thu Jul 3 12:53:19 2008
-bash: [$USER=oracle]: command not found

Navigate to this path

[oracle@prod ~]$ cd /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/scripts/PROD_prod

[oracle@prod PROD_prod]$ ls

adautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sql


adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql

[oracle@prod PROD_prod]$ perl adpreclone.pl dbTier

Enter 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/scripts

And run this script

[oracle@prod scripts]$ perl adpreclone.pl appsTier

Running Rapid Clone with command...


Thu Jul 3 21:52:42 2008
perl /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/adclone.pl
java=/u01/oracle/PROD/apps/tech_st/10.1.3/appsutil/jdk mode=stage
stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM
appctx=/u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml showProgress
APPS 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/j
lib/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/te
ch_st/10.1.3/jlib/ojmisc.jar oracle.apps.ad.clone.StageAppsTier -e

BACKUP PROCEDURES Page 4 of 26


/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 -showProgress

Log file located at /u01/oracle/PROD/inst/apps/PROD_prod/admin/log/StageAppsTier_07032152.log

/ 0% completed

Completed Stage...
Thu Jul 3 21:53:02 2008
Completed perl /u01/oracle/PROD/apps/apps_st/appl/ad/12.0.0/bin/adclone.pl
java=/u01/oracle/PROD/apps/tech_st/10.1.3/appsutil/jdk mode=stage
stage=/u01/oracle/PROD/apps/apps_st/comn/clone component=appsTier method=CUSTOM
appctx=/u01/oracle/PROD/inst/apps/PROD_prod/appl/admin/PROD_prod.xml showProgress ...
Thu Jul 3 21:53:02 2008

After 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/apps

Then 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_st

After 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 you
copy it ask for password so give this password and it starts the copy from source to destination. After
completing 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 copy
from 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


It asks for password give the password of Production Server which is “production” and it starts the copy
from 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 copy
from source to destination. After completing this go to PROD directory and make directory “db”

$ mkdir db
$ mkdir apps_st

After 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 copy
from 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 copy
from 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 copy
from source to destination .When it is completed then copy of production is completed and started first
database 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/bin

And run this script by this command

BACKUP PROCEDURES Page 6 of 26


Step: 1) $ perl adcfgclone.pl dbTier

BACKUP PROCEDURES Page 7 of 26


Step: 2) Give the parameters means target host name, system database name, directory for source home

BACKUP PROCEDURES Page 8 of 26


Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using same
port values of source

BACKUP PROCEDURES Page 9 of 26


Step :4) After giving all these parameters then script is running and after completion database and
listener processes are automatically started

After Completing the configuration of Database then started the application configuration. Take the new
terminal and navigate to this path by this command

BACKUP PROCEDURES Page 10 of 26


Step: 5)[oracle@backup ~]$ cd /u01/oracle/PROD/apps/apps_st/comn/clone/bin/
and run the script
$ perl adcfgclone.pl appsTier

BACKUP PROCEDURES Page 11 of 26


Step: 6) Give the parameters of Hostname; database SID, Server Node which is as follows

BACKUP PROCEDURES Page 12 of 26


Step: 7) Give another parameters

BACKUP PROCEDURES Page 13 of 26


Step: 8) give these last parameters

After giving all these parameters the script is running automatically and after completion of application
configuration the application is started automatically. Here cloning is completed and cloned backup
server is providing for further procedure.

BACKUP PROCEDURES Page 14 of 26


4. ANNEXURE- B

1. Updating of Backup Server Daily

First make the copy of /u01/oracle/PROD/db to another location in backup (BPS) server. By this procedure
Open 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 backup
server by this procedure
Open Computer from desktop and open filesystemu01oraclePRODdbapps_st and remove
“data” folder after this
Open Computer from desktop and open filesystemu01oraclePRODdbtech_st and remove the
“10.2.0” folder.

2. Updating of Database

Go to production server. Login in production server as oracle user


login as: oracle
oracle@192.175.175.98's 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]$ ls
PROD_prod

[oracle@prod scripts]$ cd PROD_prod/

[oracle@prod PROD_prod]$ ls
adautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sql
adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql
[oracle@prod PROD_prod]$ perl adpreclone.pl dbTier

Enter 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 copy
from 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


It asks for password give the password of Production Server which is “production” and it starts the copy
from source to destination. Make sure that in copy no files are missing even a single file. When copy is
completed then navigate to this path
$ cd /u01/oracle/PROD/db/tech_st/10.2.0/appsutil/clone/bin and

Step: 1) run the script by this command ($ perl adcfgclone.pl dbTier)

BACKUP PROCEDURES Page 16 of 26


Step: 2) Give the parameters means target host name, system database name, directory for source home

BACKUP PROCEDURES Page 17 of 26


Step: 3) Give path of utl_file_directory , # of Data_top , RDBMS Oracle Home directory , using same
port values of source

BACKUP PROCEDURES Page 18 of 26


Step :4) After giving all these parameters then script is running and after completion database and
listener processes are automatically started

BACKUP PROCEDURES Page 19 of 26


Step: 5) after completing the configuration of Database then started the application configuration. Take
the 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.xml

After completing, the application start automatically and you test both application and database. Here
updating of database is completed.

BACKUP PROCEDURES Page 20 of 26


5. ANNEXURE- C

1. Updating of Backup Server Monthly

2. Updating of Application

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

First make copy of “apps and db” in backup server to another location in backup server. By this
procedure
Open 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 not
present in backup server means “data” folder in “apps_st” directory and “10.2.0” folder in “tech_st”
directory should remove.
After this then
Open computer form desktop and open filesystemu01oraclePRODapps right click the apps and
click “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 to
this path
Open computer form desktop and open filesystemu01oraclePRODapps/apps_st/
In this “appl , comn” folder should remove, after this
Open computer form desktop and open filesystemu01oraclePRODapps/tech_st/
And in this “10.1.2, 10.1.3” should remove. After Completion

Go 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]$ ls
PROD_prod

[oracle@prod scripts]$ cd PROD_prod/

[oracle@prod PROD_prod]$ ls
adautocfg.sh addbctl.sh adexecsql.pl adpreclone.pl adstrtdb.sql
adchknls.pl addlnctl.sh adlsnodes.sh adstopdb.sql
[oracle@prod PROD_prod]$ perl adpreclone.pl dbTier

Enter 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/scripts

And run this script

BACKUP PROCEDURES Page 21 of 26


[oracle@prod scripts]$ perl adpreclone.pl appsTier

After 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 no
files 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 copy
from 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 copy
from 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 the
copy 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 copy
from 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 copy
from 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 copy
from 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 script

BACKUP PROCEDURES Page 22 of 26


[oracle@backup bin]$ perl adcfgclone.pl appsTier

BACKUP PROCEDURES Page 23 of 26


Give the parameters of Hostname; database SID, Server Node which is as follows

BACKUP PROCEDURES Page 24 of 26


Give other parameters

BACKUP PROCEDURES Page 25 of 26


Give these last parameters

After giving all these parameters the script is running automatically and after completion of application
configuration the application is started automatically

BACKUP PROCEDURES Page 26 of 26

Anda mungkin juga menyukai