%3CLINGO-SUB%20id%3D%22lingo-sub-2076918%22%20slang%3D%22en-US%22%3EOracle%20Storage%20Snapshots%20with%20Azure%20Backup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2076918%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20of%20the%20biggest%20challenges%20to%20IO%20demands%20on%20an%20Oracle%20on%20Azure%20VM%20is%20when%20customers%20continue%20to%20utilize%20streaming%20backup%20technology%20like%20RMAN%20or%20import%2Fexports%20via%20DataPump%20in%20the%20cloud.%26nbsp%3B%20Although%20it%20shouldn%E2%80%99t%20come%20as%20a%20surprise%2C%20these%20two%20technologies%20can%20often%20be%20the%20biggest%20consumers%20of%20IO-%26nbsp%3B%20more%20than%20overall%20%26nbsp%3Bbatch%20or%20transactional%20processing.%3C%2FP%3E%0A%3CP%3EOne%20of%20the%20reasons%20customers%20migrate%20to%20the%20cloud%20is%20the%20benefit%20to%20share%20infrastructure%20resources%20and%20features%20at%20a%20lower%20cost%2C%20but%20with%20sharing%20those%20resources%2C%20no%20one%20wants%20to%20be%20the%20noisy%20neighbor.%26nbsp%3B%20Azure%2C%20as%20with%20other%20cloud%20providers%2C%20ensures%20that%20a%20VM%20can%E2%80%99t%20be%20the%20noisy%20neighbor%20by%20spreading%20workloads%20for%20a%20VM%20across%20hardware%20and%20setting%20limits%20per%20VM%20series%20and%20size.%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1246011586%22%20id%3D%22toc-hId-1246094450%22%3EHeavy%20Cost%20of%20Archaic%20Backups%3C%2FH1%3E%0A%3CP%3EWith%20this%20understanding%2C%20it%20is%20important%20to%20know%20that%20backups%2C%20both%20physical%20and%20logical%2C%20can%20be%20the%20main%20contributor%20to%20IO%20throttling%20on%20a%20VM.%26nbsp%3B%20When%20this%20occurs%2C%20the%20workload%20has%20hit%20the%20threshold%20for%20how%20much%20IO%20is%20allowed%2C%20either%20for%20storage%20or%20network%20and%20latency%20occurs.%26nbsp%3B%20One%20of%20the%20best%20ways%20to%20avoid%20this%20is%20to%20rethink%20how%20we%20backup%20up%20Oracle%20VMs%20in%20the%20cloud.%3C%2FP%3E%0A%3CP%3ESnapshots%20can%20be%20a%20powerful%20tool%20and%20many%20organizations%20have%20already%20embraced%20this%20technology%2C%20but%20if%20you%20have%20not%2C%20there%20are%20definite%20benefits%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EExtensively%20less%20IO%20requirements%20to%20take%20a%20storage%20level%20snapshot.%3C%2FLI%3E%0A%3CLI%3EFaster%20Recovery%20times.%3C%2FLI%3E%0A%3CLI%3ESimpler%20cloning%20process%20for%20databases%20and%20multi-tier%20environments.%3C%2FLI%3E%0A%3CLI%3EA%20cost-effective%20backup%20solution%20since%20storage%20snapshots%20are%20inherently%20incremental.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH1%20id%3D%22toc-hId--561442877%22%20id%3D%22toc-hId--561360013%22%3EAzure%20Backup%20Snapshots%20for%20Oracle%3C%2FH1%3E%0A%3CP%3EThis%20brings%20me%20to%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fupdates%2Fappconsistent-backup-for-oracle-and-mysql-dbs%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20Backups%3C%2FA%3E%20private%20preview%20for%20Oracle%20snapshots.%26nbsp%3B%20For%20those%20customers%20who%20want%20a%20single%20pane%20of%20glass%20for%20their%20backups%2C%20you%20can%20now%20use%20the%20same%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fbackup%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20backup%3C%2FA%3E%20for%20your%20Oracle%20databases%20running%20on%20IaaS%20VMs%20just%20as%20you%20do%20for%20other%20Azure%20cloud%20services.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAzure%20Backup%20for%20Oracle%20works%20with%20Oracle%2C%20setting%20the%20environment%2C%20quiescing%20the%20database%2C%20taking%20a%20snapshot%20and%20then%20releasing%20the%20database%2C%20to%20then%20complete%20the%20rest%20of%20its%20work%20behind%20the%20scenes.%26nbsp%3B%20The%20workflow%20for%20the%20backup%20pre-script%2Fsnapshot%2Fpost-script%20is%20as%20follows%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22kegorman_0-1611099406092.png%22%20style%3D%22width%3A%20611px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F247591i84DB2CF95D0D7DBE%2Fimage-dimensions%2F611x359%3Fv%3D1.0%22%20width%3D%22611%22%20height%3D%22359%22%20role%3D%22button%22%20title%3D%22kegorman_0-1611099406092.png%22%20alt%3D%22kegorman_0-1611099406092.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESnapshots%20can%20be%20configured%20on%20a%20daily%20basis%20or%20more%20often%2C%20but%20recognize%20that%20while%20the%20volume%20is%20restored%20to%20the%20time%20of%20the%20snapshot%2C%20the%20database%20remains%20in%20a%20recovery%20state%20and%20can%20be%20rolled%20forward%20using%20the%20RECOVER%20AUTOMATIC%20DATABASE%20with%20archive%20logs%20to%20any%20point%20in%20time%20to%20eliminate%20data%20loss.%26nbsp%3B%20If%20just%20using%20the%20snapshot%20to%20refresh%20a%20development%20or%20test%20environment%2C%20a%20snapshot%20recovery%20can%20be%20done%20in%20a%20matter%20of%20minutes%20to%20the%20time%20of%20the%20snapshot%2C%20refreshing%20data%20without%20the%20extensive%20time%20or%20work%20that%20is%20required%20with%20more%20traditional%20methods%20of%20cloning.%3C%2FP%3E%0A%3CP%3EOf%20course%2C%20this%20will%20require%20archive%20logs%20be%20copied%20with%20a%20custom%20solution%20to%20be%20used%20to%20recover%20if%20a%20Point%20in%20Time%2C%20(PiT)%20recovery%20is%20desired.%26nbsp%3B%20I%20haven%E2%80%99t%20met%20a%20DBA%20yet%20who%20doesn%E2%80%99t%20have%20a%20shell%20script%20or%20other%20process%20to%20copy%20their%20archive%20logs%20to%20secondary%20storage%20to%20protect%20these%20valuable%20assets%20and%20with%20Azure%20snapshots%20for%20Oracle%2C%20this%20should%20be%20an%20additional%20step%20for%20anyone%20wanting%20to%20do%20more%20than%20just%20recover%20from%20a%20snapshot%20of%20a%20volume.%26nbsp%3B%20Most%20customers%2C%20depending%20on%20the%20amount%20and%20size%20of%20archive%20logs%2C%20choose%20to%20copy%20to%20blob%2C%20NFS%20or%20AFS.%26nbsp%3B%20Without%20this%20secondary%20step%2C%20only%20the%20archive%20logs%20that%20existed%20at%20the%20time%20of%20the%20snapshot%20locally%20will%20exist%20for%20recovery%20purposes.%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1926069956%22%20id%3D%22toc-hId-1926152820%22%3EOptions%20for%20Data%20Refreshes%3C%2FH1%3E%0A%3CP%3EFor%20customers%20that%20have%20used%20Oracle%20%3CA%20href%3D%22https%3A%2F%2Fdocs.oracle.com%2Fcd%2FB19306_01%2Fserver.102%2Fb14215%2Fdp_overview.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EDatapump%3C%2FA%3E%20for%20data%20refreshes%2C%20this%20often%20required%20a%20full%20export%20of%20the%20database%20performed%20on%20a%20regular%20basis%2C%20consuming%20significant%20resources%20on%20a%20cloud%20VM.%26nbsp%3B%20With%20an%20Azure%20backup%20snapshot%20of%20the%20storage%2C%20a%20clone%20can%20be%20created%20and%20using%20this%20clone%2C%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.oracle.com%2Fcd%2FB10501_01%2Fserver.920%2Fa90842%2Fapb.htm%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Eobject%20copy%3C%2FA%3E%20can%20be%20performed%20instead%20of%20standard%20datapump%20export%2Fimport.%26nbsp%3B%20This%20can%20also%20be%20used%20to%20perform%20a%20transportable%20tablespace%20import%20without%20the%20resource%20demands%20to%20preemptively%20export%20data%20every%20night%20from%20the%20database%2C%20freeing%20up%20resources%20for%20batch%20and%20transaction%20processing.%3C%2FP%3E%0A%3CP%3EWith%20this%20shift%2C%20there%20is%20less%20worry%20about%20having%20to%20scale%20up%20a%20VM%20unless%20its%20for%20right%20reasons-%26nbsp%3B%20like%20due%20to%20data%20acquisition%20or%20business%20and%20revenue%20increase.%26nbsp%3B%20Costs%20are%20decreased%20on%20the%20storage%20side%20that%20were%20once%20used%20by%20physical%20datafile%20copies%20in%20exchange%20for%20snapshots%2C%20which%20on%20average%20use%20considerably%20less%20storage%20space.%26nbsp%3B%20When%20focusing%20on%20Oracle%2C%20backup%20storage%20can%20be%20important%20as%20these%20databases%20are%20often%20some%20of%20the%20largest%20in%20the%20relational%20database%20world.%3C%2FP%3E%0A%3CP%3EIf%20you%E2%80%99d%20like%20to%20learn%20more%20about%20using%20Azure%20Backup%20to%20take%20snapshots%20of%20Oracle%20workloads%20on%20Azure%2C%20check%20out%20the%20following%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fupdates%2Fappconsistent-backup-for-oracle-and-mysql-dbs%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elink.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2076918%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20of%20the%20biggest%20challenges%20to%20IO%20demands%20on%20an%20Oracle%20on%20Azure%20VM%20is%20when%20customers%20continue%20to%20utilize%20streaming%20backup%20technology%20like%20RMAN%20or%20import%2Fexports%20via%20DataPump%20in%20the%20cloud.%26nbsp%3B%20%26nbsp%3BWhy%20not%20ease%20the%20demands%20by%20using%20snapshots-%26nbsp%3B%20Azure%20Backup%20Snapshots%20for%20Oracle!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2076918%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EData%20Architecture%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EData%20Solution%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Microsoft

