Oracle Database Backup Cloud Service. Copyright 2015 Oracle and/or its affiliates. All rights reserved.



Similar documents
An Oracle White Paper January Oracle Database Backup Service A Technical White Paper

Oracle Database Cloud Services OGh DBA & Middleware Day

Oracle 12c Recovering a lost /corrupted table from RMAN Backup after user error or application issue

Oracle 10g Feature: RMAN Incrementally Updated Backups

HOW TO. RMAN Restore for Standby 10gR2

If you have not multiplexed your online redo logs, then you are only left with incomplete recovery. Your steps are as follows:

Database Disaster Recovery using only RMAN Backups

Oracle Cloud E

Oracle Database Backup Service. Secure Backup in the Oracle Cloud

Oracle Cloud Update November 2, Eric Frank Oracle Sales Consultant. Copyright 2014 Oracle and/or its affiliates. All rights reserved.

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Oracle Database Backup To Cloud: Amazon Simple Storage Service (S3) ORACLE WHITE PAPER JULY 2015

<Insert Picture Here> RMAN Configuration and Performance Tuning Best Practices

An Oracle White Paper May Cloud-Stored Offsite Database Backups

Oracle Database Backup in the Cloud. An Oracle White Paper September 2008

Oracle Database Backups and Disaster Autodesk

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

! " # #$ " " %" & "'( " "' ( ) " * ""! ). " / ( * ( "# 0! " ). '

Backup and Recovery Solutions for Exadata. Cor Beumer Storage Sales Specialist Oracle Nederland

Backup and Recovery Solutions for Exadata. Ľubomír Vaňo Principal Sales Consultant

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

Oracle Database Public Cloud Services

<Insert Picture Here> Refreshing Your Data Protection Environment with Next-Generation Architectures

Using RMAN to restore a database to another server in an ASM environment

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

HP LeftHand SAN Solutions

An Oracle White Paper March Backup and Recovery Strategies for the Oracle Database Appliance

How to Best Configure, Size, and Monitor the Oracle Database Fast Recovery Area

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

Using HP StoreOnce Backup systems for Oracle database backups

12. User-managed and RMAN-based backups.

DOCUMENTATION ORACLE BACKUP & RESTORE OPERATIONS

Performing Database and File System Backups and Restores Using Oracle Secure Backup

Oracle Database 10g: Backup and Recovery

11. Oracle Recovery Manager Overview and Configuration.

Backup/Restore Oracle 8i/9i/10g

BrightStor ARCserve Backup

WHITE PAPER. Oracle RMAN Design Best Practices with Data Domain. Storage. Deduplication

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

Zero Downtime Backup solution for Oracle10g

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Vodacom Managed Hosted Backups

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

REMOTE BACKUP-WHY SO VITAL?

How To Backup And Restore A Database With A Powervault Backup And Powervaults Backup Software On A Poweredge Powervalt Backup On A Netvault 2.5 (Powervault) Powervast Backup On An Uniden Power

The safer, easier way to help you pass any IT exams. Exam : 1Z Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP.

Database Recovery For Newbies

PRM For Oracle Database 3.1 GUI:

We look beyond IT. Cloud Offerings

Oracle s Cloud Computing Strategy

Redefining Oracle Database Management

Recreate Physical Standby Database after Recovery of Primary Database

Oracle Data Recovery Advisor

Best Practices White Paper Using Oracle Database 10g Automatic Storage Management with FUJITSU Storage

11. Configuring the Database Archiving Mode.

Oracle Database 10g: Backup and Recovery 1-2

Oracle Backup, Recovery, and Performance Tuning using EMC Avamar and Oracle RMAN

Using Recovery Manager with Oracle Data Guard in Oracle9i. An Oracle White Paper January 2007

Oracle Database 12c Recovery Manager New Features

ASM and for 3rd Party Snapshot Solutions - for Offhost. Duane Smith Nitin Vengurlekar RACPACK

FUJITSU Backup as a Service Rapid Recovery Appliance

Oracle Backup and Recovery Best Practices Dell Compellent Storage Center. Dell Compellent Technical Best Practices

<Insert Picture Here> Considerations for Enterprise Cloud Computing

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore

EMC NetWorker Module for Oracle Release 5.0

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Turbo Charge Your Data Protection Strategy

High Availability for Oracle 10g Using Double-Take

VMAX 3 AND ORACLE. Yaron Dar & Udgith Mankad VMAX Partner Engineering ORACLE BEST PRACTICES FOR REPLICATIONS, BACKUP/RECOVERY, AND PROTECTPOINT

<Insert Picture Here> Private Cloud with Fusion Middleware

