zero data lossrecoveryappliance - oracle.com · windows(2-6 hours) versus waiting ... ra replica:...

76

Upload: buithu

Post on 04-Sep-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

ZeroDataLoss Recovery Appliance:Maintenance&OperationalBestPractices

MAABestPracticesTeamServerTechnologiesJuly2018

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

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

3

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

4

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 5

MAARecommendations

• OneRecoveryAppliance(RA)perdatacenter

• BackupprimaryandstandbydatabasestotheirrespectivelocalRA

• NoRAreplicationforanydatabasewitharemotestandby

• RestoreoperationcanuseanyRAinanylocation

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 6

DoyourbusinessrequirementscallformultipleRecoveryAppliances?Questionstoask:

1. Doyouneedtheabilitytobackup,restoreandrecoverduringRAplannedmaintenancewindows(2-6hoursformajorupgrades)versuswaitinguntiltheplannedmaintenancecompletes?

2. Doyourequiredisasterrecoveryprotection?(e.g.datacenterfailure,powerfailure)

3. DoyourequireminimaldatalossforallprotecteddatabasesbackinguptoRAduringitsplannedmaintenancewindows?

4. DoyourequirearchiveandbackupsoperationstocontinueduringRAplannedmaintenancewindows(2-6hours)versuswaitinguntiltheplannedmaintenancecompletes?

If youanswered“Yes” ,toanyofthesequestionsmultipleRecoveryAppliancesarerequired.

Yes/No

Yes/No

Yes/No

Yes/No

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 7

MultipleRecoverAppliancesRequired?

q Didyouanswer“yes”?

ü ToANYofthequestions:YouwillneedanotherRecoveryAppliance

ü Yestoquestion#1or#2:UseBackupandRecoveryFailovertoReplicaApplianceSolution

ü Yestoquestion#3or#4Only:UseBackupFailovertoAlternateApplianceSolution

Note:ifyouhaveDataGuardorGoldenGate?Backuptheproduction,standbyorGoldenGatereplicatotheirrespectivelocalRA.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

TapeLibrary

OneWay

Bi-Directional

Hub&Spoke

RemoteDataCenterLocalDataCenter

RAReplica:DataLossProtectionfromSiteDisasters

BENEFITS• ReplicationtoRemote

Applianceprotectsdatafromdisastersorsitefailures

• AutomatedrestorefromLocalApplianceordirectlyfromRemoteAppliance

8

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

RAOsakanormallyreplicatestoRATokyo

Whenupstreamappliance(RAOsaka)isnotavailable,backupsandredoareredirectedtoRemoteappliance(RATokyo)

• Virtualfullsarecreatedasnormal

• SizingDRapplianceIngeneral,sizeperRecoveryWindowGoal(RWG)businessrequirement:1xfullbackup+NRWGdaysofincrementalandredo/archlogbackupsBareminimum:1xfullbackup+1dayredo/archlogsbackups.

Whenupstreamisbackonline,DRappliancebackupsaretransferred

• Backupsareingestedandprocessedintovirtualfulls

• Normalbackupstoupstreamcanberestartedimmediately

• Virtualfullsfornewbackupsarecreatedafteralltransferredbackupshavecompletedprocessing

Benefits

• BestpracticetopreserveHAduringplannedorunplanneddowntime

• Databasebackup&restore/recoverabilityavailablefromeitherupstreamanddownstream

9

X

Backup& RecoveryFailovertoReplica

RAOsaka

Replication

RAOsaka RATokyo

RATokyo

Replication

RAOsaka RATokyo

BackupstoDRAppliance

DRAppliancebackupstransferredtoUpstream

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

BackupFailovertoAlternateRA• IncrementalsandRedonormallysenttoPrimaryRA

• AlternateRAservesasbackupstagingareawhenprimaryRAisunavailable,thensyncswithprimaryRAafterwards– Novirtualfullscreatedonalternate,hencerecoverabilitynotsupported

– Spacesizedfor‘n’incrementalsandarchivedlogbackupsduringprimarydowntimeperiod

• Benefits:– Preservesbackupandredoshipmentcontinuityduringplannedmaintenance/upgrades

– PreventslocalFastRecoveryAreasfromfillingupwitharchivedlogs

– BlockChangeTrackingcontinues

10

RAOsakaPrimaryAppliance

XRATokyoAlternateAppliance

Alternateappliancetakesoverbackupsandredotransport

Incrementals&

Redo/Arch

“BF_FORWARD”PolicyonAlternateRA:STORE_AND_FORWARD=‘YES’

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

BackupFailovertoAlternateRA- Continue• Backupandredofailoverdestinationwhenprimaryapplianceisunavailable– Alternateappliancetakesoverbackupsandredotransport

