Using Oracle Database Backup Service
Using Oracle Database Backup Service
Using Oracle Database Backup Service
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
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
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:
• 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.
Related Resources
For more information, see these Oracle resources:
v
https://cloud.oracle.com/database_backup
• Oracle Database Backup Service FAQ (My Oracle Support Doc ID 1640149.1)
http://support.oracle.com
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.
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
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).
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.
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.
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
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
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
Topics
• The required patch if you’re using the Standard Edition of Oracle Database
• 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.
Operating system (64 bits) Linux, Solaris x86-64, SPARC, Windows, AIX,
HP-UX, zLinux
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
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
-opcID myAccount@myCompany.com
-opcPass abc123$
-serviceName myService
-identityDomain myDomain
-libDir /home/oracle/OPC/lib
-walletDir /home/oracle/OPC/wallet
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.
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
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.
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)';
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
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.
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
Note:
If you forget or lose the password, you won’t be able to restore the backup.
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.
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.