Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Using Oracle Database Backup Service

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Oracle® Cloud

Using Oracle Database Backup Service


Release 14.1
E54730-02

December 2014
Documentation that describes how to use Oracle Database
Backup Service to back up Oracle databases to Oracle Cloud.
Oracle Cloud Using Oracle Database Backup Service , Release 14.1

E54730-02

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

Primary Author: Gail Risdal

Contributing Authors: Robin Merrin

Contributors: Sridhar Ranganathan

This software and related documentation are provided under a license agreement containing restrictions on
use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your
license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license,
transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse
engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is
prohibited.
The information contained herein is subject to change without notice and is not warranted to be error-free. If
you find any errors, please report them to us in writing.

If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on
behalf of the U.S. Government, the following notice is applicable:
U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software,
any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are
"commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-
specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the
programs, including any operating system, integrated software, any programs installed on the hardware,
and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
No other rights are granted to the U.S. Government.

This software or hardware is developed for general use in a variety of information management applications.
It is not developed or intended for use in any inherently dangerous applications, including applications that
may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you
shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its
safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this
software or hardware in dangerous applications.

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of
their respective owners.
Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are
used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron,
the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro
Devices. UNIX is a registered trademark of The Open Group.

This software or hardware and documentation may provide access to or information on content, products,
and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly
disclaim all warranties of any kind with respect to third-party content, products, and services. Oracle
Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your
access to or use of third-party content, products, or services.
Contents

Preface ................................................................................................................................................................. v
Audience ........................................................................................................................................................ v
Documentation Accessibility ...................................................................................................................... v
Related Resources ......................................................................................................................................... v
Conventions.................................................................................................................................................. vi

1 Getting Started with Oracle Database Backup Service


About Oracle Database Backup Service ................................................................................................ 1-1
About the Oracle Database Cloud Backup Module............................................................................. 1-2
Important Information About Oracle Database Backup Service Subscriptions .............................. 1-2
Special-Use Licensing for Oracle Database Backup Service............................................................... 1-3
How to Begin with Oracle Database Backup Service Subscriptions ................................................. 1-3

2 Administering Oracle Database Backup Service


Typical Workflow for Administering Oracle Database Backup Service .......................................... 2-1
Installing the Oracle Database Cloud Backup Module ....................................................................... 2-2
Before You Begin .............................................................................................................................. 2-2
Supported Databases and Operating Systems ............................................................................. 2-3
Parameters Used to Run the Backup Module Installer............................................................... 2-3
Downloading and Installing the Backup Module ....................................................................... 2-6
Files Created When the Backup Module is Installed .................................................................. 2-6
Configuring Recovery Manager (RMAN) Settings.............................................................................. 2-7
Configuring Encryption for Backups..................................................................................................... 2-8
Configuring Compression for Backups ................................................................................................. 2-8
Storing Backups in Custom Containers................................................................................................. 2-9
Monitoring Your Storage Capacity ........................................................................................................ 2-9

3 Backing Up to Oracle Database Backup Service


Backing Up to Oracle Database Backup Service Using Password Encryption................................ 3-1
Backing Up to Oracle Database Backup Service Using Transparent Data Encryption (TDE) ...... 3-2

iii
iv
Preface

This document describes how to use Oracle Database Backup Service to back up
Oracle databases to Oracle Cloud.

Topics:

• Audience

• Documentation Accessibility

• Related Resources

• Conventions

Audience
This document is intended for administrators who want to use Oracle Database
Backup Service to back up Oracle databases to Oracle Cloud.
It is assumed that you know the following:

• Oracle Database concepts and basic database administration

• Recovery Manager (RMAN) concepts, usage, tasks, and commands

• The operating system environment under which you run Oracle Database

Documentation Accessibility
For information about Oracle's commitment to accessibility, visit the Oracle
Accessibility Program website at http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=docacc.

Access to Oracle Support


Oracle customers have access to electronic support through My Oracle Support. For
information, visit http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=info or visit http://www.oracle.com/pls/topic/lookup?
ctx=acc&id=trs if you are hearing impaired.

Related Resources
For more information, see these Oracle resources:

• Database Backup on the Oracle Cloud website

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

• Oracle Database Backup Service FAQ (My Oracle Support Doc ID 1640149.1)
http://support.oracle.com

• Getting Started with Oracle Cloud

• Using Oracle Storage Cloud Service

• Using Oracle Database Cloud Service (Database as a Service)

