0% found this document useful (0 votes)
338 views

12.2.4 Cloning Steps

The document provides steps to clone an EBS 12.2.5 production environment to a UAT environment. It involves taking RMAN backups of the source database, tar backups of the application and database binaries, copying these backups to the target server, restoring the database using RMAN duplicate, untarring the application and database binaries, running cloning scripts to configure the applications and database, and post clone steps like changing passwords and profiles.

Uploaded by

maruthi631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
338 views

12.2.4 Cloning Steps

The document provides steps to clone an EBS 12.2.5 production environment to a UAT environment. It involves taking RMAN backups of the source database, tar backups of the application and database binaries, copying these backups to the target server, restoring the database using RMAN duplicate, untarring the application and database binaries, running cloning scripts to configure the applications and database, and post clone steps like changing passwords and profiles.

Uploaded by

maruthi631
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

RMAN Cloning 12.2.

5:
--------------- ---------------

SOURCE : PROD (192.168.1.5)


TARGET : UAT (192.168.1.110)

Source :
->Run adpreclone.pl in appsTier (cd $INST_TOP/admin/Scripts)

->Run adpreclone.pl in dbTier (cd


/u01/oracle/ERPPROD/11.2.0/appsutil/scripts/ERPPROD_db)

->Tar the EBSapps directory in RUN file system and it should contain appl_top,
comn_top, 10.1.2 home directories.

cd /u02/oracle/ERPPROD/fs2

->tar -czf EBSapps_031117_apps.gz EBSapps &

-> tar the db_home


cd /u01/oracle/ERPPROD

nohup tar -czf 12.1.0_031117.gz 12.1.0 &

-> check rman backups

cd /BKP/RMAN_BKP/PROD

->copy backup files to traget

cd /BKP/RMAN_BKP/PROD

scp `ls -ltr |grep "Jul 22" |awk '{print$9}'`


[email protected]:/u001/oratst/BKP/PROD/rman_bkp

->copy db and apps tar files to traget server .

cd /u02/oracle/ERPPROD/fs2

scp EBSapps_220717_apps.tar.Z [email protected]:/u02/appltst/TST/fs2

cd /Media/clone_db/

scp 11.2.0_220717_db.tar.Z [email protected]:/u001/oratst/TST/

TARGET
------------

->connect to target server take below necessary backups


->Take backup of dbs, network directories and env , xml from db tier

cd /home/oratst
mkdir clone_bkp_220717

cp /u001/oratst/TST/11.2.0/dbs/initTST.ora /home/oratst/clone_bkp_220717
cp /u001/oratst/TST/11.2.0/dbs/spfileTST.ora /home/oratst/clone_bkp_220717
cp /u001/oratst/TST/11.2.0/TST_qa.env /home/oratst/clone_bkp_220717
cp -rf /u001/oratst/TST/11.2.0/network/admin/TST_qa /home/oratst/clone_bkp_220717
cp /u001/oratst/TST/11.2.0/appsutil/TST_qa.xml /home/oratst/clone_bkp_220717

->Now shut down the application tier and db tier.

db: oratst
apps: appltst

->Cleanup the application and db binaries(delete all files)


Application:APPL_TOP INST_TOP..

NOTE:check below before clone echo $APPL_TOP, $COMN_TOP, $ORACLE_HOME, $FMW_HOME,


$INST_TOP

cd /u02/appltst/TST/
rm -rf *
mkdir fs1 fs2 fs_ne

remove DATABASE:CRD files and db binaries

SQL> select name from v$datafile;


SQL>select name from v$controlfile;
SQL> select member from $logfile;