– Whenprimaryapplianceisbackonline,allinterimbackupsarereplicatedfromalternateandvirtualfullbackupsarecreatedonprimary

– Onceallvirtualfullsarecompleted,backupsandredotransportcanrestarttotheprimaryappliance

11

“BF_FORWARD”PolicyonAlternateRA:STORE_AND_FORWARD=‘YES’

RAOsakaPrimaryAppliance

BFOSAKA

“BF_BACKUP”PolicyonPrimaryRA

RATokyoAlternateAppliance

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

MultipleRecoveryApplianceSolutionSummary

– BackupandRecoveryFailovertoReplicaAppliance• BackupandRedotoRAReplicaduringRAmaintenanceandunplanneddowntime• RestorefromRAReplica• MorecapacityrequiredduetoRAreplication

– BackupFailovertoAlternateAppliance• BackupsandRedotoAlternateRAduringRAmaintenanceandunplanneddowntime• RestorefromAlternateNOTavailable• LesscapacityrequiredbecauseRAreplicationwasnotsetup

12

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 13

RecoveryAppliance&DataGuard

PrimaryDatabase

RemoteStandbyDatabase

DataGuardTransportsync/async

FastIncremental FastIncremental

Redo(ASYNC)

Redo(ASYNC)

MAARecommendations:• OneRecoveryAppliance(RA)perdatacenter• BackupprimaryandstandbydatabasestothelocalRA• NoRAreplicationforanydatabaseswitharemotestandbyneeded• RestoreoperationcanuseanyRAinanylocation

StandbyLocationPrimaryLocation

Fastincremental(anincrementalusingBlockChangeTracking)onastandbydatabaserequiresanActiveDataGuardLicense.

RAReal-TimeRedodoesNOTrequireanActiveDataGuardLicense.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

RecoveryApplianceandDataGuard

• PostDataGuardroletransition– Nochangeinbackupoperations.ContinuetobackupboththeprimaryandstandbydatabasestothelocalRA

• DeployingtheZeroDataLossRecoveryApplianceinaDataGuardConfiguration– Refertohttp://www.oracle.com/technetwork/database/availability/recovery-appliance-data-guard-2767512.pdf / DeployingZeroDataLossRecoveryApplianceinaDataGuardConfiguration (UpdatedMarch2018)

MaximumAvailabilityArchitecture(MAA)WhitePaper

14

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

15

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

NetworkConfigurationOptions

• ZDLRASupports10GigE/25GigEandInfiniBand– 10GigEor25GigEistherecommendedforprotecteddatabasetoRAconnectivity• EthernetbasedconnectivityprovidesoptimalbackupandrestoreratesduetoRA’sresourcemanagement.

• Note:WhileIBconnectivityissupported,beawareofthefollowing:– IBwillnotrealizethefullIBnetworkbandwidthduetoRAresourcemanagement(managedthrottling).– IBsetupwillintroducesoftwareupdatecomplexity.– Owner’sGuide,Chapter9hasdetailsonhowtoconfigureBackupIngestoverIB

– Note:Real-TimeRedoTransportuses10GigEor25GigEnetworkONLY

16

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

NetworkConfigurationOptions- continue

• VLANfornetworkisolation– BackupandrestoretrafficfromdifferentVLANsisnotrouted.– RecoveryAppliancesupportsVLANtaggingontheingestnetwork• ProtectedDBhostsondifferentandisolatedVLANscanbeconnecteddirectlytotheRA• Enabling8021.QVLANTagginginZeroDataLossRecoveryApplianceOverIngestNetworks(DocID2047411.1)

• Replication:TypicallyconfiguredviaOEDAbeforeRASWinstallation– Replicationconfiguration– PostInstall• PostInstall- ReplicationNetworkConfigurationforZDLRA(DocID2126047.1)

17

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

RecoveryApplianceSecurity

• ClienttoRecoveryAppliance,orRecoveryAppliancetoClient– Upcoming:SecurityinFlight(TCPS,HTTPS)è Provideduponrequest– AddingaprotecteddatabaseRecoveryApplianceVPCusercredentialstoanexistingOIDwallet(DocID2211759.1)

• SecurityintheRecoveryAppliance– RecoveryApplianceadministratorsresponsibilities• CreateVirtualPrivateCatalog(VPC)User• AssignprotecteddatabasestoaspecificVPCUser• TheprotecteddatabaseadministratorcanseealldatabasesthatshareacommonVPCuser

Customersrequiringendtoendsecurity

18

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

19

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

TypicalquestionsfromnewZDLRAcustomers

?

NewZDLRA

Customer

1.Who willmanagethis?

2.How willmyteamsupportit?

Thispresentationprovidesinformationtohelpyouanswerthesequestions.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