Conventions
The following text conventions are used in this document:

Convention Meaning
boldface Boldface type indicates graphical user interface elements associated
with an action, or terms defined in text or the glossary.

italic Italic type indicates book titles, emphasis, or placeholder variables for
which you supply particular values.

monospace Monospace type indicates commands within a paragraph, URLs, code


in examples, text that appears on the screen, or text that you enter.

vi
1
Getting Started with Oracle Database
Backup Service

Oracle Database Backup Service is a cloud storage solution for storing Oracle Database
backups. Here's what you need to know to get started.

Topics

• About Oracle Database Backup Service

• About the Oracle Database Cloud Backup Module

• Important Information About Oracle Database Backup Service Subscriptions

• Special-Use Licensing for Oracle Database Backup Service

• How to Begin with Oracle Database Backup Service Subscriptions

About Oracle Database Backup Service


Oracle Database Backup Service is a secure, scalable, on-demand storage solution for
backing up Oracle databases to Oracle Cloud. The service complements your existing
backup strategy by providing an off-site storage location in the public cloud.
To use Oracle Database Backup Service, you’ll subscribe to the service, install the
Oracle Database Cloud Backup Module, and configure your environment to send
backups to the cloud. You’ll then use familiar Recovery Manager (RMAN) commands
to perform backup, restore, recovery, and maintenance operations.
With Oracle Database Backup Service, cloud backups are always accessible over the
Internet and are immediately available for recovery when needed. Data is replicated
across multiple storage nodes, which protects against hardware failure and data
corruption. Using RMAN encryption, your data is encrypted at the source, securely
transmitted to the cloud, and securely stored in the cloud. The keys are kept at your
site, not in the cloud. Compression can also be used for backups, which conserves
bandwidth and improves performance by reducing the size of backups before they’re
sent to the cloud for storage.
Oracle Database Backup Service is used to store Oracle Database backups only. To
store other types of data, use Oracle Storage Cloud Service. For more information
about the service, see Using Oracle Storage Cloud Service.

Getting Started with Oracle Database Backup Service 1-1


About the Oracle Database Cloud Backup Module

Note:

Oracle Database Backup Service can also be used to back up and restore
Oracle Database Cloud Service (Database as a Service) instances.
For instances created using the Oracle Database Cloud Service - Virtual Image
service level, download the Oracle Database Cloud Backup Module and
perform tasks as described in this document.
For instances created using the Oracle Database Cloud Service service level,
Oracle Database Backup Service is already included and configured as part of
instance creation. You don’t need to download and install the backup module,
configure RMAN, and so on. For information about backup and recovery in
this case, see Backing Up and Restoring an Oracle Database Cloud Service
(Database as a Service) Instance in Using Oracle Database Cloud Service
(Database as a Service). For information about billing, see relevant details in
How to Begin with Oracle Database Cloud Service (Database as a Service)
Subscriptions in Using Oracle Database Cloud Service (Database as a Service).

About the Oracle Database Cloud Backup Module


The Oracle Database Cloud Backup Module makes it possible to perform cloud
backups and restores.
The module is an SBT (system backup to tape) interface that’s tightly integrated with
Recovery Manager (RMAN), which means you don't need to learn new tools or
commands. You can continue to use standard RMAN commands for all backup,
restore, recovery, and maintenance operations.
You’ll download the backup module from Oracle Technology Network (OTN) and
install it on your database server. Multiple database versions and operating systems
are supported. For more information about the module, see Installing the Oracle
Database Cloud Backup Module.

Important Information About Oracle Database Backup Service


Subscriptions
There are no specific trials for Oracle Database Backup Service. When you request a
trial of Oracle Database Backup Service, you actually get a trial of Oracle Storage
Cloud Service. Oracle Database Backup Service uses Oracle Storage Cloud Service
containers to store cloud backups.
To try Oracle Database Backup Service, go to cloud.oracle.com/
database_backup and click Try It. You’ll get an Oracle Storage Cloud Service trial
that can be used with Oracle Database Backup Service.
For trials and paid subscriptions to Oracle Database Backup Service, the service is
listed as Oracle Storage Cloud Service in Cloud Portal. Email from Oracle references
Oracle Storage Cloud Service. For paid subscriptions to Oracle Database Public Cloud
Services, Oracle Database Backup Service is listed as Oracle Database Backup Service
in My Services and in communications.

1-2 Using Oracle Database Backup Service


