partner webcast – enterprise database backup on oracle cloud

64

Upload: oracleimc-innovation-modernization-center

Post on 16-Apr-2017

454 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Partner Webcast – Enterprise Database Backup on Oracle Cloud
Page 2: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Database Backup Service Simplify And Lower The Cost Of Protecting Oracle Databases

Yasin Saygılı IMC Consultant Oracle Database High Availability

2

Page 3: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Safe Harbor Statement

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.

3

Page 4: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Topics

1. Traditional Tiered Storage for Backups

2. Oracle Database Backup Service

1. Cloud Side: Database Back Services Options

2. Client Side: Cloud Backup Module (RMAN Plugin)

3. Demo

4. Best Practices

5. Q&A

4

Page 5: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Traditional Database Backup Best Practices

• Local disk backups

• Short term retention

– Example: 7 days

• Quickest RTO

– Image copy

– Backup Sets

• Storage tier based on data value & retention requirements

– Disk-to-Disk (Ex: 30 days)

– Disk-to-Tape (Ex: 90 days)

– Disk-to-Disk-to-Tape (EX:7-30-90 days)

• Tapes physically shipped to offsite (Tape Vaulting)

• Long term retention & Archiving (Ex: 5 yrs)

• Compliance, Regulatory & DR purposes

Local Backups On-site Tiered Storage Off-site Storage

5

Page 6: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cost

Incurs capital expenditure to procure, higher operation cost to manage onsite & offsite storage infrastructure

Capacity

With explosive data growth, storage capacity planning for the long term retention is a challenge

Accessibility

With Tape-vaulting, offsite data is not immediately accessible

Infrastructure

Not everyone has tape infrastructure or remote (DR) site for taking backups and to store offsite

6

Challenges with Long-Term / Offsite Storage for Backups

Cloud Storage provides a great alternative !!

Page 7: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud Infrastructure for Backup & Archive – Top Preference

7

Page 8: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud Infrastructure for Backup & Archive – Top Preference

8

43%

40%

39%

36%

32%

32%

30%

30%

30%

26%

25%

Data Backup and Archive

Test and Development

Disaster Recovery

Primary Storage for Files

Business Intelligence / Analytics

Run Intrenally / Externally-facing Web servers

Additional Resource to Accommodate Spikes in Workload

Use as Temporary Compute Resources for Time-limited …

Run Internal Production Application

Use for High Performance and / or Scientific Computing …

Application Bursting

For which of the following purposes does / did your organization use cloud infrastructure services? (Percent of respondents, N = 256, multiple responses accepted)

Source: Enterprise Strategy Group, 2014

Page 9: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Database Backup Service

A PaaS Offering

9

Page 10: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud

Databases

Oracle Cloud

Oracle Database Backup Cloud Service (PaaS)

Backup on-premise or cloud databases to Oracle Cloud

Cost effective, scalable cloud storage for database backups (10.2 and above)

End-to-end enterprise-grade data encryption, compression and protection

• Clients: Data is always encrypted with keys kept locally at client, optionally compressed, and securely transmitted

• Cloud: Encrypted data is protected with 3-way mirroring on every write

10

Offsite Backups with Simple and Low Cost Cloud Storage

https://cloud.oracle.com/database_backup

On-Premises Oracle Database

Backup Service

Page 11: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Object Storage

Archive Storage

Database Backup

Oracle Storage Cloud Services

Bulk Data Transfer Services

Software Appliance

NFS

11

Storing non-Database Data

Super low-cost Long Term Retention

Database Backups (PaaS)

Gateway with Local Copy

One time large data load

Oracle Confidential – Internal/Restricted/Highly Restricted

Page 12: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database Backup Service: Benefits Offsite Cloud Storage for Oracle Database Backups

Instant Offsite Storage

Cost Effective

On-demand Scalability

End-to-End Security

Encryption

Compression

3-Way Protection

24x7 Data Availability

Oracle Database Backup Service

Oracle DBaaS and Exadata Cloud Service

On-Premises Databases 10.2 and above

