Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1....

21

Transcript of Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1....

Page 1: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create
Page 2: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

DatabasePlatformMigrationUsingZDLRA

OracleServerTechnologyHighAvailabilitySystemsDevelopmentMaximumAvailabilityArchitectureNovember2018

Page 3: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

SafeHarborStatementThefollowingisintendedtooutlineourgeneralproductdirection.Itisintendedforinformationpurposesonly,andmaynotbeincorporatedintoanycontract.Itisnotacommitmenttodeliveranymaterial,code,orfunctionality,andshouldnotberelieduponinmakingpurchasingdecisions.Thedevelopment,release,andtimingofanyfeaturesorfunctionalitydescribedforOracle’sproductsremainsatthesolediscretionofOracle.

3

Page 4: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

SolutionOverview

ZDLRABackupandRestoreStrategy

DatabaseMigrationProcessusingdbmigusera.pl

CustomerCaseStudy

1

2

3

4

4

Page 5: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

SolutionOverview

5

• Databasemigrationistheprocessofmovingdatabasestoanewplatform,includingExadata andExaCC

• ZeroDataLossRecoveryAppliance(ZDLRA)providesasimple,reliable,andfastmigrationsolutionwithminimaldowntime

Thispresentationoutlinesthestepstoexecute:

• Cross-endianplatformDBmigrationusingZDLRA

• Same-endianplatformDBmigration– evensimplerandfasterwithZDLRA

Page 6: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

SolutionOverview

ZDLRABackupandRestoreStrategy

DatabaseMigrationProcessusingZDLRA

Overview– RealLifeScenario

1

2

3

4

6

Page 7: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

ZeroDataLossRecoveryApplianceOverview

DeltaPush•DBsaccessandsendonlychanges• Minimalimpactonproduction

•Real-timeredotransportinstantlyprotectsongoingtransactions

ProtectedDatabases

ProtectsallDBsinDataCenter•Petabytesofdata•RMAN-drivenbackup&restore•Oracle10.2-12.2,anyplatform•NoexpensiveDBbackupagents

DeltaStore• Storesvalidated,compressedDBchangesondisk• Fastrestorestoanypoint-in-timeusing‘virtualfull’•BuiltonExadatascalingandresilience•EnterpriseManagerend-to-endcontrol

RecoveryAppliance

ReplicatestoRemoteRecoveryAppliance

OffloadsCloud/TapeBackup

7

DBBackupCloudService

Page 8: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.|

Space-Efficient “Virtual”FullBackups

• Afterone-timefullbackup,incrementalsusedtocreatevirtual fulldatabasebackupsonadailybasis• Pointer-basedrepresentationofphysicalfullbackupasofincrementalbackuptime

• Virtualbackupstypically10xspaceefficient• Enableslongbackuphistorytobekeptwiththesmallestpossiblespaceconsumption• “TimeMachine”fordatabase

DeltaStoreProtectedDatabases

DayNIncr

Day1VirtualFull

DayNVirtualFull

Day1Incr

Day0Full

NoMoreFullBackups:IncrementalsForeverArchitecture

8

Page 9: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018, Oracleand/oritsaffiliates.Allrightsreserved.|

FastRestoretoAnyPoint-in-TimeNoIncrementalApply=NoLoadonProductionServer

• Directlyrestoreanyvirtualfullbackup• Allblocksreferencedfromvirtualfullareefficientlyretrieved• Eliminatesproductionserveroverheadoftraditionalrestoreandmergeofincrementals

• InheritsscalabilityandperformanceviaExadata-basedhardwareplatform

DeltaStoreProtectedDatabases

RESTORE DATABASE TO DAY ‘N’

Day0Full

Day1Incr

DayNIncr

Day‘N’FullBackup

Page 10: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Abstract

ZDLRABackupandRestoreStrategy

DatabaseMigrationProcessusingZDLRA

Overview– RealLifeScenario

1

2

3

4

10

Page 11: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

DatabaseMigrationProcessusingZDLRA

11

Databasemigrationcanbeeither:

1. Cross-Endian– BigEndiantoSmallEndian,orviceversa.2. AcrosstheSame-Endian.