One of the biggest challenges to IO demands on an Oracle on Azure VM is when customers continue to utilize streaming backup technology like RMAN or import/exports via DataPump in the cloud.  Although it shouldn’t come as a surprise, these two technologies can often be the biggest consumers of IO-  more than overall  batch or transactional processing.

One of the reasons customers migrate to the cloud is the benefit to share infrastructure resources and features at a lower cost, but with sharing those resources, no one wants to be the noisy neighbor.  Azure, as with other cloud providers, ensures that a VM can’t be the noisy neighbor by spreading workloads for a VM across hardware and setting limits per VM series and size. 

Heavy Cost of Archaic Backups

With this understanding, it is important to know that backups, both physical and logical, can be the main contributor to IO throttling on a VM.  When this occurs, the workload has hit the threshold for how much IO is allowed, either for storage or network and latency occurs.  One of the best ways to avoid this is to rethink how we backup up Oracle VMs in the cloud.

Snapshots can be a powerful tool and many organizations have already embraced this technology, but if you have not, there are definite benefits:

  1. Extensively less IO requirements to take a storage level snapshot.
  2. Faster Recovery times.
  3. Simpler cloning process for databases and multi-tier environments.
  4. A cost-effective backup solution since storage snapshots are inherently incremental.

Azure Backup Snapshots for Oracle