Talk With Someone Live Now: (760) One Stop Data & Networking Solutions PREVENT DATA LOSS WITH REMOTE ONLINE BACKUP SERVICE

Oracle Data Protection Concepts

Oracle Recovery Manager

Appendix C to DIR Contract Number DIR-TSO-2736 SunGard Availability Services Discount Level: 25% Managed Data Center Services - Cloud Hosting

AVLOR SERVER CLOUD RECOVERY

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

REDCENTRIC MANAGED BACKUP SERVICE SERVICE DEFINITION

Cloud OS Vision. Modern platform for the world s apps

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

The EVault Portfolio

Disaster Recovery for Oracle Database

IBM Spectrum Protect in the Cloud

IBM Tivoli Storage Manager Version Introduction to Data Protection Solutions IBM

Disaster Recovery to the Oracle Public Cloud

Running Oracle Applications on AWS

Implementing an Enterprise Class Database Backup and Recovery Plan

Rob Zoeteweij Zoeteweij Consulting

Oracle Database Cross Platform Migration Lucy Feng, DBAK

VERITAS NetBackup 6.0 Enterprise Server INNOVATIVE DATA PROTECTION DATASHEET. Product Highlights

Managed Cloud Database Service

SQL Server Hybrid Features. Luis Vargas, Senior Program Manager Lead Xin Jin, Program Microsoft

Integrating Network Appliance Snapshot and SnapRestore with VERITAS NetBackup in an Oracle Backup Environment

Transcription:

Oracle Database Backup Cloud Service Copyright 2015 Oracle and/or its affiliates. All rights reserved.

Myself Saurabh K. Gupta Principal Technologist, Database Product Management at Oracle Blog: www.sbhoracle.wordpress.com Twitter: @SAURABHKG Author of Oracle Advanced PL/SQL Developer Professional Guide (2012) Advanced Oracle PL/SQL Developer s Guide Second Edition (2016) 3

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. 4

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 5

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 6

Traditional Database Backup Best Practices Local Disk Backups On-site Tiered Storage Off-site Storage 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 7

Challenges with Backup Infrastructure On-Demand Capacity Growth With explosive data growth, storage capacity planning for the long term retention is a challenge High Cost Incurs capital expenditure to procure, higher operation cost to manage onsite & offsite storage infrastructure No DR/Tape Infrastructure Not everyone has tape infrastructure or remote (DR) site for taking backups and to store offsite Accessibility Issues With Tape-vaulting, offsite data is not immediately accessible which increases RTO Cloud Storage provides a great alternative!! Oracle Confidential Internal/Restricted/Highly Restricted 8

Cloud Infrastructure for Backup & Archive Top Use Cases 9

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 10

Oracle Database Backup Cloud Service (PaaS) Offsite Backups with Simple and Low Cost Cloud Storage Backup on-premise or cloud databases to Oracle Cloud Cloud Databases 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 On-Premises Oracle Database Backup Service Oracle Cloud https://cloud.oracle.com/database_backup 11

Oracle Database Backup Service Subscription Models Database Backup Database Cloud Non-Metered (Subscription) Fixed Price @ $33/TB per Month Standalone (or) combined with DBCS non-metered services Month-to-month or longer Trial : Storage Cloud / 10GB Metered Model Pay-per-use ($/GB) + Transfer & Request charges Included with Metered DBCS Subscription Use with DBaaS / Exadata Cloud or just backup 1 Year or longer term Trial: DBCS / 500GB Subscription includes cloud storage, RMAN Module, RMAN Encryption, RMAN Compression and support 12

Database Backup Service: Benefits Offsite Cloud Storage for Oracle Database Backups Platform as a Service Oracle Database Backup Service Instant Offsite Storage Cost Effective On-Premises Databases 10.2 and above Oracle DBaaS and Exadata Cloud Service On-demand Scalability End-to-End Security Encryption Compression 3-Way Protection 24x7 Data Availability 13

How it works Oracle Database Backup Service Leverages familiar RMAN interface DB Backup Oracle Database Cloud Backup Module Oracle RMAN Customer data center Perform compressed backup, restore & recovery using RMAN (optional) RMAN encryption for backups is enforced (mandatory) Keys kept locally on client (password, TDE, dual-mode) Data securely transmitted to the cloud over HTTPS To optimize data transfer Use RMAN compression (HIGH, MEDIUM, LOW, BASIC) Increase PARALLELISM (until you reach maximum throughput) Use MULTISECTION backups Use weekly full/daily incremental strategy Oracle Confidential Internal/Restricted/Highly Restricted 14