Platform as a Service

Oracle Confidential – Internal/Restricted/Highly Restricted 12

Page 13: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database Backup Service: Architecture

13

Client Side Cloud Side

Page 14: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database Backup

Non-Metered (Classic/Subscription)

• All inclusive fixed price @ $33/TB/month • Standalone - Classic (or) combined with

DBCS non-metered services (Subscription) • Month-to-month or longer • Trial : Storage Cloud / 10GB

Subscription includes cloud storage, RMAN Module, RMAN Encryption, RMAN Compression and support

14

Oracle Database Backup Service – Subscription Models

Database Cloud

Metered Model (DBMB)

• Pay-per-use ($/GB) + Transfer & Request charges* • Cannot be sold separately • Included with Metered DBCS Subscription • Use with DBaaS / Exadata Cloud or from on-prem • 1 Year or longer term • Trial: DBCS / 500GB

* Metering is done only for capacity today.

Page 15: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud : Database Backup Service

• Storage capacity subscription in the Oracle cloud for storing Database Backups

• Object Storage powered by OpenStack “Swift” based infrastructure

• Highly scalable infrastructure

• Data is protected with 3-way mirroring on different storage nodes on every write

• Data centers

• Terminologies

– Identity Domain: Domain in which the service will be provisioned

– Service Name: Service name. By default ‘Storage’ for non-metered

– Container: User created resource to hold objects

– Objects: Actual files (chunks of backup pieces) that are stored

15

Oracle

Database

Backup Service

Identity Domain

Service Name

Container_1 Container_2

obj1 obj2 obj1 obj2

Example:

https://storage.us2.oraclecloud.com/v1/myServic

e-myIdentityDomain/container/object

Page 16: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud: Object Storage Details after Subscription

• Subscribe for the backup service

– Identity Domain

– Service Name (Storage)

– User ID

– Password

• Container is created

– Automatically or by the user

• Objects are created under the container

• Cloud access only via port 443 (SSL)

• Terminology

– Objects – Logical representation of stored binary data

– Containers – A named collection of objects

• Basics

– Objects are referenced by their canonical URL paths

• Protocol: HTTPS

• End Point:

https://<identitydomain>.storage.oracleclou

d.com

• Path: /v1/<ServiceName>-

<IdentityDomain>/<container-name>/<object-

name>

– Objects must reside within a Container

– Containers cannot be nested

– Objects and Containers can have arbitrary key/value properties

– Uploads are limited to 5GB but Objects can be any size

Page 17: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Client Side: Cloud Backup Module (RMAN Plugin) • Recovery Manager (RMAN) interface for backup & recovery

operation to Oracle Database Backup Service

• Download the RMAN plugin installer from OTN

• RMAN to be configured to use Oracle Cloud SBT library (libopc.so)

• Oracle Wallet is automatically created to store certificate & credentials

• RMAN plugin module operation:

– RMAN backup pieces streamed via the cloud module

– Cloud module only allows transmission if the backup is RMAN encrypted

Oracle Database Cloud Backup Module

Databases 10.2 & above

RMAN encryption & optional compression

Oracle Database Backup Service HTTPS

17

Page 18: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Client: Database Cloud Backup Module Backup Data Cloud Objects

• RMAN streams backup data to the cloud via RMAN cloud module

• Cloud module chunks backup pieces into (100MB) and ships to the cloud

– Failed transmissions are retried automatically

– Multiple buffers (RMAN Channels) for parallelism

• Each chunk is stored as an object inside the ODBS user container

• Uses REST API calls – PUT,GET, POST, HEAD & DELETE over HTTPS

• Typical URL formation for every object – http://<identitydomain>.storage.oraclecloud.com/v1/<service>-

<domain>/<container>/<piece name>/<unique ID>/0000001, 0000002 ..

– Default container name : “oracle-data-[first 8 chars of service & domain]

– Creates manifest XML files in the cloud for metadata

DB Backup

Oracle RMAN

Oracle Database Cloud Backup Module

Customer data center

