E-Business 12.2.5 Cloning –Six Easy Steps ... - ebs-dba.com · Over 20 years experience with...

Preview:

Citation preview

E-Business12.2.5Cloning– SixEasySteps,

NowThreeEasySteps

MichaelBrown

BlueStar

mbrown@bluestarinc.com

Who Am I?

Over 20 years experience with Oracle DatabaseOver 15 years experience with E-Business SuiteChair, OAUG Database SIGVice Chair, OAUG Sysadmin SIGCo-Founder AppsPerfOracle ACEOAUG Member of the Year 2013Applications DBA, BlueStar

2

UserGroups

• OAUG• EasternStatesOAUG

• DatabaseSIG

• SysadminSIG

• Manyothers

• IOUG

• ODTUG

• Others

Assumptions

• Oneapplicationsnode

• NotRAC

• Unixcommands

• AD/TXKDelta8for12.2.5+

4

Overview

• E-Business Suite 11i to 12.2 -- Overview• E-Business Suite 11i to 12.2 -- Architecture• E-Business Suite 12.2 Cloning – Six Easy Steps• E-Business Suite 12.2 Cloning – Three Easy

Steps (12.2.5 and 12.2.6)

5

Oracle Corporation Documentation

6

OracleE-Business11i ThreeTierArchitecture

Architecture: E-Business 11i/12.1/12.2 & 12.2 Cloning

Oracle Corp., Steven Chan Presentation 2013

7

OracleE-Business12.1ThreeTierArchitecture

Architecture: E-Business 11i/12.1/12.2 & 12.2 Cloning

Oracle Corp., Steven Chan Presentation 2013

8

OracleE-Business12.2ThreeTierArchitecture

Architecture: E-Business 11i/12.1/12.2 & 12.2 Cloning

Oracle Corp., Max Arderius Presentation 2014

9

!

OracleE-Business12.2ThreeTierArchitecture

Architecture: E-Business 11i/12.1/12.2 & 12.2 Cloning

10

!

OracleE-Business12.2ThreeTierArchitecture

Architecture: E-Business 11i/12.1/12.2 & 12.2 Cloning

Cloning

• 3stepsoneachtier• Prepare

• Copy

• Configure

Cloning

• 3 4Steps• PreparetheSource

• Copy

• Configure

• FinishApplications

Cloning• PreparetheSource

• adpreclone.pl dbTier

• Always?

• Requiredincertaincircumstances

• Cold

• Databasepatches

• adpreclone.pl appsTier

• Always?

• Patches

• Anychangesthatwillimpactautoconfig

• 12.2

• Isfs1orfs2theRunFilesystem?

Cloning

• Copy• Database

• HotorCold

• Applications

• Full,Differential

• rsync –a--delete

Cloning

• ConfigureDatabase• Cold

• adcfgclone.pl dbTier

• RelinksandregistersORACLE_HOME

• Configuresandstartslistener

• Buildscontrolfiles,

• ResetsRedo

• Configuresthedatabase

Cloning• ConfigureDatabase

• Hot• ManuallydoingthethreeinternalstepsdoneindbTier mode

• BuildOracleHome(ifdbTier preclone isnotrequired,thiscanbeskipped)

• CopyOracle_Home fromsource

• adcfgclone.pl dbTechStack• RelinksandregistersORACLE_HOME

• Configuresandstartslistener

• CopyisnowinthemiddleofConfigure

• ClonetheDatabaseusingyourfavoritemethod• rman duplicate,DiskBasedSnapshot,etc.

• sqlplus /assysdba @adupdlib so

• adcfgclone.pl dbconfig• Configuresthedatabase

DatabaseClone

• Testyourbackups!• Atleastoneregularlyscheduledcloneshouldcomefrombackups

• SANsolutioncaveats• Knowyourcapacities

• Databasecapacityshouldbemeasurediniops anddatatransferrates,notstorage