Backup Service: End-to-End Flow Simple 4-Step Process Storage Capacity Identity Domain Service Name User ID/Password Cloud Subscription & Activation Install RMAN Module Download & Execute Installer Library module installed along with config file & wallet Tape Interface Encryption Compression Parallelism Configure RMAN Perform Backup & Recovery RMAN Interface Full & Incremental backups Restore & Recovery Oracle Confidential Internal/Restricted/Highly Restricted 15

UI Management for Backup & Recovery Enterprise Manager 13c Oracle Cloud as a backup destination Config, Schedule, B&R Cloudberry Lab Simple UI to perform backup & recovery operations 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.ora) '; RMAN> CONFIGURE DEVICE TYPE SBT PARALLELISM 8; RMAN> SET ENCRYPTION ON IDENTIFIED BY mypwd ONLY; RMAN> BACKUP AS COMPRESSED BACKUPSET DATABASE PLUS ARCHIVELOG; 3 rd Party Application Support In the Roadmap: 16

Support Matrix Versions Oracle Database Enterprise Edition* Oracle Database SE/SE1/SE2* Platforms (64 bits) RMAN Compression (Included) RMAN Encryption (Included) 10.2.0.5, 11.1,11.2, 12c (64 bits) 10.2.0.5, 11.1.0.7, 11.2.0.3, and versions 11.2.0.4 and above Linux, Solaris, SPARC, Windows, HP-UX, AIX, zlinux HIGH, MEDIUM, BASIC, LOW (depends on DB version) Password, TDE, Dual-mode * Older Database versions no longer supported by Oracle are in deprecated mode 17

Related Oracle Storage Cloud Services Object Storage Archive Storage Database Backup Software Appliance Bulk Data Transfer Services NFS Storing non- Database Data Super low-cost Long Term Retention Database Backups Gateway with Local Copy One time large data load 18

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 19

Use Case #1: Backup Directly to Oracle Cloud Requirements Customer has a number of 2 nd & 3 rd tier databases Sizes < 1TB Expensive (CAPEX & OPEX) to allocate and manage local storage for these DB backups Retention : 1-3 years RTO : Hours to Days RPO : As of last backup Solution Directly backup databases + archived logs to Oracle Cloud over public network Weekly full + Daily Incremental strategy Databases Recovery Manager SSL Protect Databases with Offsite Backups Directly back up Oracle Databases 10.2-12c Major platforms Secured, Compressed backup No expensive DB backup agents Oracle Database Backup Cloud Service 20

Use Case #2: Backup to Disk and then to Cloud Requirements Customer has a number of mission critical & mission critical databases Wants to maintain offsite storage for long term retention DB Sizes 1-5TB Retention Local disk: 1 month, Cloud: 1-5 years RTO : Days to restore from older backups Solution Do image copy backups to local disk (1), and backup to cloud from the local disk (2,3) Databases Recovery Manager 1 2 Local Disk Backup 3 SSL Oracle Database Backup Cloud Service 21

Use Case #3: DR to the Cloud for Database Using Backups Requirements Offsite DR instance using backups Offsite test/dev instance Solution Backup on-premises databases to cloud using Database Backup Service Cloud: Use DBaaS (any edition) or Exadata Cloud Service In the event of outage, restore in the cloud 22

Use Case #4: Hybrid Cloud Disaster Recovery (Full Stack DR) Using Backups Requirement: Full DR to the Cloud using backups Database Use Database Backup Service to send on- premise database backups to Oracle Cloud using RMAN Restore the database in the cloud from the backup Application Tier Use JAVA / REST calls to copy on-prem application data to Storage Cloud Service You can also use OSC Appliance for the copy Restore the data into the compute cloud from the object storage 23

Backup & Recovery in the Cloud: Oracle DBaaS Oracle Database as a Service (PaaS) RDBMS Oracle Storage Cloud Oracle VM Oracle Linux RMAN Archives Oracle REST Data Services /u03 /u02 /u01 Cloud Utilities & EM Express Oracle Compute Block Storage https://docs.oracle.com/cloud/latest/dbcs_dbaas/csdbi/guid- 0864AA36-8FE4-4D62-9F18-A0550D4BC89B.htm#CSDBI3342 DBaaS Backup Options Block (local) + Object Storage (Cloud Backup) None (No Backups) Automated RMAN backups 7 days on local (FRA) + 30 days on object storage Daily incrementally updated local backup Merge with 7 days delay Daily full backups from FRA to cloud Manual RMAN backups $ /var/opt/oracle/bkup_api/bkup_api bkup_start On-demand full / PIT recovery $ dbaascli orec --args -pitr TAG20150916T153521 Similar B&R for the Exadata Cloud Service 24