TheStartingPoint:ASetofSpecialistTeams

Database AdministratorsDB DB DB

Storage AdministratorsDisk DiskDiskDisk

System AdministratorsServerServer

Network AdministratorsNetwork

Security AdministratorsResponsesEventsPolicy

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Option1:MultipleSpecialistTeams(statusquo1)

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

1- EachteamisassignedaspecificZDLRAsetofresponsibilities.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Option2:ExtendedRATeam

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

Primarystakeholders1

Secondarystakeholders2

1-PerfrommainZDLRAmonitoringandadministrationactivities.

2-Perfromadditionaltasksrequiredbythemainstakeholders.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Option3:RAMachineAdministrator

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

Centralizedstakeholders1

1-ResponsibleforallZDLRAactivitiesincludingmonitoring,administrationandmaintenance.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

OperationalModel1:MultipleSpecialistTeams

25

RACILegend:R =ResponsibleA =AccountableS =SupportiveC =ConsultedI =Informed

RASCIModel- MultipleSpecialistTeams

Task DBAOS

SYSADMIN NETWORK STORAGE CIO SECURITY

Day-to-dayOperation R R R A C

Testing R R R A C/IMonitoring R R R A C/IConfigurationManagement R R R A C/IPatching

StorageCells R A C/IInfiniBand C R A C/ICiscoPublicNetwork C R A C/IDbComputeNodesOS C R A C/IDatabase R A C/I

BackingUpRA R A C/IUpgradingSW R R A C/IReplacingHW R R A C/IMeteringandCharging

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

OperationalModel2:ExtendedRATeam(ERMA)

26

RACILegend:R =ResponsibleA =AccountableS =SupportiveC =ConsultedI =Informed

RASCIModel– ExtendedRATeam

Task DBAOS

SYSADMIN NETWORK STORAGE CIO SECURITY

Day-to-dayOperation R S S A C

Testing R S S A C/IMonitoring R A C/IConfigurationManagement R A C/IPatching

StorageCells R A C/IInfiniBand R S A C/ICiscoPublicNetwork R S A C/IDbComputeNodesOS R S A C/IDatabase R A C/I

BackingUpRA R A C/IUpgradingSW R S S A C/IReplacingHW R S S A C/IMeteringandCharging

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

OperationalModel3:RAMachineAdministrator(RAMA)

27

RASCIModel- RAMACHINE ADMINISTRATOR

Task DBAOS

SYSADMIN NETWORK STORAGE CIO SECURITY

Day-to-dayOperation R A C

Testing R A C/IMonitoring R A C/IConfigurationManagement R C A C/IPatching

StorageCells R A C/IInfiniBand R C/I A C/ICiscoPublicNetwork R C/I A C/IDbComputeNodesOS R A C/IDatabase R A C/I

BackingUpRA R A C/IUpgradingSW R A C/IReplacingHW R A C/IMeteringandCharging

RACILegend:R =ResponsibleA =AccountableS =SupportiveC =ConsultedI =Informed

Database AdministratorsStorage Administrators

System Administrators

Network Administrators

Security Administrators

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

SummaryofStaffingModels

Allthreemodelswillwork.

Youdecidewhatisbestinyourorganization.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

29

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

AdjustingDefaultSettings• DonotmakeanychangestoRecoveryAppliance– IT’SANAPPLIANCEandit’salreadyoptimized– RestrictionsandsupportedconfigurationexceptionsinMOSnote2172842.1

• IfrequireduseMAX_RETENTION_WINDOW toenforcehardlimitsondataretentionforalldatabaseswithinaprotectionpolicy.–Usecaseswheretherearestringentcompliance/regulatoryrequirements• Bestpracticesistosetthevalueto5daysorgreater(50%abovetheRecoveryWindowforlargeranges)

– Backupsareforciblyremovedafterexceedingwindow– RecoveryWindowGoalsshouldbeusedtomanagebackupspaceconsumption– UsinganaggressiveMAX_RETENTION_WINDOW(onenotadheringtobestpractice)maydelaybackupprocessingandindexingduetoincreasedandlessefficientPURGEtaskjobs.

30

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

UseRecommendedRASoftware• SubscribetoMOSalertsandreferperiodicallytothefollowingnotes:

• RecoveryApplianceCriticalIssuesMOSnoteforcriticalissuesalerts• RecoveryApplianceSupportedVersionsMOSnoteforlatestsoftwareupdate

• UseRecommendedRASoftwaretoavoidknowncriticalissues– Number1methodtoavoidproblems:Upgradetorecommendedsoftwarerelease– ZeroDataLossRecoveryApplianceSupportedVersions(DocID1927416.1)– ZeroDataLossRecoveryApplianceUpgradeandPatching(DocID2028931.1)– Patchesarecumulativeandinclude