Special-Use Licensing for Oracle Database Backup Service

Special-Use Licensing for Oracle Database Backup Service


Oracle Database Backup Service includes the use of two optimizations at no additional
cost. These optimizations are usually available only with the purchase of the Oracle
Advanced Security or Oracle Advanced Compression options.
Special-use licensing includes Recovery Manager (RMAN) backup encryption starting
with Oracle Database 11g, and RMAN backup compression levels. To use additional
features of the Oracle Advanced Security or Oracle Advanced Compression options,
you must license those options separately.

How to Begin with Oracle Database Backup Service Subscriptions


Here’s how to get started with Oracle Database Backup Service subscriptions.

1. Request a trial or purchase a subscription using any of the following methods:

• Request a trial subscription to Oracle Database Backup Service. See Requesting


a Trial Subscription to an Oracle Cloud Service in Getting Started with Oracle
Cloud.

• Purchase a paid subscription to Oracle Database Backup Service. See Purchasing


a Subscription to an Oracle Cloud Service in Getting Started with Oracle Cloud.

• Purchase a paid subscription to Oracle Database Public Cloud Services, which


includes Oracle Database Cloud Service (Database as a Service) and Oracle
Database Backup Service. See Purchasing a Subscription to Oracle Public Cloud
Services in Getting Started with Oracle Cloud.

Oracle Database Backup Service trials and paid subscriptions appear as Oracle
Storage Cloud Service subscriptions. See Important Information About Oracle
Database Backup Service Subscriptions.

2. Activate and verify the service. See Activating Your Trial Subscription or
Activating Your Order for an Oracle Cloud Service in Getting Started with Oracle
Cloud.

3. Verify activation. See Verifying Your Trial Is Up and Running or Verifying a


Service Is Up and Running in Getting Started with Oracle Cloud.

4. Create accounts for your users and assign them appropriate privileges and roles.
See Managing User Accounts and Managing the Roles Assigned to a User in
Getting Started with Oracle Cloud.

Note:
For Oracle Database Public Cloud Services subscriptions, users must have
either the Storage Administrator or Database Backup Administrator role to
back up to the cloud.

Getting Started with Oracle Database Backup Service 1-3


2
Administering Oracle Database Backup
Service

To administer Oracle Database Backup Service, you'll install the module needed for
cloud backups, configure Recovery Manager (RMAN) settings, and perform other
tasks.

Topics

• Typical Workflow for Administering Oracle Database Backup Service

• Installing the Oracle Database Cloud Backup Module

• Configuring Recovery Manager (RMAN) Settings

• Configuring Encryption for Backups

• Configuring Compression for Backups

• Storing Backups in Custom Containers

• Monitoring Your Storage Capacity

Typical Workflow for Administering Oracle Database Backup Service


To administer Oracle Database Backup Service, refer to the following task workflow.
Task Description More Information
Request a trial or Sign up for a free trial or purchase How to Begin with Oracle Database
purchase a subscription a subscription. Then activate your Backup Service Subscriptions
subscription, create accounts for
your users, and assign them
appropriate privileges and roles.

Download the Oracle Download the Oracle Database Downloading and Installing the Backup
Database Cloud Backup Cloud Backup Module installer Module
Module from Oracle Technology Network
(OTN).

Install the Oracle Run the Oracle Database Cloud Downloading and Installing the Backup
Database Cloud Backup Backup Module installer. Module
Module

Configure Recovery Configure RMAN to send backups Configuring Recovery Manager (RMAN)
Manager (RMAN) to Oracle Database Backup Service. Settings
settings

Configure RMAN Configure RMAN encryption. Configuring Encryption for Backups


encryption Backups must be encrypted before
they can be sent to the cloud.

Administering Oracle Database Backup Service 2-1


Installing the Oracle Database Cloud Backup Module

Task Description More Information


Configure compression Configure optional compression to Configuring Compression for Backups
reduce the size of backups before
they’re sent to the cloud.

Perform backup and Connect to the target database and Backing Up to Oracle Database Backup
recovery configure an RMAN channel, then Service
issue standard RMAN backup,
restore, and recovery commands.

Monitor the service Check on the day-to-day operation Using My Services to Monitor and Administer
of your service, monitor Oracle Cloud Services in Getting Started with
performance, and review Oracle Cloud
important notifications. Also see Monitoring Your Storage Capacity

Installing the Oracle Database Cloud Backup Module