Wheredidthewordendiannesscamefrom?FromapassageinGulliver'sTravels inwhichanemperor,aftercuttinghisfingerafteropeninganeggatthelargeend,commandshissubjectstoopenthematthesmallend;thosewhocomplyarecalled“Little-Endians”,whilethosewhorebelbyopeningtheireggsatthelargeendarecalled“Big-Endians.”

Incomputerarchitecture:•Inbig-endianformat,wheneveraddressingmemoryorsending/storingwordsbyte-wise,themostsignificantbyte—thebytecontainingthemostsignificantbit—isstoredfirst(hasthelowestaddress)orsentfirst,thenthefollowingbytesarestoredorsentindecreasingsignificanceorder,withtheleastsignificantbyte—theonecontainingtheleastsignificantbit—storedlast(havingthehighestaddress)orsentlast.

•Little-endianformatreversesthisorder:thesequenceaddresses/sends/storestheleastsignificantbytefirst(lowestaddress)andthemostsignificantbytelast(highestaddress).

Page 12: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

Cross-EndianDatabaseMigrationusingZDLRA1. Performingincrementalbackupsasnormalfromthesourcedatabase toZDLRA

2. Createanewdatabaseonthedestinationplatform.

3. Onthedestinationdatabase,restorethelatestvirtuallevel0backupfromtheZDLRAforthesourcetablespaces.– Therestoreoperationwillconvertandcopythedatafilestothenewdestinationdatabasestorage.

– Themigrationprocedurewillalsocreateanexportdatapumpfiletopluginthetablespacesatthedestination.

4. Recoverthedestinationdatafileswithincrementals (i.e.datachanges)takenatthesourceasmanytimesasdesiredtokeepthedatainsyncascloseaspossiblebetweenthetwodatabases– Ideally,therecoveroperationshouldberunonregularbasis(e.g.daily),untilittakeslessthan2hours.

5. Selectafinalmigrationwindowtothedestinationdatabase,ideallywherethereareminimalsourcedatabaseactivities:– Onthesourcedatabase:

1. Putthetablespaces onthesourcedatabaseinreadonlymode2. Takeafinalincrementallevel1backuptotheZDLRA3. Exportthetransportabletablespacesdefinition(metadatadumpfile)

– Onthedestinationdatabase:1. Recoverthedatafileswiththefinalincrementalbackupandexportthetransportabletablespaces2. Importthetablespacemetadatadumpfiletopluginthetablespaces3. Activatedestinationdatabaseandenableservices

12

Page 13: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

SourceDB(11g-12c) DestinationDB(12c)

SOETBS Day1:FullBackup

Export Import

Read-only

MetaData

SOETBS

DatabaseMigrationusingZDLRA• DramaticallyReduceRead-onlyDowntime– SeveralHours+toFewHoursorLess

• Minimaldowntime– DBremainsread-write throughoutprocess• Tablespaces areonlyplacedinread-onlypriortofinalincremental

• Dailyincrementalbackups->virtualfullbackupsonRecoveryAppliance• Restorelatestvirtualfullbackuppriortostartofmigrationwindow

• RESTOREFROMPLATFORMXXXFOREIGNDATAFILEYYY• Finalincrementaltakeninread-only,thenrestored&recoveredontodestinationfiles

• RECOVERFROMPLATFORMXXXFOREIGNDATAFILECOPYYYY• Datapumpmetadataexportatsourceandimportofmetadatadumpfileatdestination

VirtualFullRestore

Restore&RecoverFinalIncremental

Day2->N:IncrementalBackups

Dayn:FinalIncremental

Read-write

Page 14: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

CrossPlatformDBMigrationusingZDLRA- Benefits

14

Primarybenefits:1. Significantreductionindowntime(Potentiallylessthantwohoursofservicedowntime)12. ApplicationserviceisREADONLYduringmostoftheservicedowntime3. NewZDLRAtool(dbmigusera.pl)simplifiescrossplatformmigrationbyautomatingsteps,

especiallyusefulforlargedatabases4. Migrationtimeisnotimpactedbythesizeofthedatabase