- Bugfixes(Avoidabugbeforeithappens)- Enhancements(ModificationtoRAprocessflow)

• CoordinatewithPlatinumPatching– Scheduleearly&OpenProactiveSR

31

VeryImportant

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Don’ts

– Don’tignoreincidents:• Resolveandunderstand

– Don’tneglecttheRA• Monitorthesystem

– Don’tSubmitmultiplerequesttoDeletedatabases• Multiple– concurrentdatabasedeletionscanhaveanegativeimpactontheRA• AvoidDeleteDatabasecommandsasmuchaspossibleorlimitdeletionsto1or2concurrentlyforlargedatabasedeletions• Startwiththesmallestandworkup,monitorforasuccessfulcompletion.

32

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Don’ts

– Don’trepeatbackuporrecoveryscriptsafterafailure• Firsttroubleshootthereason.MostcasesithasnothingtodowithRecoveryAppliance.• Rapidandrepeatedexecutionsofascriptcancausevariousissues

– Don’tmakemodificationstotheRAconfiguration• ZeroDataLossRecoveryAppliance- InstallingThird-PartySoftwareandModifyingInternalApplianceSoftware(DocID2014361.1

– Don’ttakeperiodicLevel0• VirtualLevel0requiresonlyonelevel0followedbylevel1s• Note:Alevel0mayberequested– BySupport– TopreserverecoverabilityineventofbackupcorruptiondetectedontheRA

33

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Don’ts– Don’tbackupaDataGuardprimary& standbytothesameRA• SeeDeployingtheZeroDataLossRecoveryApplianceinaDataGuardConfiguration

– Don’tregister databaseswithidenticalDBIDstothesameRA• SeeCloningaProtectedDatabase”withintheZDLRAProtectedDatabaseConfigurationGuide

– Don’tbackuptoanothermedia• SwitchingtoanothermediacanimpactpastandfuturebackupsmadetotheRA

– Dualbackupstrategiesarecomplexandshouldbeavoidedifpossible• Dualbackupstrategiesaredesignedformigration• DualBackupStrategyMOSNotes:– ImplementingaDualBackupStrategywithBackupstoDiskandRecoveryAppliance(DocID2154461.1)– ImplementingaDualBackupStrategywithBackupstoTapeandRecoveryAppliance(DocID2154471.1)

34

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Dos

– Validatethebackup/restorenetworkfirst:• UseZeroDataLossRecoveryApplianceNetworkTestThroughputscript(DocID2022086.1)– requiresqperf,NOTOSagnostic

• HowtomeasurenetworkperformancefromRMANforZDLRAorCloudBackups(DocID2371860.1)– usesRMAN’s“NETTEST”option,OSagnostic

– FileaNEWSRforanynewissue• RefertoServiceRequestsandEscalationProcesssection

– SetNLS_DATE_FORMATbeforecallingrmanscripts• e.g.inLinux:exportNLS_DATE_FORMAT‘yyyy-mm-ddhh24:mi:ss’

35

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Dos

– UseMultiSection:setSectionSizeto64GB• Numberofsectionsperdatafileislimitedto256.• Whenasectionsizeof64GBisused:– Largedatafiles>16TBwillautomaticallyseeanincreaseinsectionsize• if(sizeof(datafile)>16TB),sectionsize=sizeof(datafile)/256

– Smalldatafiles<64GBwillnothavesections• A64GBsectionsize:allowsforefficientprocessinginZDLRA’sflashcache– Forcesfilespersetto1

– Usethelatestlibra(TheRMANclientsbtlibrarythatsupportsZDLRA)• ZDLRA:Wheretodownloadnewsbtlibrary(libra.somodule)(DocID2219812.1)

36

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

MonitoringRA’sHealth

• MonitortheApplianceonadailybasis– EMUnifiedManagementDashboard• Reviewtwicedaily

– SystemActivityScript(DocID2275176.1)• Rundailyandmonitortrends

– EMnotifications• Reviewandactonnotifications

– RunexachkMonthlyandreviewfindings• HowToupdateexachkoutsideZDLRAInstall,PatchingandUpgrade(DocID2399688.1)• Usedifftocomparemonthtomonth• Runpreandpostpatching

– ReviewCapacityPlanningReportMonthlyorBi-Monthly

37

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

IstheZDLRAHealthy?OracleEnterpriseManager

38

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

UnifiedEnd-to-EndControl

• RecoveryApplianceAdmincentrallymonitorsandmanagesalldatabaseprotectionactivityacrossalltiers

• DatabaseAdminmonitorstheprotectionstatusoftheirdatabasefromdisk,totape,toreplica–OffloadedreplicasandtapebackupsappearinRecoveryCatalog

Tape

RemoteAppliance

Enterprise Manager

Tape

39

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

BestPractice– UnifiedManagementDashboard– 1)Summary

