Clone Doc
Transcript of Clone Doc
-
8/10/2019 Clone Doc
1/13
Oracle Applications 11i clone Document
Author: Muneer Dar Document Ref: Clone Document for Oracle apps 11iVersion: 1.0
ote: This clone Document to specific to TESTATFL instance. Make necessary changes if you
are cloning to DEV or some other instance.
-
8/10/2019 Clone Doc
2/13
Document Format Control
Change Record
Date Author Version hange !eference
"#$No%$"&'& Muneer Ahma( Dar '.&
Reviewers
ame )osition
)ra(eep !agupathy Senior Analyst.
-
8/10/2019 Clone Doc
3/13
Pre clone Steps.
!ecute adpreclone.pl on D" and Apps #ier $efore cop%ing the file s%stem to test server.
On Production server [Apps Tier] [as appprdal]
& cd &COMMO'(#O)*admin*scripts*&CO'#+#('AM
& perl adpreclone.pl apps#ier
On Production server [DB Tier] [as oraprdal]
& &ORAC,(-OM*appsutil*scripts**&CO'#+#('AM& perl adpreclone.pl d$#ier
Tae Bacup o! "elo# Files on DB and Apps Tier on T$STATF%
Create a $acup folder under *appltest*testatfl*id$a with name as date of clone. g //'OV10"acup $elow files to *appltest*testatfl*id$a*//'OV10 folder.
,ocation : &A)),(#O)##A#2,(3as$l.env##A#2,.envA))##A#2,(3as$l.envA))ORA.env
,ocation : &A)),(#O)*admin##A#2,(3as$l.!mladovars.env
,ocation : '(ADM4'listener.oratnsnames.ora
imilarl% on D" side5 tae $acup of parameter file5 conte!t file5 env file5 listener.ora and tnsnames.ora
On Testserver
1. "ring the ,istner and Apps tier services down./. "ring the #est Data$ase down.6. Remove the Data files and application tops.
-
8/10/2019 Clone Doc
4/13
Startin& t'e (estoration usin& ()A* On Testserver [as +oratest+ user],
)repare RMA' Restoration script. Mae sure the data file count in script matches with data file countin production. -ere is a samplerestoration script.
Restoration_script.tx
t
7e are going to Restore the Data$ase using production 4D. o et the nvironment as P(ODATF%and startup instance in nomount mode.
- eport O(AC%$/S0DP(ODATF%
- s2lplus +3as s4sd"a+
S5%6 startup nomount
S5%6eit
Restore the control file $% connecting to rman.
- rman tar&et 3
Recover% Manager: Release 10./.0.8.0 )roduction on at 'ov /0 11:/9:68 /010
Cop%right c; 1 et the Data$ase id. 7e can get D"4D from production $% using ?select d$id from v&data$ase@
()A*6 set DB0D7891:;7 Restore control file. Bo to RMA' $acup location and do ls ltr )RODA#2,(data(control #ae the control file $acup piece which is more recent.
()A*6 restore control!ile !rom +3oratest3testat!l3"acup3P(ODATF%/data/control/18/1/n2?
> Mount the Data$ase once control files are restored.
()A*6 mount data"ase?
4f the RMA' "acup location on test server is different from production server5 Ese $elow commandto update the new path in RMA' Catalog.
()A*6 catalo& start #it' +3oratest3testat!l 3"acup+ noprompt?
'ow e!it the RMA' prompt and run the rman data file restore script which %ou created earlier.
- no'up s' restore/test.s' @
-
8/10/2019 Clone Doc
5/13
Do tail ! to rman logfile in another session and monitor the Data file restoration process.Once All the Data files are restored5 the recover% should tae place automaticall% as we have includedrecover data"asecommand in restore script. 4f due to some issue5 recover% is did not happenedautomaticall%5 recover the data$ase manuall% and open the data$ase with reset logs option.
Verif% All the datafiles are online. Compare datafile count with production.
'e!t we need to rename the Data$ase from )RODA#2, to ##A#2,.
#ae the trace $acup of control file as $elow.
S2l6 alter data"ase "acup control!ile to trace as 3oratest3testat!l3Control/!ile.s2l?
'ow edit this control file trace and prepare a control file creation script.
Change theCRA# CO'#RO,24, statement to $elow.
C($AT$ CO*T(O%F0%$ S$T DATABAS$ T$STATF% ($S$T%OS *OA(C0E$%O
'ow shutdown the Data$ase which is running on )RODA#2, 4D and tae $acup of e!isting controlfiles. *ot'in& to do #it' Production 0nstance. So "e care!ul 'ere.G- s2lplus +3as s4sd"a+
S5%6s'utdo#n immediate
S5%6 eit
'ow start the instance in nomount mode using ##A#2, sid and run control file script.
- eport O(AC%$/S0DT$STATF%
- s2lplus +3as s4sd"a+
S5%6startup nomount?
S5%6 H3oratest3testat!l3Control/!ile.s2l
Once control files are created5 open the ##A#2, data$ase using resetlogs option.
S5%6 alter data"ase open resetlo&s?
Add Temp !ile on T$STATF%,
F,G alter ta$lespace #M) add tempfile H*oratest*testatfl*datafile*data*temp01.d$f H siIe 6000m@F,G alter ta$lespace #M) add tempfile H*oratest*testatfl*datafile*data*temp0/.d$f ? siIe 6000m@
-
8/10/2019 Clone Doc
6/13
C'an&e lo"al *ame o! t'e T$STATF% on Testserver,
F,G A,#R DA#A"A R'AM B,O"A,('AM #O J##A#2,.atfoods.comJ@F,G select B,O"A,('AM from B,O"A,('AM@B,O"A,('AM##A#2,.A#2OOD.COM
Startin& %istener on Testserver,
& lsnrctl start ##A#2,
Post DB clone steps.
1. Clean the 2'D('OD ta$le3lplus apps*apps
F,G!ec fnd(conc(clone.setup(clean
/. Run cmclean.s3l.F,GKcmclean.s3l
6. Concurrent manager ma% not come up sometimes and it would populate the $elow errormessage in concurrent log file.Could not initialiIe the ervice Manager 2'DM(FA",(##A#2,. Verif% that FA", has $een registered for concurrent processing.Routine A2)4M encountered an error while starting concurrent manager RCVO,#M with li$rar%*appltest*testatfl*appsfiles*testatflappl*po*11.L.0*$in*RCVO,#M.
Chec that %our s%stem has enough resources to start a concurrent manager process. Contact %our s% : 19MAR/011 1
-
8/10/2019 Clone Doc
7/13
Once the Customer acnowledges us that the Apps $acup has $een restoredsuccessfull% on #est server we can precede further.
Rename the Application tops if not done $% customer.
& mv prodatflappl testatflappl& mv prodatflcomn testatflcomn
& mv prodatflora testatflora
Chec the ownership of Application tops. Change the ownership if not set to uid10/appltest;gid100d$a;
Set enviromant and (un adc!&clone.pl as appltest
& cd &COMMO'(#O)*clone*$in& perl adcfgclone.pl apps#ier *appltest*testatfl*id$a*//'OV10*##A#2,(3as$l.!ml
Brin& Apps services do#n on Testserver,
& cd &COMMO'(#O)*admin*scripts*&CO'#+#('AM
& .*adstpall.sh apps*Papps )asswordG
(un adautoc!&.s' [as appltest]
& cd &COMMO'(#O)*admin*scripts*&CO'#+#('AM
& .*adautocfg.sh
(un adautoc!&.s' [as oratest]
& cd &ORAC,(-OM*appsutil*scripts* *&CO'#+#('AM& .*adautocfg.sh
Ipdate Concurrent ta"les .
F,G Epdate fnd(concurrent(processes set 'OD('AMHFA",H 7here 'OD('AM in)ROD"5 )ROD"15 A#2,)RODA)),;@F,G Epdate fnd(concurrent(processes set D"(4'#A'CH##A#2,H 7hereD"(4'#A'CH)RODA#2,H@
-
8/10/2019 Clone Doc
8/13
F,G Epdate fnd(concurrent(3ueues set 'OD('AM HFA",H 7here 'OD('AM in?)ROD"5 ?)ROD"15 ?A#2,)RODA)),;@
aG Set Terminatin& or (unnin& to Completed3TerminatedF,G E)DA# fnd(concurrent(re3uests # phase(code HCH5 status(code H+H 7-R status(code H#H ORphase(code HRH@
"G Place Pendin&3*ormal3Stand"4G to On oldF,G E)DA# fnd(concurrent(re3uests # hold(flag HQH 7-R phase(code H)H A'D status(code in HFH5H4H;@
F,G commit@
Settin& Custom Top,
& cd &A)),(#O)& ls custom)RODA#2,(atflprodappl.env
Note: Qou will find a custom file of production instance which we need to rename as follows and thecontents of the file should $e as follows.Qou can get the customer environment details fromA))ORA.env.Correct the custom #op in that env file.
& cp custom)RODA#2,(atflprodappl.env custom##A#2,(3as$l.env
& cat custom##A#2,(3as$l.envA#2,(#O)J*appltest*testatfl*appsfiles*testatflappl*!!atfl*11.L.0Je!port A#2,(#O)
Bo to &4A(ORAC,(-OM*Apache*serv*etc and tae a $acup of formservlet.ini and edit the filemae sure all the #O)s are pointing to ##A#2, director% file s%stem.
Start up Apps Services on Testserver,
& cd &COMMO'(#O)*admin*scripts*&CO'#+#('AM
& adstartall.sh apps*Papps pwdG
Ipdate t'e Site pro!ile
Change the ite level profile value to S##A#2,T
Per!orm ealt' C'ec,
)erform -ealth Chec $% su$mitting the SActive EsersT Conc. Re3uest.
-
8/10/2019 Clone Doc
9/13
Post Clone Steps !or Jor!lo#K Discover etc.
Drop the D" lins that point to ie$el.
F,G select D"(lin from user(d$(lins order $% created@
D"(,4'
D"(,4'.E.ORAC,.COMD"(,4'1.E.ORAC,.COMA))(#O(A)).E.ORAC,.COMUD7(A))(#O(7-.E.ORAC,.COMD"(##.A#2OOD.COM4",D".A#2OOD.COMA))(#O(A)).A#2OOD.COMD7(A))(#O(7-.A#2OOD.COMAC)D".A#2OOD.COMDMD".A#2OOD.COM
F,G drop data$ase lin 4",D"@F,G drop data$ase lin AC)D"@F,G drop data$ase lin DMD"@
Qou ma% need to recreate these data$ase lin pointing it the DV or FA 4nstance with the same name.Chec with customer for this re3uirement after clone.
-
8/10/2019 Clone Doc
10/13
Jor!lo# )ailers Setup.
!iting prod setup
!iting DV 4nstance etup
4n order to $ring up the worflow services in DV or FA1. 4n$ound configuration needs to changed./. set override address need to $e done otherwise the mails will float to the end users from
DV or FA.
'avigation is %stem Administrator7orflowNotification Mailers Click on Edit Button
'avigation is %stem Administrator7orflowNotification Mailers Click on View Details button
-
8/10/2019 Clone Doc
11/13
Discoverer Setup
Mv the earlier D$c of the cloned environment in demoebs.atfoods.comdiscoverer. )lease see $elow for location
/eddevora/oracle/BIHome_1/discoverer/secure
Copy the dbc file from the cloned environment to the/eddevora/oracle/BIome!"/discoverer/secure location#
$nd chan%e the profile options values as follows
ICX: Discoverer Launcher & http&//demoebs#atfoods#com&'''(/discoverer/plus)Connect*+$,,-!-EC.E0
ICX: Discoverer Viewer Launcher:
http&//demoebs#atfoods#com&'''(/discoverer/viewer)Connect*+$,,-!-EC.E0
-
8/10/2019 Clone Doc
12/13
"# ,rofiles that needs to be checked on EB- tar%et environment 1Cloned2side
,rofile Vaule -ite 3evel
IC4& Default Discoverer 5orkbook6wner
E.3!.-
IC4& Discoverer Default End .ser3ayer -chema ,refi7
E.3
IC4& Discoverer EB- End .ser3ayer -chema ,refi7 E.3
IC4& Discoverer ED5 End .ser3ayer -chema ,refi7
E.3
IC4& Discoverer End .ser 3ayer3an%ua%e 6verride
$merican En%lish
IC4& Discoverer elease "8
IC4& Discoverer 639, End .ser3ayer -chema ,refi7
E.3
:or the followin% responsibilities the profile option needs to be chan%e atthe esponsibility level
"# Discoverer ,lus ; $9:3# Discoverer ,lus ; ,rocurement?# Discoverer ,lus ; @uality $ssuranceA# Discoverer ,lus ; -ales
:or e7&
-
8/10/2019 Clone Doc
13/13
Known Issues&
After application clone all concurrent managers are not coming up and 4CM log files shows thefollowing error message
Process monitor session ended , 1:L)A(L=911 9:,;8,9>
Process monitor session started , 1:L)A(L=911 9:,;:,9>
Could not contact Service )ana&er F*DS)/5ASB%/T$STATF%. T'e T*S alias could not "e
locatedK t'e listener process on 5ASB% could no
t "e contactedK or t'e listener !ailed to spa#n t'e Service )ana&er process.
Process monitor session ended , 1:L)A(L=911 9:,;:,9