This brings me to Azure Backups private preview for Oracle snapshots.  For those customers who want a single pane of glass for their backups, you can now use the same Azure backup for your Oracle databases running on IaaS VMs just as you do for other Azure cloud services. 

Azure Backup for Oracle works with Oracle, setting the environment, quiescing the database, taking a snapshot and then releasing the database, to then complete the rest of its work behind the scenes.  The workflow for the backup pre-script/snapshot/post-script is as follows:

kegorman_0-1611099406092.png

 

Snapshots can be configured on a daily basis or more often, but recognize that while the volume is restored to the time of the snapshot, the database remains in a recovery state and can be rolled forward using the RECOVER AUTOMATIC DATABASE with archive logs to any point in time to eliminate data loss.  If just using the snapshot to refresh a development or test environment, a snapshot recovery can be done in a matter of minutes to the time of the snapshot, refreshing data without the extensive time or work that is required with more traditional methods of cloning.

Of course, this will require archive logs be copied with a custom solution to be used to recover if a Point in Time, (PiT) recovery is desired.  I haven’t met a DBA yet who doesn’t have a shell script or other process to copy their archive logs to secondary storage to protect these valuable assets and with Azure snapshots for Oracle, this should be an additional step for anyone wanting to do more than just recover from a snapshot of a volume.  Most customers, depending on the amount and size of archive logs, choose to copy to blob, NFS or AFS.  Without this secondary step, only the archive logs that existed at the time of the snapshot locally will exist for recovery purposes.

Options for Data Refreshes

For customers that have used Oracle Datapump for data refreshes, this often required a full export of the database performed on a regular basis, consuming significant resources on a cloud VM.  With an Azure backup snapshot of the storage, a clone can be created and using this clone, an object copy can be performed instead of standard datapump export/import.  This can also be used to perform a transportable tablespace import without the resource demands to preemptively export data every night from the database, freeing up resources for batch and transaction processing.

With this shift, there is less worry about having to scale up a VM unless its for right reasons-  like due to data acquisition or business and revenue increase.  Costs are decreased on the storage side that were once used by physical datafile copies in exchange for snapshots, which on average use considerably less storage space.  When focusing on Oracle, backup storage can be important as these databases are often some of the largest in the relational database world.

If you’d like to learn more about using Azure Backup to take snapshots of Oracle workloads on Azure, check out the following link.