• Showsthenumberofprotecteddatabases,andsummarizestheirhealthstatus,currentactivity,andactivitywithinthelast24hours.Formoreinformation,clickthelinksintheOperationcolumn:Backup,Copy-to-Tape,Replication,andRestore.

– 2)ProtectedDatabaseIssues• Highlightsissuesrelatingtobackupandrecoverystatusforprotecteddatabases.TheViewmenufiltersthedataonkeycategories.

– 3)DataSent/Received(Daily)• Displaysdailythroughputoverthepastweek.

– 4)Performance• ChartsperformancestatisticsforDataRateandQueuedData.Thestatisticsarefilterablebyday,week,ormonth.

– 5)MediaManagers• Displaystheconfiguredmediamanagerforcopy-to-tapeoperations.

– 6)StorageLocations• Summarizestotalavailablespaceandusagebyindicatinghowmuchhasbeenconsumedtomeetthediskrecoverywindowgoalforall

databases,andwhatpercentageoftotalspaceisreservedspacefordatabasesbackinguptothespecifiedstoragelocation.

– 7)Replication• ListsthedownstreamRecoveryAppliancestowhichthisRecoveryApplianceisreplicating,andalsotheupstreamRecoveryAppliances from

whichthisRecoveryApplianceisreceiving

– 8)IncidentsandEvents• SummarizesallwarningsoralertsthathavebeengeneratedbyCloudControlmonitoringofalltargetsassociatedwiththeRecoveryAppliance.

Fromthissection,drilldownforfurtherdetailontheissues.

40

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 41

BestPractices– UnifiedManagementDashboard- Continue

1

2

3

4

6

5

7

8

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 42

BestPractices– LeverageOEMnotifications

RecoveryAppliancealertnotificationsetupusingOracleEnterpriseManager(DocID2262003.1)

Exampleofalertsandnotificationforoldbackups:

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ZeroDataLossRecoveryApplianceSystemActivityScript• ZeroDataLossRecoveryApplianceSystemActivityScript(DocID2275176.1)

• Containsmultiplequeries,providing:– Catalogversion– Generalstateofthesystem– Examinationofrunningtasksonthesystem– Taskhistoryforthelastday– Spaceusage– Lockinginformation– Checkstatusofreplicationserverifitexists– Incidentsforthelastfivedays– Displayeachdatabase'scurrentprogressprocessingtheirdatafiles– APIcommandsoverthelast2weeks– Notableconfigchanges

43

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

IstheZDLRAHealthy?SystemActivityReport

44

• Itemstowatchfor:BadreportWatchfor:

IftherearetasksofWORKTYPEinRUNNINGstateandcreatedadayearliertheninvestigate.

IftherearetasksofMAINTENANCEorSBTTYPEpresentandtheircreationtimeisolderthanoneweekthenitshouldbeinvestigated.

Alargenumberoftaskinexecutablestateforthesametask_type.

Thesametasktypeisincreasinginthenumberofjobs(current_count)overtime.Asystemwithorderingwaitsthatareolderthan1day.

Asystemwithtasksinstall_when_wait.ThisshouldonlybeseenifOracleSupportistroubleshootingtheRA.

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

IstheZDLRAHealthy?SystemActivityReport

45

TheGood:

Minimumcreationtimeforactivetasksiswithinthelast24hoursforworktasks.

Taskhistorystateshouldindicateworkisbeingcompleted.

Reviewothersections

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

IstheZDLRAHealthy?exachk

46

UpdateexachkforRA:• HowtoupdateexachkoutsideZDLRAInstall,Patching

andUpgrade(DocID2399688.1)

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 47

exachk&RAInformationCenter

InformationCenter:OverviewZeroDataLossRecoveryAppliance(DocID1683791.2)

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

HowtoDetermineIfZDLRAIsKeepingupWithLoad• Determiningwhetherunprocessedtasklistisgrowing(over7dayperiod):

SELECT count(*) FROM ra_task

WHERE archived=‘N’;

• Determinewhetherincidentsareactivefordelaysinperformingbusywork:SELECT error_text

FROM ra_incident_log WHERE status=‘ACTIVE’

AND error_text like '%has not run%';

• Taskswithhighestnumbers(RA_TASK.PRIORITY) arebusyworktasks– DB_STATS_REFRESH,RESTORE_RANGE_REFRESH,OPT_DF,OPTIMIZE,REBUILD_INDEX,VALIDATE,CHECK_FILES,CROSSCHECK_DB

OracleConfidential– Internal 48