Target Databases (Backups Using Public Network) Candidates for Cloud Backup Database sizes in GBs to low single digit TB Relaxed Recovery Time objective Direct from database or from disk backups for critical databass Additional copy of backup data in the cloud Not Suitable for Cloud Backups Very large databases with many TBs of data* Strict downtime requirements Predictable recovery time requirement* Mission critical databases with cloud backups the only backup Cloud Backup Tier Level Database Type 1 st 2 nd 3 rd Non-Critical Important Mission Critical * Could become suitable if Oracle Fast Connect is chosen 25

Additional Use Cases for Database Backups in Oracle Cloud Database Migration to Oracle Cloud Create a DR instance in the Oracle cloud with periodic updates from backups Create test & dev in the Oracle Cloud Create a Data Guard Standby instance in the Oracle cloud 26

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 27

Why Back Up to Oracle Cloud? RMAN> BACKUP DATABASE; RMAN> RESTORE DATABASE; Ease of Use Simple & familiar RMAN interface with no new commands to learn Optimized Data Transfers Includes RMAN compression, unlimited parallelism and integrated backup solution Security Data is secured with client-side encryption and transmitted securely to the cloud Secured encrypted backups even for Standard Edition Databases End-to-End Support Faster resolution with single vendor support - Database Server support (client side) and Oracle Cloud 28

Agenda 1. Challenges with Backup Infrastructure 2. Database Backup Service Overview 3. Use Cases 4. Why Oracle Cloud? 5. Resources 6. Q&A 29

Oracle Database Backup Resources Video: Oracle Database Backup Service Benefits Watch this animated demo to learn the benefits Oracle Database Backup Service offers your organization. Oracle Database Backup Service is a secure, scalable, on-demand storage solution for backing up Oracle databases to the Oracle Cloud. http://medianetwork.oracle.com/video/player/4283889563001 Video: Backup to Oracle Cloud Oracle Database Backup Service is a secure, scalable, on-demand storage solution for backing up your Oracle databases to the cloud. See how it can help you and your business. http://medianetwork.oracle.com/video/player/4373507903001 Oracle Database Backup Service Overview & Documentation https://cloud.oracle.com/database_backup# http://docs.oracle.com/cloud/latest/dbbackup_gs/index.html Demo for Database Backup - Configuration Database Backup Service - Configuration, Backup & Restore Demo This viewlet shows how to install the module, configure RMAN, perform backup, induce fault and perform restore/recovery. Demo for Database Backup - Subscription Database Backup Service - Subscription & Backup Module Download This viewlet shows the subscription process and downloading the module. Oracle Confidential Internal/Restricted/Highly Restricted 30

Summary: Why Backup to Oracle Cloud? Low Cost End-to-End Security Availability Single Vendor Support On-prem to Cloud RECOVERY MANAGER Instantaneously Provisioned Customer Managed Keys Scalability / Elastic Storage Familiar Backup & Recovery Interface Oracle Confidential Internal/Restricted/Highly Restricted 31

Demo: Step #1 1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery Subscribe Oracle Database Backup Service (or) Sign-up for a Trial Oracle Confidential Internal/Restricted/Highly Restricted 32

Option #1: Purchase Oracle Database Backup Service https://shop.oracle.com/

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

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

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

Option #2: Sign-up for a Trial Non-Metered Contd.. After Submission, wait for the activation email. Then Activate the Service 37

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 38

Cloud Service Portal 39

Demo: Step #2 1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery Download the Installer from OTN Install the module Oracle Confidential Internal/Restricted/Highly Restricted 40

Download Oracle Database Cloud Backup Module from OTN 41

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 sridhar.ranganathan@oracle.com -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

Demo: Step #3 1. Subscribe 2. Install 3. Configure RMAN 4. Backup & Recovery Configure RMAN to use SBT Library, configure Parallelism etc. Oracle Confidential Internal/Restricted/Highly Restricted 43

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

Demo: Step #4 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 Oracle Confidential Internal/Restricted/Highly Restricted 45

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

Perform RMAN Backups Contd.. 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 allocated channel: ORA_SBT_TAPE_2 channel ORA_SBT_TAPE_2: SID=56 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=50 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=58 device type=sbt_tape channel ORA_SBT_TAPE_4: Oracle Database Backup Service Library VER=3.15.1.16 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=7 RECID=23 STAMP=890304044 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_2gqh1thm_1_1 tag=tag20150913t104054 comment=api Version 2.0,MMS Version 3.15.1.16 47

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 48

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; 49

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 50

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' 51

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 52

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 53

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 54

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 55

Oracle Confidential Internal/Restricted/Highly Restricted 56