To back up to Oracle Database Backup Service, you first need to install the Oracle
Database Cloud Backup Module. You’ll download the module from Oracle
Technology Network (OTN) and install it on your database server.

Topics

• Before You Begin

• Supported Databases and Operating Systems

• Parameters Used to Run the Backup Module Installer

• Downloading and Installing the Backup Module

• Files Created When the Backup Module is Installed

Before You Begin


Before you install the Oracle Database Cloud Backup Module, make sure you have
what you need:

• A supported Oracle Database version and operating system


See Supported Databases and Operating Systems.

• An Oracle Technology Network (OTN) account or Oracle.com account


If you don’t have an OTN account, create one by registering at http://
www.oracle.com/technetwork/index.html.

• An Oracle Database Backup Service account and storage capacity


See How to Begin with Oracle Database Backup Service Subscriptions.

• JDK 1.5 or later


You must have JDK 1.5 or later on the system on which you plan to install the
Oracle Database Cloud Backup Module. Use the following command to check your
JDK version:
java -version

• The required patch if you’re using the Standard Edition of Oracle Database

2-2 Using Oracle Database Backup Service


Installing the Oracle Database Cloud Backup Module

See My Oracle Support Doc ID 1640149.1 at http://support.oracle.com.

• Values for the parameters required to run the Oracle Database Cloud Backup
Module installer
It’s best to compile this information before you run the installer. See Parameters
Used to Run the Backup Module Installer.

Supported Databases and Operating Systems


The Oracle Database Cloud Backup Module can be used to back up Oracle Database
10g Release 2 (10.2) and later to Oracle Database Backup Service.
The following table lists supported database versions and operating systems for the
backup module. It also lists supported Recovery Manager (RMAN) compression and
encryption options. These options are available for use with the service at no
additional cost. See Special-Use Licensing for Oracle Database Backup Service.

System Supported Versions


Oracle Database 10g Release 2 (10.2), 11g, 12c

Operating system (64 bits) Linux, Solaris x86-64, SPARC, Windows, AIX,
HP-UX, zLinux

RMAN compression HIGH, MEDIUM, BASIC, LOW

RMAN encryption Enterprise Edition: Password, Transparent


Data Encryption (TDE), dual mode.
Standard Edition: Password, TDE, dual
mode. Requires a patch. Refer to My Oracle
Support Doc ID 1640149.1 at http://
support.oracle.com.

Parameters Used to Run the Backup Module Installer


You’ll need to specify parameters and their values when you run the Oracle Database
Cloud Backup Module installer. Required parameters include service name, identity
domain, and account credentials. It’s best to compile this information before you run
the installer.
The following example shows what you’ll need to provide:
java -jar opc_install.jar -serviceName myService
-identityDomain myDomain -opcId myAccount@myCompany.com
-opcPass myPassword -walletDir /walletDirectory
-libDir /libraryDirectory

The following table lists required parameters. Optional parameters are also listed.
Parameters can also be displayed by running the following command from the
directory that contains the opc_install.jar installer file:
java -jar opc_install.jar

Parameter Name Description Required or


Optional

serviceName Service name associated with your Oracle Required


Database Backup Service account.

Administering Oracle Database Backup Service 2-3


Installing the Oracle Database Cloud Backup Module

Parameter Name Description Required or


Optional

identityDomain Identity domain of the Oracle Database Backup Required


Service account.

opcId User name for your Oracle Database Backup Required


Service account.

opcPass Password for the Oracle Database Backup Required


Service account specified by opcId.

walletDir Directory in which Oracle Database Backup Required


Service credentials are stored.
Suggested location on Linux and UNIX systems:
ORACLE_HOME/dbs/opc_wallet
Suggested location on Windows systems:
ORACLE_HOME\database\opc_wallet
If the specified wallet directory does not exist
(for example, opc_wallet), the installer creates
it.

libDir Directory in which the SBT (system backup to Optional, but


tape) library used for backups and restores is recommended
stored.
If omitted, the library is not downloaded. In most
cases, you should specify this parameter and
download the library. An exception might be if
you’re using the installer to regenerate the wallet
and configuration file in an Oracle home
directory where the Oracle Database Cloud
Backup Module was previously installed.
Suggested location on Linux and UNIX systems:
ORACLE_HOME/lib
Suggested location on Windows systems:
ORACLE_HOME\bin
If the specified directory does not exist, you are
prompted to create it and then run the installer
again.