Problem:taskqueuegrowingovertimeAction:reviewsystemactivityreport/EM

openSR

Problem:ActiveincidentslogindicatesbusyworknotrunningAction:Reviewsystemactivityreport/EM

openSR

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ORDERING_WAITtasks

49

• Occurswhenabackuppiecewon’ttilewithexistingDeltaPools• Causes:• Unprocessedincrementalsfrompollingdirectory• Missingincrementallevel1backup• Incremental level1backuptakenagainst alevel0backupthatisnotinDeltaPool(maybeonlocalstorageinProtectedDBorreplicaorontape• Missingdatafileincarnationinformation• Unsupportedfeaturesusedinbackuppiece:

maxpiecesize,rmanencryption,datafilecopy

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ORDERING_WAITtasks-- investigating

• CurrentscriptforinvestigatingORDERING_WAITissuesisavailablefromsupportinaMOSnote:– DiagnosticSQLscriptfortasksinORDERING_WAITstatusonRecoveryAppliance(DocID2095949.1)

50

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

LostRESTORE_RANGE

• Usesofrestoreranges:– RECOVERYRANGEoutputfromEM– RA_<disk|sbt>_RESTORE_RANGEviews– UNPROTECTED_WINDOWinformationandalerts

• Forarestorerangetobevalidweneed:– Archivelogstocovertherange– ZDLRADiskfilebackupsforalldatafilesthatweretakenduringtherange– Backupofcontrolfile

51

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

DiagnosingRESTORERANGEproblems• ComparerestorerangeofZDLRAstorageagainstallstorage

select*fromra_disk_restore_rangewheredb_key=<db_key>orderbylow_time;------------------------------select*fromrc_restore_rangewheredb_key=<db_key>orderbylow_time;

• Makesurethattherestorerangehasbeenrecomputed

selectcount(*),max(completion_time)fromra_taskwheretask_type=‘RESTORE_RANGE_REFRESH’andarchived=‘Y’anddb_key=<db_key>;

• SeewhatRMANthinksaboutrecoveryofdatabase

RMAN>restorepreviewdatabase;

52

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

DiagnosingRESTORERANGEproblems(cont.)• Getlistoflogstomakesurethattheytile

selectthread#,first_change#,first_time,next_change#,next_timefromrc_backup_redologjoinrc_backup_pieceusing(bs_key,db_key)wheredb_key=<db_key>andba_access='Local'andfirst_time>sysdate-<RWG>orderbythread#,first_change#;

• Getlistofdatafilestomakesurethattheyoverlapwitharchivelogsselectfile#,checkpoint_change#,checkpoint_time,absolute_fuzzy_change#fromrc_backup_datafilejoinrc_backup_pieceusing(bs_key,db_key)wheredb_key=<db_key>andba_access='Local'orderbyfile#,checkpoint_change#;

• Getlistofcontrolfilestomakesurethatoneisusableselectc.completion_timefromrc_backup_controlfilecjoinrc_backup_pieceusing(bs_key,db_key)wheredb_key=<db_key>andba_access='Local'orderbyc.completion_time;

53

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

RecoveryApplianceBIReports• ReportsareavailabletohelptheRecoveryApplianceadministratorunderstandresourceutilization,alerts,andhistoricaloperations• Reportsexamplesinclude:– ActiveIncidents– APIHistory– CapacityPlanning– RecoveryWindowSummary– Top10DatabasesbyDataTransfer– ProtectedDatabasesDetails– ChargebackReports

54

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ProtectedDatabaseReport

Confidential– OracleInternal

Recoverabilityinformationperdatabase!

Topsectioncontainsthefollowinginformation:

- ProtectedDatabase- SpaceUsed- RPO/RecoveryWindow- UnprotectedWindow- LastBackuptime- LastTapeCopy- LastReplication

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ChargebackReport– PayasRAStorageisUtilized(Least)

• Scenario:Thinkofthisassimilartoanmeteredmodelwherethecustomeronlypaysforutilization.Thedatabasebeingprotectedischargedonlyforthespaceutilized.

• Example:A6monthretentionwouldrampupincostsinceutilizationonmonth1islowerthanmonth6.

56

ChargeforspaceasitisusedontheRecoveryAppliance

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ChargebackReport- PayasRAStorageisUtilized-cont’d

• MonthlyRAStoragespaceconsumptionforthisdatabase.

• DisplayofRAspaceusedtocalculatethechargeback.

57

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ChargebackReport- PayasRAStorageisUtilized-cont’d

• MonthlycostforthisdatabaseonRAStorage.

58

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ChargebackReport- PayasRAStorageisUtilized-cont’d

• Monthlytapestoragespaceconsumptionforthisdatabase.

59

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

ChargebackReport- PayasRAStorageisUtilized-cont’d

• Monthlycostforthisdatabaseontape.

60

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

61

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.| 62

Backup&ConfigurationOverview

• StepstoBackup&ConfigureaDatabaseusingEnterpriseManagerCloudControl– CreateProtectionPolicyonRecoveryAppliance(RA)– AddProtectedDatabasetoRA– ConfigureBackupSettingsforProtectedDatabase– ScheduleONE-TIME Level0(Full)Backupwith“CustomBackup”,thenLevel1swith“Oracle-SuggestedRecoveryApplianceBackup”

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

WhatToDoWithExistingBackups?

• RMANbackupstodiskorNFSshare(includingDataDomainshare)– CanbeimportedintotheRecoveryAppliancevia“polling”– BecomepartoftheIncrementalForeverstrategyontheRA

• Backupstakenusing3rd partybackupsoftware– LeavetheagentinplaceontheprotectedDBhostsuntilretentionexpires– Leveragedualbackup(disk &tape)strategyifneededininterim– Removingagentssavessystemresources

63

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

BackupBestPractices• UseTransparentDataEncryption(TDE)insteadofRMANencryption– RMANencryptionwillpreventZDLRAfromcreatingVirtualFullBackups(VB$).

• UsenativedatabasecompressioninsteadofRMANcompression– RMANcompressionwillresultinadditionalCPUutilizationontheProtectedDatabaseclient– RMANcompressedbackupsrequiredecompressionandrecompressionontheZDLRA

• Useblockchangetrackingforallprotecteddatabases

64

– $rmantarget<targetstring>catalog<catalogstring>backupdevicetypesbtcumulativeincrementallevel1filesperset1sectionsize64gdatabaseplusarchivelognotbackedupfilesperset32;

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

BackupBestPractices– Cont.• CreateIncrementalL0(full)asfirstbackup• CreatesubsequentCumulativeL1backups“IncrementalForever”• UseSectionSizeof64GB• Limitchannelallocationto4pernode• VirtualFullBackupCreationMonitoring– AfteraL1incrementalbackuptheRAindexesitandbuildsthecorrespondingVirtualFull.CheckEMforerrormessageslike“ORA-64760:DatabaseXYZhashadtasksinorderingwaitstateforoverXdays.”• RefertoMOSnote: DiagnosticSQLscriptfortasksinORDERING_WAITstatusonRecoveryAppliance(DocID2095949.1)

65

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Restore&RecoveryBestPractices

• WhenthereisnovalidateddisasterrecoveryplanandnoRecoveryAppliance,badthingshappen.• TrueStoryofaRestoreOperationgoneterriblywrong.– DatabaseFailureOccurs– mustberestoredfrombackup• Backupwasnotavailableondisk• Backuprestoredfromtape• Foundsometapeshadbeenexpiredbymistake– tookdaystore-scanandre-catalogthepieces• Tapelibraryhadissues– movedtapestoanotherlibrarythatwasonly1GigEconnectivity• Taperestoreswerefailingaftermanyhours– init.oraparameterwaswrong

– RTO=8daysandRPO>8hours!

WhatareyourRTOandRPOrequirements?

66

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Restore&RecoveryBestPractices– Cont.• UseRMANRestoreDatabase/RecoverDatabaseasyouwouldtoday– NonewRMANcommandstolearn.Intelligentbuilt-inrecoverycataloginRA– RMANisawareofthevalidatedbackupsondisk,tapeorreplica.Restoreistransparentandsimple– RestoredirectlyfromtapeorRAReplicawithoutstagingonlocalRAiflocaldiskbackupsarenotpresent

• Performanceconsiderations– Maximize#ofRMANchannelsforRestoreunlesstheyareotheractivedatabasesonthetarget– RestoreoperationsarealwaysautoprioritizedwithinRAwithoutpreventingotherbackupoperations– BCT:Continuebenefituntilallslotsareused.Defaultis7days.

• BigfileTablespacePracticesandConsiderations(recallbackupbestpracticeusingSECTIONSIZE)– Oracle11gdatabasescanrestoreinitialL0withSECTIONSIZEtoparallelizesectionsacrosschannels• Restoringvirtualfulls(createdfromL1s)does parallelizesections(AsofRASoftware12.1.1.1.8.201710)

– Oracle12cdatabasescanrestoreL0andvirtualfullswithSECTIONSIZEparallelismacrosschannels

67

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Agenda

68

UnderstandRequirementsFirst

RADeploymentDecisionsandKeyPractices

RARolesandResponsibilities

RAStayHealthyPlan

BestPracticesBackupandRestore

OracleSupport&ServiceRequest

1

2

3

4

5

6

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

OpeningaServiceRequest• ProactivelyupdatetheSRwithasMUCHdetailsasyoucan

***criticaltime-sensitiveinformationmightbelost!***

1. ProblemstatementwithUseCase,Timeline(beforeproblem,anychanges,whenproblemoccurs)2. ImpactAnalysis3. RefertoMOSnotes:

Ø SRDC- ZeroDataLossRecoveryAppliance(ZDLRA)DataCollection(DocID2154189.1)Ø ZeroDataLossRecoveryApplianceSystemActivityScript(DocID2275176.1)Ø ZDLRADetailedTroubleshootingMethodology(DocID2408256.1)Ø HowtocreateaTechnicalServiceRequest(SR)inMyOracleSupport(DocID1321379.1)Ø HowtoCreateServiceRequestsforSoftwareIssuesUsingaHardwareSupportIdentifier(DocID1439980.1)Ø Whotocontacttodiscussdetails,correctionsorchangestoaSupportContract(DocID1250376.1)

4. RemembertoescalateanSRwhichisnotprogressingtoyoursatisfaction.Escalationbringsmanagementattentiontotheissue.YoucanescalateanSRofanyseverity

69

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

Escalations:BringingManagementAttentiontoyourServiceRequest• AskingtoincreasetheseverityofyourservicerequestisNOT anescalation,eventhoughcustomers

followthesameprocess

• AnescalationisbringingOracleSupportManagement’sattentiontoyourservicerequest– Proactivereasonstoescalateanissue:

• CommunicatebusinessissuestomanagerswithinOracleSupport– Reactivereasonstoescalateanissue

• Encounteringcriticalroadblocks• Dissatisfiedwithresolutionorresponse

• DescribeImpactofProblem:Projectdeadlines?,LostRevenue?,Governmentreporting?IncreaseinRecoverabilityandDataLossPotential

70

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

HowtoEscalateorChangeSeverity1. Callthe24x7SupportHotline

TollFree:0800.891.5899http://www.oracle.com/support/contact.html

2. Chooseoption#1foranexistingservicerequest

3. EnteralldigitsoftheSRnumberfollowedby#

4. ChoosetheoptiontoESCALATE theSRDoNOT choosetheoptiontospeaktotheowningengineer,youwanttospeaktoanEscalationManager (formerlycalledDutyManager)inordertoescalateorchangetheseverityoftheSR.AlwaysrequestacallbackfromtheEscalationManagerwhenescalatinganSR!

• EngineeredSystemsHardwareReplacements:ChoosetheoptionforFieldDeliveryDispatchtoschedule,changeorcheckthestatusofaFieldEngineervisitforhardwarereplacement

71

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

WhenCallingforEngineeredSys.Support…

Thefollowingoptionswilldirectyourcalltotherelevantteam:• Press"1" forExistingServiceRequests– EnterServiceRequest#.Iflookupissuccessful:

– Press“1”tospeaktotheengineerworkingyourservicerequest• IfEngineerisavailable,callwillconnect• Ifengineerisnotavailable– Press“1”toleaveVMor,– Press“2“tospeaktothenextavailableEESTengineer

– IfthereisnoFSTask,press“2”toEscalate theServiceRequest– IfthereisaFStask,• Press“2”forFieldDeliveryDispatch• Press“3”forEscalation Request

• Press“2”forNewServiceRequests– Press“1”EngineeredSystems• ForTechnicalProductIssuesPress“1”• ForNon-TechnicalIssuessuchasMyOracleSupportorSupportIdentifierIssuesPress“2”

72

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

SeverityLevel Business&TechnicalImpact 1st Response UpdateFrequency Resolution

Time

1 MissionCriticalBusinessImpact <1Hour(telephonepreferred)

Continual Updates24x7 Co-Owned

2 SeriousBusinessImpact CommunicationPreference

MultipleUpdates24-48hours Co-Owned

3 MinorBusinessImpact CommunicationPreference

Updates2-3BusinessDays Co-Owned

4 NoBusinessImpact CommunicationPreference

Updates3-5BusinessDays Co-Owned

Partnership

ServiceRequestSeverityLevels

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

PlatinumSupportforRecoveryAppliance

Copyright©2017, Oracleand/oritsaffiliates.Allrightsreserved.|

OpenWorld2017PresentationsforRecoveryAppliance

• ZeroDataLossRecoveryAppliance:TheWorld'sBestDatabaseProtection• ZeroDataLossRecoveryAppliance:DeepDiveandBestPracticesfromDevelopment• OracleRecoveryManagerTipsandTricksforOn-PremisesandCloudDatabases

ZDLRADocSet:“OracleZeroDataLossRecoveryAppliance”withinhttps://docs.oracle.com/en/engineered-systems/