Page 19: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Client: Required Configuration Files for Cloud Backups File name Location / Creation Purpose

libopc.so User specified library location. Downloaded by the installer. SBT library which enables backup to Oracle Cloud

opc<SID>.ora Configured by the installer under $ORACLE_HOME/dbs Contains ODBS container URL location for the user and also the ODBS credential wallet location

cwallet.sso User specified wallet location during the RMAN module

installation. Oracle wallet which securely stores backup service credentials. This is used during RMAN backups and restore operations .

Wallet for encryption

(optional – only needed for TDE )

Either $ORACLE_BASE /admin/$ORCLE_SID /wallet (or) defined in sqlnet.ora / Existing wallet

Used for backup encryption. Existing Oracle wallet can be used (or) new Oracle wallet can be created using many methods.

Page 20: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Client: OPC Configuration File Run time configurations ($ORACLE_HOME/opc<sid>.ora)

Parameter Name Description

OPC_HOST REST destination URL Ex: https://mydomain.storage.orclecloud.com/v1/myservice-mydomain

OPC_WALLET OPC credential wallet location Ex: ‘LOCATION=file:/home/oracle/OPC/wallet CREDENTIAL_ALIAS=odbs_opc’

OPC_CONTAINER User specified container name Ex:PAYROLL_DB (Customer need to create that using tools like cloudberry until Oracle Cloud has GUI)

OPC_CHUNK_SIZE Specified in bytes. By default, 100MB. Not recommended to change.

_OPC_TRACE_LEVEL For debug purposes only. Set this parameter to – say 100 which generates more trace information in sbtio.log.

Page 21: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Client: RMAN Operations Supported with Cloud Backups All Typical BACKUPSET Operations

Database (Backupset)

• BACKUPSET Backups

• Full Database

• Selected Tablespace(s)

• Selected Data Files

• Incremental – Differential

• Incremental – Cumulative

• Compressed

• Encrypted

Backups From Fast Recovery Area

• Image Copies

• Archived logs

• Compressed

• Encrypted backup sets

Restore from Cloud

• Full Database

• Tablespace

• Datafile

• Table Recovery (12c)

• Block Recovery

Maintenance

• Retention Period

• Crosscheck

• Obsolete

• Delete Obsolete

• Delete Backups

21

Page 22: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

• RMAN Compression – Optional

• 10g: BASIC

• 11g and above: HIGH, BASIC, MEDIUM,LOW

– MEDIUM recommended

– No ACO licensing required

CONFIGURE COMPRESSION ALGORITHM ‘MEDIUM’;

BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG;

• RMAN Encryption – Mandatory

– Password, Transparent Data Encryption (TDE), Dual-Mode

– No ASO licensing required

– Keys are kept local (not in the storage cloud)

– If TDE is used (preferred), then simply use SET ENCRYPTION ON before backups and restores

– For password encryption:

SET ENCRYPTION ON IDENTIFIED BY ‘<password>’ ONLY;

– Before doing restore,

SET DECRYPTION IDENTIFIED BY ‘<password>’;

Client: RMAN Compression and Encryption

22

Page 23: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Backup Service: End-to-End Flow Simple 4-Step Process

• Storage Capacity

• Identity Domain

• Service Name

• User ID/Password

Cloud Subscription & Activation

• Download & Execute Installer

• Library module installed along with config file & wallet

Install RMAN Module • Tape Interface

• Encryption

• Compression

• Parallelism

Configure RMAN

• RMAN Interface

• Full & Incremental backups

• Restore & Recovery

Perform Backup & Recovery

Oracle Confidential – Internal/Restricted/Highly Restricted 23

Page 24: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Example: End-To-End Flow

Recovery Manager

RMAN Cloud

Module*

Oracle Wallet*

OPC Config File*

Oracle

Database

Backup Cloud

Service

Database, FRA

opc_host=https://odbs-dom.

Storage.oraclecloud.com/odbs_svc-

odbs_dom

opc_wallet='location=file:/abc/opcwlt‘

opc_container=‘myContainer’

$ rman target /