libPlatform Operating system for the SBT library used for Optional
backups and restores.
In most cases, you don’t need to specify this
parameter because the installer automatically
determines the correct operating system.
Exceptions might be if you see error messages
indicating that your operating system can’t be
identified or if you need to download the library
for use on a different system.
Supported values for this parameter:
• linux64
• windows64
• solaris_sparc64
• solaris_x64
• zlinux64
• hpux_ia64

2-4 Using Oracle Database Backup Service


Installing the Oracle Database Cloud Backup Module

Parameter Name Description Required or


Optional
• aix_ppc64
For information about supported operating
systems, see Supported Databases and
Operating Systems.
container Custom container created by you, separate from Optional
Oracle Database Backup Service, to store
backups. If omitted, backups are stored in the
default container that’s created when the backup
module is installed. See Storing Backups in
Custom Containers.
configFile Directory in which the Oracle Database Cloud Optional
Backup Module configuration file is stored. If
omitted, the configuration file is stored in a
default location.
Default location on Linux and UNIX systems:
ORACLE_HOME/dbs
Default location on Windows systems:
ORACLE_HOME\database
The file name is opcSID.ora, where SID is the
system identifier of the Oracle database that’s
being backed up to Oracle Database Backup
Service.

proxyHost HTTP proxy server host name Optional

proxyPort HTTP proxy server port number Optional

proxyId HTTP proxy server user name, if needed Optional

proxyPass HTTP proxy server password, if needed Optional

argFile Indicates that parameters should be read from Optional


the specified file. For example, a file named
arguments.txt might contain the following:

-opcID myAccount@myCompany.com
-opcPass abc123$
-serviceName myService
-identityDomain myDomain
-libDir /home/oracle/OPC/lib
-walletDir /home/oracle/OPC/wallet

For this example, the following command installs


the backup module using the parameters
specified in the file:
java -jar opc_install.jar -argFile
arguments.txt

Administering Oracle Database Backup Service 2-5


Installing the Oracle Database Cloud Backup Module

Downloading and Installing the Backup Module


Download and install the Oracle Database Cloud Backup Module on your database
server.

First, make sure you’re ready. See Before You Begin.

To download and install the backup module:

1. Download the Oracle Database Cloud Backup Module from Oracle Technology
Network (OTN):

http://www.oracle.com/technetwork/database/availability/
oracle-cloud-backup-2162729.html
Accept the license agreement, click All Supported Platforms, and provide your
OTN user name and password when prompted. Then download the ZIP file that
contains the installer (opc_installer.zip) to your system.

2. Extract the contents of the file.

The file contains the installer file, opc_install.jar, and a README file.

3. Run the installer from the directory that contains opc_install.jar, providing
the required parameters in one line, with each parameter preceded by a hyphen
and followed by its value. For information about required parameters, see
Parameters Used to Run the Backup Module Installer.

The following is an example run of the installer. This example shows how the installer
automatically downloads the Oracle Database Cloud Backup Module for your
operating system, creates a wallet that contains Oracle Database Backup Service
identifiers and credentials, creates the Oracle Database Cloud Backup Module
configuration file, and downloads the library necessary for cloud backups and
restores.
java -jar opc_install.jar -serviceName myService
-identityDomain myDomain -opcId myAccount@myCompany.com
-opcPass myPassword -walletDir /home/oracle/OPC/wallet
-libDir /home/oracle/OPC/lib

Oracle Database Cloud Backup Module Install Tool, build 2014-08-15


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 /orclhome/dbs/
opcmySID.ora created.
Downloading Oracle Database Cloud Backup Module Software Library from
fileopc_linux64.zip.
Downloaded 13165919 bytes in 204 seconds. Transfer rate was 64538 bytes/second.
Download complete.

Files Created When the Backup Module is Installed


After you run the Oracle Database Cloud Backup Module installer, make sure the
required files are on your system.
The following files are created when you install the backup module, and are used by
Oracle Database Backup Service to perform cloud backups and restores. For
information about the parameters mentioned, see Parameters Used to Run the Backup
Module Installer.

2-6 Using Oracle Database Backup Service


Configuring Recovery Manager (RMAN) Settings

File Name Location Purpose

libopc.so on Linux and As specified for the libDir Operating system-specific


UNIX systems parameter when you run the SBT library that enables
libopc.dll on Windows backup module installer. cloud backups and restores.
systems Example location:
ORACLE_HOME/lib

opcSID.ora As specified for the Configuration file that