• Snapshotbasedtechnologiescanhavedetrimentalimpactsonsourcedisks

• SSDminimizesbutdoesnoteliminatethis

Cloning

• ConfigureApplications• adcfgclone.pl appsTier

• Configurestheapplicationfilesystem,listenersanddatabaseobjects

• Startstheapps

• Notautomaticanymore

• FinishingTasks

• Workflow

• Non-Sitelevelprofileoptions

12.2Cloning

• 3 4 7Steps• PreparetheSource

• CopyonlytheRunFilesystemEBSapps directory

• ConfigureDatabase

• Applications• ConfiguretheRunFilesystem

• PreparetheRunFilesystem

• CopytheRunFilesystemtoPatch(onlyEBSapps)

• ConfigurethePatchFilesystem

• FinishingTasks

Six Easy Steps: E-Business 11i/12.1/12.2 & 12.2 Cloning

OracleE-Business12.2Cloning– SixEasySteps

12.2Patching• Nopatchingcanbeinprogress!!!!

• Implications• Nightlyclonesforreporting/support

• On-Demandclones

• fs_clone isnotnormallyrequired(unlessstatedinthepatchnote)

21

12.2Patching

• Checkifadop sessionisactive• AppsTier

• adop –status

• SQL

• Selectdecode(status,’C’,’Not Active’,’Active’)fromad_adop_sessionswhereadop_session_id=(selectmax(adop_session_id)fromad_adop_sessions);

• Cannotclone

12.2Cloning

• Weblogic Server• Cannotconfigureonthefilesystem

• adpreclone packagesWLSforinstallation

• $COMMON_TOP/clonejustgotalotbigger

• adcfgclone installsandconfiguresWLS

• Thisisnotfast

12.2Gotcha

• Youmustclonetherunfilesystemfromthesource

• Itmustkeepthesamenameonthetarget

• Canbeamajorissueforscriptingyourclone

24

12.2CloneWithADDelta7+

• adcfgclone.pl appsTier dualfs• Backtotheoriginalnumberofsteps

• Aftercompletingtheexpectedconfigurationoftherunfilesystem

• Automaticallyprepares

• AutomaticallycopiesEBSapps tothepatchfilesystem

• Automaticallyconfiguresthepatchfilesystem

• Itdoesnotsavetimeovertheprevious6stepprocess

• Finishingtasks

AutomatingtheProcess

• Easiesttoclonemanuallythefirsttime

• OntheDBTier,copythecontextfilefromthetargetbacktothesource

• OntheAppsTier,copypairsfile$INST_TOP/appl/admin/$CONTEXT_NAME.txt• Needtoeditthefirsttimeforallresponses

Pairsfile

[Base]

s_base=/u01/app/oracle/apps

s_current_base=/u01/app/oracle/apps/fs2

s_other_base=/u01/app/oracle/apps/fs1

s_ne_base=/u01/app/oracle/apps/fs_ne

[General]

s_port_pool=

patch_s_port_pool=

Automation

• DBTier• adcfgplone.pl dbTier|dbconfig SID_host.xml

• AppsTier• DevelopmentInstance

• adcfgclone.pl component=appsTier pairsfile=pairsfile.txt

• Non-developmentInstance

• adcfgclone.pl component=appsTier pairsfile=pairsfile.txt dualfs=yes

References

• MyOracleSupport• 1383621.1CloningOracleE-BusinessSuiteRelease12.2with

RapidClone

• 2047809.1 CloningOracleE-BusinessSuiteRelease12.2(AD-TXKDelta6orLowerCodelevel)withRapidClone

• 224274.1HowtoMakeaCopyofanOpenDatabaseforDuplicationtoaDifferentMachine

• JamesMorrowAftertheClone:Thingsadcfgclone Doesn’tdo…

29

Questions

mbrown@bluestarinc.comhttp://blog.michael-brown.org

Recommended