RMAN> CONFIGURE CHANNEL DEVICE TYPE SBT PARMS='SBT_LIBRARY=

/opc/libopc.so’ , SBT_PARMS=(OPC_PFILE=/opc/opcSID.ora)';

RMAN> CONFIGURE DEVICE TYPE SBT PARALLELISM 8;

RMAN> SET ENCRYPTION ON IDENTIFIED BY “mypwd” ONLY;

RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS

ARCHIVELOG;

* Configured during database backup cloud module install procedure

On-Premises

HTTPS over WAN

24

Page 25: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Support Matrix

Database / Features Supported Versions / Options

Oracle Database – Enterprise Edition* 10.2.0.5, 11.1,11.2, 12c (64 bits)

Oracle Database – SE/SE1/SE2* 10.2.0.5, 11.1.0.7, 11.2.0.3, and versions 11.2.0.4 and above

Platforms (64 bits) Linux, Solaris, SPARC, Windows, HP-UX, AIX, zLinux

RMAN Compression (Included) HIGH, MEDIUM, BASIC, LOW (depends on DB version)

RMAN Encryption (Included) Password, TDE, Dual-mode

* Older Database versions no longer supported by Oracle are in deprecated mode

25

Page 26: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

UI Management for Backup & Recovery

26

Enterprise Manager 13c

• Oracle Cloud as a backup destination

• Configure, schedule, B&R

RMAN CLI

• Perform complex operations via scripting

$ rman target /

RMAN> CONFIGURE CHANNEL DEVICE TYPE

SBT PARMS='SBT_LIBRARY=

/opc/libopc.so’ ,

SBT_PARMS=(OPC_PFILE=/opc/opcSID.or

a)';

RMAN> CONFIGURE DEVICE TYPE SBT

PARALLELISM 8;

RMAN> SET ENCRYPTION ON IDENTIFIED

BY “mypwd” ONLY;

RMAN> BACKUP AS COMPRESSED

BACKUPSET DATABASE PLUS ARCHIVELOG;

Cloudberry Lab

• Simple UI to perform backup & recovery operations

3rd Party Application Support In the Roadmap:

Page 27: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Backup to Oracle Cloud: Few Use Cases

• Instantaneous low-cost offsite elastic storage tier – without any CAPEX

• Offsite backups to protect from site failures

• Customers who don’t have tape infrastructure

• Customers looking for alternative to tape vaulting

• Backups for low tier databases which may not have any backup strategy

• Test & dev deployment in Oracle DBaaS using cloud backups

• DR to cloud using backups in the cloud

28

Page 28: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Database Backup Service

Getting started backing up on the cloud using Oracle Database Backup Cloud Service

Oracle Confidential – Internal/Restricted/Highly Restricted 30

Page 29: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Demo: Oracle Database Backup Service 4 Simple Steps

Oracle Confidential – Internal/Restricted/Highly Restricted 31

1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery

Page 30: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Demo: Step #1

Oracle Confidential – Internal/Restricted/Highly Restricted 32

1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery

• Subscribe Oracle Database Backup Service (or)

• Sign-up for a Trial

Page 31: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Option #1: Purchase Oracle Database Backup Service

https://shop.oracle.com/

Page 32: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Option #2: Sign-up for a Trial https://cloud.oracle.com/database_backup

34

Page 33: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Option #2: Sign-up for a Trial – Contd. https://cloud.oracle.com/database_backup

35

Page 34: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Option #2: Sign-up for a Trial – Non-Metered Contd..

36

Page 35: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Add Users & Assign Roles

• Add more users

• Add Storage Administrator & Storage Read-Write Group roles

• Use that account information during client side RMAN module installation

Oracle Confidential – Internal/Restricted/Highly Restricted 37

Page 36: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Cloud Service Portal

38

Page 37: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 39

1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery

• Download the Installer from OTN

• Install the module

Demo: Step #2

Page 38: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Download Oracle Database Cloud Backup Module from OTN

40

Page 39: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Run the Installer and Configure RMAN (Video)

41

Page 40: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Run the Installer