rm -rf /u001/oratst/TST/data/*
rm -rf /u001/oratst/TST/redo/*

rm -rf /u001/oratst/TST/11.2.0

remove inventory :
rm -rf /u001/oratst/TST/oraInventory

change inventory location .

vi /etc/oraInst.loc

->untar the db binaries and application binaries on run filesystem.

cd /u001/oratst/TST/

cat 11.2.0_220717_db.tar.Z | uncompress | tar xvf -

remove once untar .

rm 11.2.0_220717_db.tar.Z

->untar the apps binaries and application binaries on run filesystem.

cd /u02/appltst/TST/fs2

cat EBSapps_220717_apps.tar.Z | uncompress | tar xvf -

remove file once untar completed.


rm EBSapps_220717_apps.tar.Z

TYPE :1

->Run adcfgclone.pl dbTechStack (cd /u001/oratst/TST/11.2.0/appsutil/clone/bin)


NOTE:It will create pfile and it will register in oratab and it will start listener
)
->It will ask some prompts like

Provide the values required for creation of the new Database Context file.

Target System Hostname (virtual or normal) [qa] :

Target Instance is RAC (y/n) [n] :

Target System Database SID : TST

Target System Base Directory : /u001/oratst/TST

Target System utl_file_dir Directory List : /usr/tmp

Number of DATA_TOP's on the Target System [2] :

Target System DATA_TOP Directory 1 [/u001/oratst/TST/redo] :

Target System DATA_TOP Directory 2 [/u001/oratst/TST/data] :

Target System RDBMS ORACLE_HOME Directory [/u001/oratst/TST/11.2.0] :

Do you want to preserve the Display [null] (y/n) : n

Target System Display [qa:0.0] :

Do you want the target system to have the same port values as the source system
(y/n) [y] ? : n

Target System Port Pool [0-99] : 7

Checking the port pool 7


done: Port Pool 7 is free

->add parameters in pfile:

*.LOG_FILE_NAME_CONVERT='/u01/data/ERPTEST/data','/u01/db/ERPDEV/data'
*.DB_FILE_NAME_CONVERT='/u01/data/ERPTEST/data','/u01/db/ERPDEV/data'

-> restore and recover databse by using axiliary

sql> startup nomount

->connect to rman auxiliary /


RMAN> duplicate target database to "ERPDEV" backup location='/u01/db/rman_bkp' ;
->> Run adcfgclone.pl dbconfig /u001/oratst/TST/11.2.0/appsutil/TST_qa.xml

SQL> alter system set processes=1100 scope=spfile;

System altered.

SQL> alter system set sga_target=3g scope=spfile;

System altered.

SQL> alter system set sga_max_size=8g scope=spfile;

System altered.

SQL> alter system set open_cursors=4000 scope=spfile;

System altered.

SQL>

provide 777 to inventory

chmod -R 777 /u001/oratst/TST/oraInventory

Application:

cd /u02/appltst/TST/fs2/EBSAPPS/comn/clone/bin

export TIMEDPROCESS_TIMEOUT=-1
export CONFIG_JVM_ARGS="-Xms1024m -Xmx2048m"

adcfgclone.pl appsTier dualfs

file system : run


hostname: qa
baselocation: /u02/appltst/TST
db name :TST
db:port : 1527
INST_TOP:
COMMON_TOP:
FMW_HOME:
APPL_TOP:
display: qa:0.0
port: 7

do want start services ? No

POST STEPS:
-------------------

change passwords:

system: uatsys
sys: uatsys
apps: uatapp
sysadmin: uatadmin
weblogic password:uatweblogic123

alter user sys identified by ****


alter user system identified by ****;

FNDCPASS apps/** 0 Y system/*** SYSTEM APPLSYS *** ---apps password change


FNDCPASS apps/Tstapp 0 Y system/Tstsys USER SYSADMIN Tstadmin --- forntend
FNDCPASS apps/Tstapp 0 Y system/Tstsys ORACLE GL GL123 --product password

Weblogic console
Lock and Edit -> Services -> Data Sources -> EBSDataSource -> Connection Pool ->
Change apps password here -> Save -> Active changes

Execute the following queries on target:

UPDATE PER_ALL_PEOPLE_F PAPF


SET PAPF.EMAIL_ADDRESS = '[email protected]'
where EMAIL_ADDRESS is not null;
commit;

UPDATE fnd_user
SET EMAIL_ADDRESS = '[email protected]'
where EMAIL_ADDRESS is not null;
commit;

UPDATE WF_LOCAL_ROLES
SET EMAIL_ADDRESS = '[email protected]'
where EMAIL_ADDRESS is not null;
commit;

DELETE FROM DBSNMP.BSLN_BASELINES where INSTANCE_NAME <> ' ERPPROD ';


commit;

update fnd_concurrent_requests set outfile_node_name ='qa',logfile_node_name = 'qa'


where outfile_node_name = 'app';
commit;

Changes in the EBS Front End

Log in to EBS instance:


1. CHANGE HEADER TEXT
a. Login with System Administrator responsibility
b. Navigate: System Administrator -> Application -> Function
c. Press F11, to turn the window to Query mode.
d. Query the function 'FWK_HOMEPAGE_BRAND'
e. Press �Ctrl� + �F11� for query to return the output.
f. Replace the value of the 'User Function Name' with the desired text
Example-
Old - - PRODUCTION - E-Business Suite
Changed to � TST (EBS Apps) Refreshed from Prod 5/15/12
g. Press �Save� Button .

2. CHANGE SITE NAME:


a. Navigate to System Administrator -> Profile -> System ->
b. Search inside Profile Textbox: �Site Name� and press Find Button.
c. Change the Site name with required text.
Old: Fruit of the Loom (PRODERP 12.1.3 Instance)
New: SBICAPS TEST EBS (UAT) -Refreshed from ERPPROD 15/02/16
d. Press �Save� Button

3. Change Print Profile to NO PRINT.


a. Navigate to System Administrator -> Profile -> System ->
b. Search inside Profile Textbox: �Printer� and press Find Button.
c. Change under Site Textbox with following value �noprint�.
d. Press �Save� Button

4. Verify the Profiles for Cyber Source and verify the URL references to
current Cloning instance
ICX: Oracle Payment Server URL
IBY: ECAPP URL

5. Update the reports.sh file in location cd $ORACLE_HOME/bin in both file


systems with the correct hostname to avoid toolkit error

6. FINAL CHANGES & CHECKS.


Log into EBS application front end.
Provide the new sysadmin username and password
Once it logs in check the BANNER at TOP, it should show right name
Check Concurrent Manager all process up and running with following
Navigation:
Navigation: System Administrator -> Concurrent > Manager > Administrator
See all Actual and Target Process should be same, nothing should be zero.
Close the form.

7. de-register SSO

$FND_TOP/bin/txkrun.pl -script=SetSSOReg -deregisteroid=yes

Enter Oracle E-Business apps database user password ?Tstapp


Enter LDAP Host name? app.sbicapasia.com
Enter the LDAP Port on Oracle Directory server? 3060
Enter the LDAP Directory Administrator (orcladmin) Bind password? odsprod1

8. change profiles .

Change the profile Applications SSO Login Types.to local


ASG: SSO Authentication Enabled �NO
Application SSO LDAP Synchronization : Disabled
Applications SSO Login Types �Local

Applications SSO User Creation and Updation Allowed _-Disabled


Applications SSO Enable OID Identity Add Event �Disabled
Link Applications user with OID user with same username : Disabled

You might also like