configFile parameter contains the Oracle Database
when you run the backup Backup Service container
module installer. URL and credential wallet
Default location if a location location. SID is the system
isn’t specified: identifier of the Oracle
ORACLE_HOME/dbs on database that’s being backed
Linux and UNIX systems up to Oracle Database
ORACLE_HOME\database Backup Service.
on Windows systems

cwallet.sso As specified for the Oracle wallet file that


walletDir parameter when securely stores Oracle
you run the backup module Database Backup Service
installer. credentials. This file is used
Example location: during Recovery Manager
ORACLE_HOME/dbs/ (RMAN) backup and restore
opc_wallet operations and is stored in
the Oracle Database Backup
Service wallet directory (for
example, opc_wallet).

Configuring Recovery Manager (RMAN) Settings


After you install the Oracle Database Cloud Backup Module, configure Recovery
Manager (RMAN) to use Oracle Database Backup Service as the backup destination.
The following command configures an RMAN channel that uses the backup module
SBT library and configuration file for backup to the cloud:
RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt
PARMS='SBT_LIBRARY=location-of-the-SBT-library,
SBT_PARMS=(OPC_PFILE=location-of-the-configuration file)';

For example:
RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt
PARMS='SBT_LIBRARY=/orclhome/lib/libopc.so,
SBT_PARMS=(OPC_PFILE=/orclhome/dbs/opct1.ora)';

On Windows systems, you’ll need to specify the ENV and ORACLE_HOME parameters.
For example:
RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt
PARMS='SBT_LIBRARY=C:\tmp\libopc.dll,
ENV=(OPC_PFILE=C:\tmp\opct1.ora,
ORACLE_HOME=C:\PRODUCTS\12.1\DB)';

You can configure as many RMAN channels as you want. Once the RMAN
configuration is done, you can perform cloud backups and restores using any of the
RMAN commands that you usually use.

Administering Oracle Database Backup Service 2-7


Configuring Encryption for Backups

Use SHOW ALL in RMAN to confirm that you’ve configured RMAN to use Oracle
Database Backup Service as the backup destination. You’ll see an entry similar to this
in your list of settings:
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS
'SBT_LIBRARY=/orclhome/lib/libopc.so,
SBT_PARMS=(OPC_PFILE=/orclhome/dbs/opct1.ora)';

Use the CONFIGURE command to create or change a persistent configuration affecting


RMAN backup, restore, and maintenance. For more information about the command,
see CONFIGURE in Oracle Database Backup and Recovery Reference.

Configuring Encryption for Backups


Backups must be encrypted before they can be sent to Oracle Database Backup Service.
You’ll specify encryption when you perform a backup.
If a backup is not encrypted, you’ll get an error message similar to the one shown
below when you try to back up to the service:
RMAN-03009: failure of backup command on ORA_SBT_TAPE_1 channel at 08/15/2014
14:00:43
ORA-27030: skgfwrt: sbtwrite2 returned error
ORA-19511: non RMAN, but media manager or vendor specific failure, error text:
KBHS-01602: backup piece 14p0jso8_1_1 is not encrypted

Recovery Manager (RMAN) encrypted backups are securely created, transmitted, and
stored in the cloud. Use one of the following RMAN encryption modes to encrypt
backups:

• Password encryption

• Transparent Data Encryption (TDE)

• Dual-mode encryption (combination of password and TDE)


For information about encryption methodologies and choosing an encryption
algorithm, see Configuring Backup Encryption in Oracle Database Backup and Recovery
User's Guide.

Configuring Compression for Backups


You can optionally use compression when backing up Oracle databases to Oracle
Database Backup Service. Compression conserves bandwidth by reducing the size of
your backups before they’re sent to the cloud. You’ll specify compression when you
perform a backup.
Recovery Manager (RMAN) supports binary compression using one of the following
compression levels: HIGH, MEDIUM, BASIC, and LOW. The recommended level for
cloud backups is MEDIUM.
For example, the following RMAN commands configure compression using the
MEDIUM algorithm:
RMAN> CONFIGURE COMPRESSION ALGORITHM 'MEDIUM';
RMAN> CONFIGURE DEVICE TYPE sbt BACKUP TYPE TO COMPRESSED BACKUPSET;

Backups must be in the form of backup sets, not image copies. For information about
configuring compression for backups, see Configuring Compression Options in Oracle
Database Backup and Recovery User's Guide.