[oracle@localhost OPC] unzip opc_installer.zip

[oracle@localhost OPC] ls opc*

opc_install.jar opc_readme.txt

[oracle@localhost OPC]$ java -jar opc_install.jar -serviceName myService –identityDomain myDomain -opcid

[email protected] -opcPass ’myPassword' -libDir /home/oracle/OPC/lib -walletDir /home/oracle/OPC/wallet

Oracle Database Cloud Backup Module Install Tool, build 2015-05-12

Oracle Database Cloud Backup Module credentials are valid.

Oracle Database Cloud Backup Module wallet created in directory /home/oracle/OPC/wallet.

Oracle Database Cloud Backup Module initialization file /u01/products/db/12.1/dbs/opcodbs.ora created.

Downloading Oracle Database Cloud Backup Module Software Library from file opc_linux64.zip.

Downloaded 23169388 bytes in 152 seconds. Transfer rate was 152430 bytes/second.

Download complete.

42

Page 41: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Demo: Step #3

Oracle Confidential – Internal/Restricted/Highly Restricted 43

1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery

• Configure RMAN to use SBT Library, configure Parallelism etc.

Page 42: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

RMAN Configuration

$ rman target /

Recovery Manager: Release 12.1.0.1.0 - Production on Sun Sep 13 09:41:08 2015

Copyright (c) 1982, 2013, Oracle and/or its affiliates. All rights reserved.

connected to target database: odbs (DBID=2636081010, open)

RMAN>CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'SBT_LIBRARY=/home/oracle/OPC/lib/ libopc.so, ENV=(OPC_PFILE=/u01/products/db/12.1/dbs/opcodbs.ora)';

RMAN> CONFIGURE COMPRESSION ALGORITHM 'MEDIUM’;

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;

RMAN> CONFIGURE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 BACKUP TYPE TO BACKUPSET;

RMAN> SHOW ALL;

44

Page 43: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Demo: Step #4

Oracle Confidential – Internal/Restricted/Highly Restricted 45

1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery

• Perform Backup to Oracle Cloud

• Simulate accidental deletion of data files

• Restore and recovery from Cloud

• Open the database

Page 44: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perform RMAN Backups

RMAN> SET ENCRYPTION ON IDENTIFIED BY 'abc123' ONLY;

executing command: SET encryption

RMAN> BACKUP DEVICE TYPE SBT AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG FORMAT '%d_%U';

Starting backup at 13-SEP-15

current log archived

released channel: ORA_DISK_1

released channel: ORA_DISK_2

released channel: ORA_DISK_3

released channel: ORA_DISK_4

released channel: ORA_DISK_5

released channel: ORA_DISK_6

released channel: ORA_DISK_7

released channel: ORA_DISK_8

allocated channel: ORA_SBT_TAPE_1

channel ORA_SBT_TAPE_1: SID=42 device type=SBT_TAPE

channel ORA_SBT_TAPE_1: Oracle Database Backup Service Library VER=3.15.1.16

46

Page 45: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perform RMAN Backups Contd..

Starting backup at 13-SEP-15

current log archived

using channel ORA_SBT_TAPE_1

using channel ORA_SBT_TAPE_2

using channel ORA_SBT_TAPE_3

using channel ORA_SBT_TAPE_4

channel ORA_SBT_TAPE_1: starting compressed archived log backup set

channel ORA_SBT_TAPE_1: specifying archived log(s) in backup set

input archived log thread=1 sequence=8 RECID=24 STAMP=890304635

channel ORA_SBT_TAPE_1: starting piece 1 at 13-SEP-15

channel ORA_SBT_TAPE_1: finished piece 1 at 13-SEP-15

piece handle=ODBSLAB_2lqh1u3s_1_1 tag=TAG20150913T105035 comment=API Version 2.0,MMS Version 3.15.1.16

channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:04:05

Finished backup at 13-SEP-15

Starting Control File and SPFILE Autobackup at 13-SEP-15

piece handle=c-2636081010-20150913-00 comment=API Version 2.0,MMS Version 3.15.1.16