Read-onlydowntimebasedon:1. Finalincrementalbackupandrecoverystep– incrementalsizeshouldbe<5%ofDBsize2. Finaltablespacemetadataexport/importduration(onlynecessaryforcrossplatform)3. Numberoftargettablespaces– importisdoneserially4. Applicationserviceswitchoverfromsourcetodestinationdatabase

RefertoMOSNote:CrossPlatformDatabaseMigrationusingZDLRA(DocID2460552.1)1Downtimedoesnot includetheuserobjectstobeimportedonthedestination.

Page 15: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

Same-EndianDBMigrationusingZDLRA• LeverageDataGuardandZDLRAforminimaldowntimemigration– ByusingthesourcedatabasebackupsavailableontheZDLRA,instantiatenewdatabaseonthedestinationplatformusingRMANDUPLICATEFORSTANDBY.

– StartMRPtosynchronizestandbywithprimarydatabase– Verifydestinationdatabyopeningstandbyread-only– Performswitchoverandredirectapplicationclientstonewprimarydatabase– RefertoMOSNote:CreatingaPhysicalStandbyDatabaseinan11.2,12.1,12.2orlaterenvironment(DocID2275154.1)1

• Advantages:– Near-ZerotoZerodowntimeduringswitchovertodestinationdatabase– Increasedavailabilityduringthemigrationprocessvstransportabletablespaceapproach–WithActiveDataGuard,standbydatabasecanbeusedtooffloadread-onlyactivitiesfromprimary(e.g.reporting),untilswitchoverisperformed

1WhenusingRMANDUPLICATE,connecttotheZDLRAasCATALOGandconfiguretheRMANAUXILIARYSBTchannelstoconnecttotheZDLRA.

15

Page 16: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

ProgramAgenda

Abstract

ZDLRABackupandRestoreStrategy

DatabaseMigrationProcessusingdbmigusera.pl

CustomerCaseStudy

1

2

3

4

16

Page 17: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

CustomerCaseStudy

17

Page 18: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.|

LeadingGlobalSemiconductorManufacturer

BusinessNeeds• AccelerateGrowth• DriveOperationalExcellence

• CustomerExperience• OperationalEfficiency

• Groworganizationalcapabilities– optimizeinnovation

• Addresscurrent&plannedbusinessgrowthobjectives

SolutionNeeds• Stability• ZeroPreventableOutages• FocusonBusinessOps• IncreaseITagility,self-

serviceandalignmenttobusinessdrivers

Exadata X4-2 Exadata X2-2

ActiveDataGuard

WeeklyFullanddailyincrementalbackup

NASDevice

LegacyArchitecture

ResultsAchieved• Consolidateandstandardize– ConsolidatedseveralDBs to

ExaCC +Multi-Tenantoption• ImprovedthetimeandcosttobuildandmaintainAnalyticsplatform

• NearzerodowntimeDBmigrationtoExaCC usingRA+RMANDUPLICATE.

• Deliverexceptionalservicetobusinessusers

• Eliminatedfullbackups• Reducedincrementalbackuptimeby2X

• ImprovedRTOby4X

Exadata X4-2 Exadata X2-2

CascadeStandby

Incrementalforeverbackups

ActiveDataGuard

Exadata C@C

NewArchitecture

Page 19: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.| 19

Incrementalforeverbackups

CurrentArchitecture

OracleDatabasesonIBM/AIX

Exadata C@C

FutureArchitecture

Incrementalforeverbackups

BusinessGoals

Enhancethecustomershoppingexperience

§ Providearobustplatformforthepoint-of-saledatabases

§ Improveoverallperformance

§ Increasetimetomarket§ Datacentermodernization

§ MigratingfromIBMAIXtoExadata

§ Databaseconsolidation

LeadingEuropeanRetailer

Page 20: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create

Copyright©2018,Oracleand/oritsaffiliates.Allrightsreserved.| 20

Page 21: Database Platform Migration Using ZDLRA - Oracle · Cross-Endian Database Migration using ZDLRA 1. Performing incremental backups as normal from the source database to ZDLRA 2. Create