2-8 Using Oracle Database Backup Service


Storing Backups in Custom Containers

Storing Backups in Custom Containers


A default storage container is created automatically when the Oracle Database Cloud
Backup Module is installed, and backups are stored as objects in this default container.
You can also store backups in custom containers that you've created yourself, using a
product other than Oracle Database Backup Service.
To store backups in a custom container, include the —container parameter and the
container name when you run the Oracle Database Cloud Backup Module installer.
For example:
-container PAYROLL_DB
This automatically adds the OPC_CONTAINER parameter to the opcSID.ora
configuration file so the custom container is used for backups.
To specify a custom container after you’ve installed the Oracle Database Cloud
Backup Module, add the OPC_CONTAINER parameter and the container name to
opcSID.ora.
For example:
OPC_CONTAINER=PAYROLL_DB
For information about parameters used by the installer, see Parameters Used to Run
the Backup Module Installer.
For information about the opcSID.ora configuration file, see Files Created When the
Backup Module is Installed.

Monitoring Your Storage Capacity


When you subscribe to Oracle Database Backup Service, you purchase the amount of
storage capacity that you want for your backups. If you reach your storage capacity
limit and try to back up your database, your backup will fail.
You can quickly increase the limit by purchasing more capacity on demand. Once you
buy more capacity, you can continue doing backups. You can also free up space in
some other way, such as by deleting any unwanted backups and performing other
maintenance tasks.
You can monitor how much storage capacity you've used by viewing detailed metrics
from the My Services dashboard. Click the service name to display the details page for
the service, and then click the Metrics tile to see usage data.

Administering Oracle Database Backup Service 2-9


3
Backing Up to Oracle Database Backup
Service

After you install the Oracle Database Cloud Backup Module and configure Recovery
Manager (RMAN) settings, you can perform backup and restore operations using
familiar RMAN commands. You’ll also use RMAN to specify retention policies,
perform crosschecks, and delete backups.
Information about your cloud backups is maintained in the database control file, and
in the recovery catalog if you use one.
Encryption is required to back up to Oracle Database Backup Service. You can use
password encryption, Transparent Data Encryption (TDE), or dual-mode encryption
(a combination of password and TDE).

Topics

• Backing Up to Oracle Database Backup Service Using Password Encryption

• Backing Up to Oracle Database Backup Service Using Transparent Data Encryption


(TDE)

Backing Up to Oracle Database Backup Service Using Password


Encryption
Password encryption can be used to back up to Oracle Database Backup Service. The
password must be specified each time you back up and restore.
The following example configures password encryption for the backup, and creates a
backup of the entire database:
RMAN> SET ENCRYPTION ON IDENTIFIED BY 'my_pswd' ONLY;
RMAN> BACKUP DEVICE TYPE sbt DATABASE;

Note:
If you forget or lose the password, you won’t be able to restore the backup.

Restoring and Recovering


The password used to encrypt a backup must also be used for restore and recovery
operations. For example:
RMAN> SET DECRYPTION IDENTIFIED BY 'my_pswd';
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;

Backing Up to Oracle Database Backup Service 3-1


Backing Up to Oracle Database Backup Service Using Transparent Data Encryption (TDE)

For information about performing various types of backups and restores, see Oracle
Database Backup and Recovery User's Guide.
For a complete list of RMAN commands, see Oracle Database Backup and Recovery
Reference.

Backing Up to Oracle Database Backup Service Using Transparent Data


Encryption (TDE)
You can use Transparent Data Encryption (TDE) to back up to Oracle Database
Backup Service. When you use TDE to back up Oracle databases, you don’t need to
provide a password every time you create or restore a backup.
Configure a software keystore if necessary. For information about creating a keystore,
see Oracle Database Advanced Security Guide.
To back up an Oracle database that uses TDE:

1. Connect Recovery Manager (RMAN) to the target database to be backed up and


configure encryption for the database:
RMAN> SET ENCRYPTION ON;

2. Back up the database:


RMAN> BACKUP DATABASE;

Restoring and Recovering


Use standard RMAN commands for restore and recovery:
RMAN> SET ENCRYPTION ON;
RMAN> RESTORE DATABASE;
RMAN> RECOVER DATABASE;

For information about performing various types of backups and restores, see Oracle
Database Backup and Recovery User's Guide.
For a complete list of RMAN commands, see Oracle Database Backup and Recovery
Reference.

3-2 Using Oracle Database Backup Service

You might also like