Finished Control File and SPFILE Autobackup at 13-SEP-15

47

Page 46: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Confirm Backup Information

RMAN> LIST BACKUP;

BS Key Type LV Size Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

48 Full 42.75M SBT_TAPE 00:01:35 13-SEP-15

BP Key: 48 Status: AVAILABLE Compressed: YES Tag: TAG20150913T104509

Handle: 2iqh1tpm_1_1 Media: myDomain.storage.oraclecloud.com/v1/myService-usoraclei

List of Datafiles in backup set 48

File LV Type Ckp SCN Ckp Time Name

---- -- ---- ---------- --------- ----

2 Full 785064 13-SEP-15 /u01/products/oradata/odbslab/sysaux01.dbf

BS Key Type LV Size Device Type Elapsed Time Completion Time

------- ---- -- ---------- ----------- ------------ ---------------

49 Full 59.00M SBT_TAPE 00:05:23 13-SEP-15

BP Key: 49 Status: AVAILABLE Compressed: YES Tag: TAG20150913T104509

Handle: 2hqh1tpm_1_1 Media: myDomain.storage.oraclecloud.com/v1/myService-usoraclei

RMAN> RESTORE VALIDATE;

48

Page 47: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Simulate Physical Corruption (Accidental Deletion)

[oracle@localhost odbs]$ ls -l

total 1025880

-rw-r-----. 1 oracle users 10043392 Sep 13 11:04 control01.ctl

-rw-r-----. 1 oracle users 52429312 Sep 13 11:02 redo01.log

-rw-r-----. 1 oracle users 52429312 Sep 13 10:50 redo02.log

-rw-r-----. 1 oracle users 293609472 Sep 13 11:01 sysaux01.dbf

-rw-r-----. 1 oracle users 377495552 Sep 13 11:00 system01.dbf

-rw-r-----. 1 oracle users 20979712 Sep 13 10:21 temp01.dbf

-rw-r-----. 1 oracle users 256909312 Sep 13 11:01 undotbs01.dbf

-rw-r-----. 1 oracle users 5251072 Sep 13 10:55 users01.dbf

[oracle@localhost odbs]$ rm *.dbf

[oracle@localhost odbs]$ ls -l

total 112216

-rw-r-----. 1 oracle users 10043392 Sep 13 11:04 control01.ctl

-rw-r-----. 1 oracle users 52429312 Sep 13 11:02 redo01.log

-rw-r-----. 1 oracle users 52429312 Sep 13 10:50 redo02.log

49

Page 48: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Start the Database

[oracle@localhost odbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Sun Sep 13 11:06:05 2015

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup

ORACLE instance started.

Total System Global Area 835104768 bytes

Fixed Size 2293880 bytes

Variable Size 612372360 bytes

Database Buffers 218103808 bytes

Redo Buffers 2334720 bytes

Database mounted.

ORA-01157: cannot identify/lock data file 1 - see DBWR trace file

ORA-01110: data file 1: '/u01/products/oradata/odbs/system01.dbf'

50

Page 49: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perform RMAN RESTORE

RMAN> SET DECRYPTION IDENTIFIED BY 'abc123';

executing command: SET decryption

using target database control file instead of recovery catalog

RMAN> RESTORE DATABASE;

Starting restore at 13-SEP-15

allocated channel: ORA_SBT_TAPE_1

channel ORA_SBT_TAPE_1: SID=22 device type=SBT_TAPE

channel ORA_SBT_TAPE_1: Oracle Database Backup Service Library VER=3.15.1.16

allocated channel: ORA_SBT_TAPE_2

channel ORA_SBT_TAPE_2: SID=19 device type=SBT_TAPE

channel ORA_SBT_TAPE_2: Oracle Database Backup Service Library VER=3.15.1.16

allocated channel: ORA_SBT_TAPE_3

channel ORA_SBT_TAPE_3: SID=23 device type=SBT_TAPE

channel ORA_SBT_TAPE_3: Oracle Database Backup Service Library VER=3.15.1.16

allocated channel: ORA_SBT_TAPE_4

channel ORA_SBT_TAPE_4: SID=24 device type=SBT_TAPE

51

Page 50: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perform RMAN RESTORE Contd..

channel ORA_SBT_TAPE_1: starting datafile backup set restore

channel ORA_SBT_TAPE_1: specifying datafile(s) to restore from backup set

channel ORA_SBT_TAPE_1: restoring datafile 00004 to /u01/products/oradata/odbs/users01.dbf

channel ORA_SBT_TAPE_1: reading from backup piece 2kqh1tpm_1_1

channel ORA_SBT_TAPE_2: starting datafile backup set restore

channel ORA_SBT_TAPE_2: specifying datafile(s) to restore from backup set

channel ORA_SBT_TAPE_2: restoring datafile 00003 to /u01/products/oradata/odbs/undotbs01.dbf

channel ORA_SBT_TAPE_4: restoring datafile 00001 to /u01/products/oradata/odbs/system01.dbf

channel ORA_SBT_TAPE_4: reading from backup piece 2hqh1tpm_1_1

channel ORA_SBT_TAPE_1: piece handle=2kqh1tpm_1_1 tag=TAG20150913T104509

channel ORA_SBT_TAPE_1: restored backup piece 1

channel ORA_SBT_TAPE_1: restore complete, elapsed time: 00:00:15

channel ORA_SBT_TAPE_2: piece handle=2jqh1tpm_1_1 tag=TAG20150913T104509

channel ORA_SBT_TAPE_2: restored backup piece 1

channel ORA_SBT_TAPE_4: piece handle=2hqh1tpm_1_1 tag=TAG20150913T104509

channel ORA_SBT_TAPE_4: restored backup piece 1

channel ORA_SBT_TAPE_4: restore complete, elapsed time: 00:06:05

Finished restore at 13-SEP-15

52

Page 51: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Perform RMAN Recovery

RMAN> RECOVER DATABASE;

Starting recover at 13-SEP-15

using channel ORA_SBT_TAPE_1

using channel ORA_SBT_TAPE_2

using channel ORA_SBT_TAPE_3

using channel ORA_SBT_TAPE_4

using channel ORA_DISK_1

using channel ORA_DISK_2

using channel ORA_DISK_3

using channel ORA_DISK_4

using channel ORA_DISK_5

using channel ORA_DISK_6

using channel ORA_DISK_7

using channel ORA_DISK_8

starting media recovery

media recovery complete, elapsed time: 00:01:12

53

Page 52: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Open the Database

RMAN> alter database open;

Statement processed

RMAN> select name, open_mode from v$database;

NAME OPEN_MODE

--------- --------------------

odbs READ WRITE

RMAN> select name from v$datafile;

NAME

--------------------------------------------------------------------------------

/u01/products/oradata/odbs/system01.dbf

/u01/products/oradata/odbs/sysaux01.dbf

/u01/products/oradata/odbs/undotbs01.dbf

/u01/products/oradata/odbs/users01.dbf

54

Page 53: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Monitor the Storage Usage in the Cloud Service Dashboard

55

Page 54: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Database Backup Service: DEMO Summary

Easy to deploy

Easy to Backup & Restore

No new commands to learn

Up and running in no time

56

Page 55: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Database Backup Service Summary

Page 56: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

In the Cloud: Oracle Database as a Service Backup and Recovery

• DBaaS Backup Options

– Block Only (local FRA)

– Block (FRA) + Object Storage (Cloud Backup)

– None (No Backups)

• Automated RMAN backups

– Weekly Full

– Daily Incremental

– 7 days on local + 30 days on object storage

– Local backups go to /u03 Block Storage

• Manual RMAN backups

$ /var/opt/oracle/bkup_api/bkup_api bkup_start

• On-demand full / PIT recovery

$ dbaascli orec --args -pitr TAG20150916T153521

58

Oracle Compute Block Storage Oracle Storage

Cloud (ODBS)

Oracle VM – Oracle Linux

RDBMS

Compute Infrastructure

Archives

RMAN

Oracle REST

Data Services

Cloud Utilities &

EM Express

/u03 /u02 /u01

https://docs.oracle.com/cloud/latest/dbcs_dbaas/CSDBI/GUID-0864AA36-

8FE4-4D62-9F18-A0550D4BC89B.htm#CSDBI3342

Page 57: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Backup to Cloud: Best Practices

Backup Service (Cloud)

• Make sure you subscribed for proper capacity (unmetered)

• Check for network throughput (Trials)

• For Metered Subscription, you have to create a Container to be used with DBaaS

• One container is enough to store multiple database backups

• Create additional containers if needed

Database Backup Strategy

• Consider size of databases and match with RTO/RPO SLAs for the backup strategy

• Perform weekly full + daily incremental to cloud

• Image copies to FRA Cloud

• Periodically run CROSSCHECK, VALIDATE and DELETE OBSOLETE

• Encryption: RMAN Encryption is mandatory (TDE, Password or Dual-mode)

• Don’t use CURL to manipulate RMAN backups

Optimizing Backups

• Compression: MEDIUM compression is recommended to reduce the size for optimal transfers

• Use Multisection backups (SECTION SIZE..)

• Try increasing RMAN PARALLELISM until you saturate the network throughput

• Try tuning TCP Buffer size to a larger value (1MB)

59

Page 58: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Considerations & Upcoming Enhancements

60

Considerations

• RTO and RPO requirements for each database

• Public network bandwidth availability

• Size of the database(s) to backup

• Choosing cloud as the proper storage tier for each database

• For non-Oracle Database backups like ORACLE_HOME, use Oracle Storage Cloud

Upcoming Enhancements

• Low latency / High bandwidth connectivity

• Backup via on-premises NAS Gateway to Oracle Cloud

• Integration with Enterprise Manager

• Integration with Archive Service

• and many more..

Page 59: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Reference

• Database Backup Service

– https://cloud.oracle.com/database_backup

• Click “Learn More” tab for all collateral (White paper, eBook, Data Sheet, Backup Module URL, FAQ)

– Documentation: http://docs.oracle.com/cloud/latest/dbbackup_gs/index.html (or) https://docs.oracle.com/cloud/latest/dbbackup_gs/CSDBB/toc.htm

• Cloud Database as a Service (https://cloud.oracle.com/database)

– Documentation (http://docs.oracle.com/cloud/latest/dbcs_dbaas/index.html)

• Storage Cloud Service (https://cloud.oracle.com/storage)

– Documentation (http://docs.oracle.com/cloud/latest/storagecs_common/index.html)

• Generic Recovery Manager (RMAN) for white papers, best practices, demos

– http://oracle.com/goto/rman

– http://oracle.com/goto/maa

61

@OracleCloudHAPM

Page 60: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Summary: Why Backup to Oracle Cloud?

62

Low Cost

Instantaneously Provisioned

End-to-End Security

Customer Managed Keys

Availability

Scalability / Elastic Storage

Single Vendor Support On-prem to Cloud

RECOVERY MANAGER

Familiar Backup & Recovery Interface

Page 61: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Q&A

63

Yasin Saygili Oracle ISV Migration Center Consultant [email protected] ISV Migration Center blog: http://blogs.oracle.com/imc ISV Migration Center email: [email protected]

Page 62: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |

Oracle Partner Hub ISV Migration Center

Oracle.com Partner Hub

Team Info, Events/Activities Schedule, etc

Migration Center Team Blog

Webcasts, Howto, Demos, Guides, etc Youtube: OracleIMCteam

Slideshare: Oracle_IMC_team

twitter.com/OracleIMC

plus.google.com/+OracleIMC

facebook.com/OracleIMC

linkedin.com/groups/Oracle-Partner-Hub-Migration-Center-4535240

feeds.feedburner.com/oracleimc

[email protected]

Page 63: Partner Webcast – Enterprise Database Backup on Oracle Cloud

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 65

Page 64: Partner Webcast – Enterprise Database Backup on Oracle Cloud