Oracle RMAN Agent 19.4 Administration Guide
Oracle RMAN Agent 19.4 Administration Guide
Oracle RMAN Agent 19.4 Administration Guide
Administration Guide
Version 19.4
Dell Inc.
July 2020
Rev. 02
Notes, cautions, and warnings
NOTE: A NOTE indicates important information that helps you make better use of your product.
CAUTION: A CAUTION indicates either potential damage to hardware or loss of data and tells you how to avoid the
problem.
WARNING: A WARNING indicates a potential for property damage, personal injury, or death.
© 2012 - 2020 Dell Inc. or its subsidiaries. All rights reserved. Dell, EMC, and other trademarks are trademarks of Dell Inc. or its subsidiaries. Other
trademarks may be trademarks of their respective owners.
Contents
Figures.......................................................................................................................................... 7
Tables............................................................................................................................................8
Preface..........................................................................................................................................9
Chapter 3: Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments.... 24
Oracle RMAN agent and DD OS upgrades...................................................................................................................... 24
Firewalls and ports...............................................................................................................................................................24
Enabling DD Boost on a Data Domain system................................................................................................................. 24
Enabling Oracle optimized deduplication..........................................................................................................................25
Configuring the DD Boost server...................................................................................................................................... 26
Creating storage units...................................................................................................................................................26
Configuring distributed segment processing............................................................................................................. 26
Configuring advanced load balancing and link failover..............................................................................................26
Enabling low-bandwidth optimization ........................................................................................................................ 27
Enabling encrypted file replication...............................................................................................................................28
Configuring client access validation............................................................................................................................ 28
Configuring DD Boost-over-FC service............................................................................................................................29
Sizing DD Boost-over-FC device-set......................................................................................................................... 30
Contents 3
Sizing calculation............................................................................................................................................................ 31
Configuring the SCSI device driver for AIX clients....................................................................................................33
Configuring the SCSI generic device driver for Solaris clients................................................................................ 33
4 Contents
Chapter 5: Data Domain System Administration............................................................................. 104
Restricting DD Boost access to specific database servers.......................................................................................... 104
File replication version compatibility................................................................................................................................ 105
Modifying an interface group........................................................................................................................................... 105
Removing the advanced load balancing and link failover configuration................................................................105
Contents 5
The ddutil command and options.....................................................................................................................................136
6 Contents
Figures
1. Oracle RMAN agent configuration.......................................................................................................................... 12
5. DD Boost-over-IP transport...................................................................................................................................... 17
Figures 7
Tables
1. Revision history..................................................................................................................................................................9
2. Style conventions........................................................................................................................................................... 10
10. The ddbmoim command options for Oracle Incremental Merge operations.................................... 76
15. The ddbmoim command options for Oracle Incremental Merge operations...................................130
8 Tables
Preface
As part of an effort to improve product lines, periodic revisions of software and hardware are released. Therefore, all versions of the
software or hardware currently in use might not support some functions that are described in this document. The product release notes
provide the most up-to-date information on product features.
If a product does not function correctly or does not function as described in this document, contact a technical support professional.
NOTE: This document was accurate at publication time. To ensure that you are using the latest version of this
document, go to the Support website https://www.dell.com/support.
Purpose
This document describes how to install, configure, and use the PowerProtect Oracle RMAN agent version 19.4 software.
In earlier versions of the product, the Oracle RMAN agent was known as Data Domain Boost (DD Boost) for Oracle Recovery Manager
(RMAN) or the RMAN plug-in. In version 4.0, the product name changed to Oracle RMAN agent.
NOTE: The Oracle RMAN agent uses Application Direct workflows, known in previous releases as DD Boost workflows.
Audience
This guide is for system administrators who are familiar with Oracle backup applications and general backup administration.
Revision history
The following table presents the revision history of this document.
01 March 31, 2020 Initial release of this document for Oracle RMAN agent 19.4.
Related documentation
The following publications provide additional information:
• PowerProtect Oracle RMAN Agent Release Notes
• DDBEA section of the eLab Navigator at https://elabnavigator.emc.com/eln/modernHomeDataProtection
• Data Domain Operating System documentation
• Data Domain system installation and setup guide for each supported platform, for example DD890, DD670, and so on
• PowerProtect Data Manager Administration and User Guide
• PowerProtect Data Manager Deployment Guide
• PowerProtect Data Manager Security Configuration Guide
• PowerProtect X400 Administration and User Guide
• PowerProtect X400 Deployment Guide
• PowerProtect X400 Security Configuration Guide
Preface 9
RMAN Documentation
Oracle 18c: From the Oracle Database Documentation library at https://docs.oracle.com/en/database/oracle/oracle-database/18/, select
Administration and select a guide under Backup and Recovery:
• Database Backup and Recovery Reference
• Database Backup and Recovery User’s Guide
Oracle 12c Release 2: From the Oracle Database Documentation library at https://docs.oracle.com/en/database/oracle/oracle-database/
12.2/index.html, select Administration and select a guide under Backup and Recovery:
• Database Backup and Recovery Reference
• Database Backup and Recovery User’s Guide
Oracle 12c Release 1: From the Oracle Database Documentation library at https://docs.oracle.com/database/121/index.htm, select
Database Administration and select a guide under Backup and Recovery:
• Backup and Recovery User’s Guide
• Backup and Recovery Reference
Oracle 11g Release 2: From the Oracle Database Documentation library at www.oracle.com/pls/db112/homepage, select Database
Administration and select a guide under Backup and Recovery:
• Backup and Recovery User’s Guide
• Backup and Recovery Reference
Oracle 10g Release 2: From the Oracle Database Documentation library at www.oracle.com/pls/db102/homepage, select Administration
and select a guide under Backup and Recovery:
• Backup and Recovery Reference
• Backup and Recovery Advanced User’s Guide
Typographical conventions
The following type style conventions are used in this document:
You can use the following resources to find more information about this product, obtain support, and provide feedback.
10 Preface
Where to get support
The Support website https://www.dell.com/support provides access to product licensing, documentation, advisories, downloads, and
how-to and troubleshooting information. The information can enable you to resolve a product issue before you contact Support.
To access a product-specific page:
1. Go to https://www.dell.com/support.
2. In the search box, type a product name, and then from the list that appears, select the product.
Knowledgebase
The Knowledgebase contains applicable solutions that you can search for either by solution number (for example, KB000xxxxxx) or by
keyword.
To search the Knowledgebase:
1. Go to https://www.dell.com/support.
2. On the Support tab, click Knowledge Base.
3. In the search box, type either the solution number or keywords. Optionally, you can limit the search to specific products by typing a
product name in the search box, and then selecting the product from the list that appears.
Live chat
To participate in a live interactive chat with a support agent:
1. Go to https://www.dell.com/support.
2. On the Support tab, click Contact Support.
3. On the Contact Information page, click the relevant support, and then proceed.
Service requests
To obtain in-depth help from Licensing, submit a service request. To submit a service request:
1. Go to https://www.dell.com/support.
2. On the Support tab, click Service Requests.
NOTE: To create a service request, you must have a valid support agreement. For details about either an account or
obtaining a valid support agreement, contact a sales representative. To find the details of a service request, in the
Service Request Number field, type the service request number, and then click the right arrow.
Online communities
For peer contacts, conversations, and content on product support and solutions, go to the Community Network https://
community.emc.com. Interactively engage with customers, partners, and certified professionals online.
Preface 11
1
Introducing the Oracle RMAN Agent
Topics:
• Overview of Oracle RMAN agent
• Supported configurations
• In earlier versions of the product, the Oracle RMAN agent was known as Data Domain Boost (DD Boost) for Oracle
Recovery Manager (RMAN) or the RMAN plug-in. In version 4.0, the product name changed to Oracle RMAN agent.
• The Oracle RMAN agent uses Application Direct workflows, known in previous releases as DD Boost workflows.
• Self-service backups and restores are backups and restores that you perform through RMAN or Oracle Enterprise
Manager (OEM).
The use of the Oracle RMAN agent improves performance while reducing the amount of data that is transferred over the LAN. In the
context of Oracle RMAN, the software has two components:
• An RMAN agent that you install on each database server. This RMAN agent includes the DD Boost libraries for communicating with
the DD Boost server that runs on the Data Domain system.
• The DD Boost server that runs on the Data Domain systems.
RMAN sets policies that control when backups and replications occur. Administrators manage backup, replication, and restore from a
single console and can use all the features of DD Boost, including WAN-efficient replicator software. RMAN manages all the files
(collections of data) in the catalog, even those created by the Data Domain system.
The Data Domain or PowerProtect X400 system exposes pre-made disk volumes called storage units to a DD Boost enabled database
server. Multiple database servers, each with the Oracle RMAN agent, can use the same storage unit on a Data Domain system as a
storage server. Each database server can run a different operating system, provided that it is supported by Data Domain.
The following figure shows an example configuration of the Oracle RMAN agent with Data Domain systems.
14 DD Boost Features
Figure 2. High-level data flow with distributed segment processing disabled
DD Boost Features 15
Advanced load balancing and link failover
NOTE: PowerProtect X400 systems do not support the advanced load balancing and link failover feature. This topic
applies only to Data Domain systems.
The advanced load balancing and link failover feature enables the combination of multiple Ethernet links into a group. Only one of the
interfaces on the Data Domain system is registered with RMAN. The Oracle RMAN agent negotiates with the Data Domain system on the
interface registered with RMAN to obtain an interface to send the data. The load balancing provides higher physical throughput to the
Data Domain system compared to configuring the interfaces into a virtual interface using Ethernet level aggregation.
The Data Domain system load balances the connections coming in from multiple database servers on all the interfaces in the group. The
load balancing is transparent to RMAN. Because advanced load balancing and link failover works at the software layer of the Oracle
RMAN agent, it is seamless to the underlying network connectivity and supports both physical and virtual interfaces.
The data transfer is load balanced based on the number of connections outstanding on the interfaces. Only connections for backup and
restore jobs are load balanced.
NOTE:
• The file replication connection between the Data Domain systems is not part of the load balancing. A single IP
address is used for the target Data Domain system.
• It is recommended that you exclude one interface from the interface group (ifgroup) and reserve it for the file
replication path between the source and target Data Domain systems. Every Oracle RMAN agent must be able to
connect to every interface that is a member of the interface group on the Data Domain system.
The following figure shows an example high-level configuration diagram. The interface marked in red is registered with RMAN.
The advanced load balancing and link failover feature can be used with other network layer aggregation and failover technologies. The
sample configuration in the preceding figure shows one such possibility. The links connecting the database servers and the switch that
connects to Data Domain system are put in an aggregated failover mode. This configuration provides end-to-end network failover
functionality. Any of the available aggregation technologies can be used between the database server and the switch.
The advanced load balancing and link failover functionality also works with other network layer functionality on the Data Domain systems,
including VLAN tagging and IP aliasing. This functionality enables additional flexibility in segregating traffic into multiple virtual networks, all
of which run over the same physical links on the Data Domain system.
NOTE: The Data Domain Operating System Administration Guide provides more information about how to configure
VLAN tagging and IP aliasing on a Data Domain system.
16 DD Boost Features
Advanced load balancing and link failover provides the following benefits:
• Eliminates the need to register multiple storage servers (one for each interface) with RMAN, which can potentially simplify installation
management.
• If one of the interfaces in the group goes down while the Data Domain system is still operational, the subsequent incoming backup jobs
are routed to the available interfaces.
• The backup and restore jobs are automatically load balanced on multiple interfaces in the group, which can potentially result in higher
utilization of the links.
• All in-flight jobs to the failed interface are failed over transparently to healthy operational links. From the point of view of RMAN, the
jobs continue uninterrupted.
Configuring advanced load balancing and link failover on page 26 provides more details.
Configuration restrictions
• Interfaces can be added only to the group by using an IP address.
• Although the advanced load balancing and link failover feature works with mixed 1 GbE interfaces and 10 GbE interfaces in a group,
this is not a recommended setup. It is recommended to have interfaces with the same link speed in a group.
• Prior to DD OS 5.2, only one interface group was supported on a Data Domain system. This meant that, to connect more than one
database server, a switch was needed in the middle. DD OS 5.2 and later support multiple interface groups, so this restriction no
longer applies.
Prior to DD OS release 5.3, all communication between the DD Boost library and any Data Domain system was performed by using IP
networking. The application specified the Data Domain system by using its hostname or IP address, and the DD Boost Library used TCP/IP
connections to transmit requests to, and receive responses from, the Data Domain system, as shown in the following figure.
DD OS release 5.3 introduced Fibre Channel as an alternative transport mechanism for communication between the DD Boost library and
the Data Domain system.
Certain installations prefer or require the use of Fibre Channel as the media for data transfer between media servers and storage systems.
The DD Boost-over-Fibre Channel transport (DD Boost-over-FC) enables such installations to access the features provided by the DD
Boost technology.
Although Fibre Channel is specified as a general-purpose data transport mechanism, in practice Fibre Channel is used solely as a transport
for SCSI device access. In standard host operating systems, such as Windows and Linux, Fibre Channel hardware and drivers reside solely
within the SCSI protocol stacks. Therefore, the DD Boost-over-FC transport must use SCSI commands for all communication.
In the DD Boost-over-FC solution, the Data Domain system advertises one or more SCSI devices of type Processor. The media server
operating system discovers these devices, and makes them available to applications through a generic SCSI mechanism (Linux: SCSI
Generic driver; Windows: SCSI Pass-Through Interface).
To request access to a Data Domain system by using the DD Boost-over-FC transport, the application specifies the Data Domain system
by using the special string DFC-<dfc-server-name>, where dfc-server-name is the DD Boost-over-FC server name configured for the
DD Boost Features 17
Data Domain system. The DD Boost-over-FC transport logic within the DD Boost library examines the set of generic SCSI devices
available on the media server and uses SCSI commands to identify a catalog of devices, which are paths to the specified Data Domain
system.
Referencing this catalog, the DD Boost-over-FC transport logic issues SCSI commands to the identified generic SCSI devices, to transfer
DD Boost protocol requests and responses between the library and the Data Domain system.
Figure 6. SCSI commands between media server and Data Domain system
Most DD Boost features are independent of the transport. One notable exception is the DD Boost-over-IP advanced load balancing and
link failover feature, and its associated ifgroups. This feature is specific to the IP transport. For the DD Boost-over-FC transport, load
balancing and link-level high availability is achieved through different means.
The DD Boost-over-FC communication path applies only between the media server/DD Boost library and the Data Domain system, and
does not apply to communication between two Data Domain systems. For example, the managed file replication section of this document
describes efficient replication of data from one Data Domain system to another, possibly over a WAN. As shown in the following figure,
such communication is always over a TCP/IP network, regardless of the communication path between the media server and the Data
Domain systems.
The Dynamic Interface Group (DIG)-based mechanism is based on Ethernet interfaces and is not applicable to the Fibre Channel
transport. Instead, a different path mechanism is provided for the DD Boost-over-FC solution.
The Data Domain system advertises one or more SCSI processor-type devices to the backup server, over one or more physical paths. The
operating system discovers all devices through all available paths, and creates a generic SCSI device for each discovered device and path.
For example, consider the following case:
18 DD Boost Features
• Backup server has 2 initiator HBA ports (A and B)
• Data Domain System has 2 FC target endpoints (C and D)
• Fibre Channel Fabric zoning is configured such that both initiator HBA ports can access both FC target endpoints
• Data Domain system is configured with a SCSI target access group that contains:
○ Both FC target endpoints on the Data Domain System
○ Both initiator HBA ports
○ 4 devices (0, 1, 2, and 3)
1. Four devices
2. Backup Server
3. HBA Initiator A
4. HBA Initiator B
5. Data Domain System
6. Fibre Channel Endpoint C
7. Fibre Channel Endpoint D
In this case, the backup server operating system may discover up to 16 generic SCSI devices, one for each combination of initiator, target
endpoint, and device number:
• /dev/sg11: (A, C, 0)
• /dev/sg12: (A, C, 1)
• /dev/sg13: (A, C, 2)
• /dev/sg14: (A, C, 3)
• /dev/sg15: (A, D, 0)
• /dev/sg16: (A, D, 1)
• /dev/sg17: (A, D, 2)
• /dev/sg18: (A, D, 3)
• /dev/sg19: (B, C, 0)
• /dev/sg20: (B, C, 1)
• /dev/sg21: (B, C, 2)
• /dev/sg22: (B, C, 3)
• /dev/sg23: (B, D, 0)
• /dev/sg24: (B, D, 1)
• /dev/sg25: (B, D, 2)
• /dev/sg26: (B, D, 3)
When the application requests that the DD Boost library establish a connection to the server, the DD Boost-over-FC transport logic within
the DD Boost library uses SCSI requests to build a catalog of these 16 generic SCSI devices, which are paths to access the DD Boost-
over-FC service on the required Data Domain system. As part of establishing the connection to the server, the DD Boost-over-FC
transport logic provides to the server this catalog of paths.
DD Boost Features 19
• For queue-depth constrained clients (see below), evenly distribute the connections across different paths.
• Choose the least-busy target endpoint.
• Choose the least-busy initiator from among paths to the selected target endpoint.
Dynamic re-balancing
The server periodically performs dynamic re-balancing. This involves consulting the statistics to look for situations where:
• For queue-depth constrained clients (see below), connections are distributed unequally across available paths.
• Workload across target endpoints is out of balance.
• Workload across initiators is out of balance.
If such a situation is discovered, the server can mark one or more connections for server-directed path migration. This is achieved by
having the server request, during a future data transfer operation, that the DD Boost library start using a different available path from the
catalog for subsequent operations.
Queue-depth constraints
For the purposes of the DD Boost-over-FC solution, the specific SCSI device over which a request is received is irrelevant. All SCSI
devices are identical, destination objects for SCSI commands as required by the SCSI protocol. When processing a SCSI request, the
server logic gives no consideration to the specific device on which the SCSI request arrived.
Why bother to allow for more than one device? Because certain client-side operating systems impose a restriction on the number of
outstanding I/O requests that can be conducted simultaneously over a given generic SCSI device. For example, the Windows SCSI Pass-
Through Interface mechanism will only conduct one SCSI request at a time through each of its generic SCSI devices. This impacts the
performance of the DD Boost-over FC solution, if multiple connections (such as backup jobs) try to use the same generic SCSI device.
Additionally, the Data Domain system also imposes a limit on the number of outstanding I/O requests per advertised SCSI device. For
performance reasons with larger workloads, multiple SCSI devices may need to be advertised on the Data Domain system.
The term queue-depth describes the system-imposed limit on the number of simultaneous SCSI requests on a single device. Client
systems, such as Windows, whose queue depth is so low as to impact performance are considered queue-depth constrained.
Refer to Sizing DD Boost-over-FC device-set on page 30 for guidance on how many devices to configure based on the workload, type of
Data Domain system, and whether or not the client system is queue-depth constrained.
20 DD Boost Features
Encrypted managed file replication
NOTE: If you have a PowerProtect X400 system, refer to the PowerProtect X400 documentation for information on how
to enable encryption of managed file replication. This topic applies only to Data Domain systems.
By default, file replication jobs are set up between two Data Domain systems without encryption after being authenticated by using the
preconfigured DD Boost username and password. If the encrypted file replication feature is enabled, the session between the source and
destination Data Domain systems is encrypted by using Secure Sockets Layer (SSL), which ensures that all the image data and metadata
is sent encrypted over the WAN.
Enabling this option on the Data Domain system is transparent to RMAN. When RMAN requests the Data Domain system to perform a file
replication job, the source and destination systems negotiate automatically to perform encryption without the knowledge of RMAN.
Encrypted file replication uses the ADH-AES256-SHA cipher suite. There is no ability to configure a different suite in the DD OS.
Encrypted file replication is available to a Data Domain system with an installed Replicator license, and applies to all the file replication jobs
on that system. Both the source and the destination Data Domain systems that are participating in file replication jobs must have this
option enabled. Otherwise, replication fails.
Encrypted file replication can be used with the encryption of data-at-rest feature that is available on the DD OS with the optional
Encryption license. When encrypted file replication is used with the encryption of data-at-rest feature, the encrypted backup image data is
encrypted again by using SSL for sending over a WAN.
NOTE:
• Both the source and the destination Data Domain systems must run DD OS 5.0 or later to use this feature.
• Enabling this feature does not require restarting the file system on a Data Domain system.
• The low-bandwidth optimization and the encryption options can be used with each other.
Enabling encrypted file replication on page 28 and the Data Domain Operating System Administration Guide provide more information
about this topic.
DD Boost performs periodic operations to force the user data to disk on the server. DD Boost on the client buffers all the user data
between these periodic synchronize-to-disk operations so that if a DD server fails, the data can be resent.
This method also applies to virtual writes. You can mix standard write operations with synthetic write operations.
Partial HA configurations
Managed file replication (MFR) is supported between any two Data Domain systems that run compatible versions of DD OS, regardless of
whether one or both of the DD systems is enabled for HA.
MFR between two HA systems succeeds in the event of failure of either system because both systems support HA. An MFR in progress
recovers seamlessly if either the source HA system or the destination HA system fails.
DD Boost Features 21
MFR between an HA system and a non-HA system succeeds if the HA system fails, but does not succeed if the non-HA system fails.
Low-bandwidth optimization
NOTE: If you have a PowerProtect X400 system, refer to the PowerProtect X400 documentation for information on the
replication options. This topic applies only to Data Domain systems.
The low-bandwidth Replicator option reduces the WAN bandwidth utilization. This option is useful if file replication is performed over a
low-bandwidth network (WAN) link. This option provides additional compression during data transfer and is recommended only for file
replication jobs that occur over WAN links that have fewer than 6 Mb/s of available bandwidth.
The low-bandwidth optimization option is available to Data Domain systems with an installed Replicator license. The option is enabled on a
Data Domain system and applies to all the file replication jobs on that system.
Enabling this option on Data Domain system is transparent to RMAN. When RMAN requests a Data Domain system to perform a file
replication job, the source and destination systems automatically perform the additional compression without involving RMAN.
Each Data Domain system that participates in managed file replication must have this option enabled.
Enabling low-bandwidth optimization on page 27 and the Data Domain Operating System Administration Guide provide more information
about this topic.
In-flight encryption
NOTE: PowerProtect X400 systems do not support the in-flight encryption feature. This topic applies only to Data
Domain systems.
In-flight encryption enables applications to encrypt in-flight backup or restore data over the LAN from the Data Domain system. This
feature was introduced to offer a more secure data transport capability.
When configured, the client is able to use TLS to encrypt the session between the client and the Data Domain system. The specific cipher
suite used is either ADH-AES256-SHA, if the HIGH encryption option is selected, or ADH-AES128-SHA, if the MEDIUM encryption option
is selected.
22 DD Boost Features
Marker support
The default marker support setting is auto marker handling. If any marker is encountered in the first 512 KB of a write stream, support is
enabled for that stream. Users can toggle the marker settings on a protection system. The DD OS Administration Guide provides details.
DD Boost Features 23
3
Configuring the Data Domain System for
Stand-alone Oracle RMAN Agent Deployments
NOTE: When the Oracle RMAN agent is deployed with PowerProtect Data Manager or PowerProtect X400, refer to the
PowerProtect Data Manager or PowerProtect X400 documentation for information about the protection target
configuration.
Topics:
• Oracle RMAN agent and DD OS upgrades
• Firewalls and ports
• Enabling DD Boost on a Data Domain system
• Enabling Oracle optimized deduplication
• Configuring the DD Boost server
• Configuring DD Boost-over-FC service
Steps
1. On the Data Domain system, log in as an administrative user.
2. Verify that the file system is enabled and running:
# filesys status
24 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
If disabled, enable the file system:
# filesys enable
# license show
Feature licenses:
4. Establish the DD Boost username and password for the Data Domain system.
NOTE: The username and password are case-sensitive, and must match the username and password provided in
Registering each Data Domain system on page 45.
NOTE: If the username is changed or deleted, the change in access rights does not affect any current operations.
For example, deleting the current clients from the DD Boost access list by using the ddboost clients del
<client-list> command does not stop a file backup that is already in progress. All operations in progress continue.
The change in access rights does not cause existing operations to fail. It is recommended to change access rights
only when no RMAN operations are in progress. The ddboost disable command can be used to prevent operations
while access is changed. Disabling DD Boost terminates any existing operations, so be careful that no RMAN
operations are in progress when you disable DD Boost. After changing access, ddboost enable re-enables DD
Boost and enables RMAN operations that are then subject to the changed access rights.
5. Enable DD Boost:
# ddboost enable
DD Boost enabled
In the following command output, the MTrees with the value of oracle1 have the Oracle optimized deduplication enabled:
Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments 25
/data/col1/pool-test app-optimized-compression global (none)
/data/col1/tdeoracle app-optimized-compression oracle1
Refer to the online white paper, Dell EMC Data Domain Oracle Optimized Deduplication, for more details on when to enable the Oracle
optimized deduplication feature.
Steps
1. On the Data Domain system, enter the following command:
2. Repeat step 1 for each storage unit that you want to create. Create at least one storage unit on each Data Domain system that you
will use with RMAN. You can share a storage unit on a Data Domain system with more than one RMAN client system.
NOTE: Enabling or disabling the distributed segment processing option does not require a restart of the Data Domain
file system.
Distributed segment processing is supported with the Oracle RMAN agent 1.0 or later communicating with a Data Domain system that
runs DD OS 5.0 or later.
Distributed segment processing is enabled by default on a system initially installed with DD OS 5.2. If a system is upgraded from DD OS
5.0.x or 5.1.x to DD OS 5.2, distributed segment processing is left in its previous state.
26 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
Create an interface group on the Data Domain system by adding existing interfaces to the group and registering the Data Domain system
with RMAN, as described in the following steps.
Steps
1. Add the interfaces into the group (the interfaces must have been created already with the net command):
NOTE: This example assumes that no additional named interface groups have been created and uses the default
interface group. To see help for the net command, enter the command with no arguments at the DD OS prompt.
2. Select one interface on the Data Domain system to register with RMAN. It is recommended that you create a failover aggregated
interface and register that interface with RMAN.
NOTE: It is not mandatory to use an interface in the ifgroup to register with RMAN. An interface that is not part of
the ifgroup can also be used to register with RMAN. It is recommended that the interface be registered with a
resolvable name using DNS or any other name resolution mechanism.
After the interface group is set up, you can add or delete interfaces from the group. Modifying an interface group on page 105
provides details.
NOTE:
You can manage the advanced load balancing and link failover through either of the following methods:
Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments 27
No configuration changes are required on the database server as this feature is transparent to RMAN.
NOTE:
• Enabling this feature takes additional resources of CPU and memory on the Data Domain system, so it is
recommended that this option be used only when file replication is being done over low-bandwidth networks with
less than 6 Mbps aggregate bandwidth.
• The Data Domain Operating System Administration Guide provides more information about this feature.
The output indicates that the encryption you requested was enabled.
file-replication on page 112 provides more details about how to monitor and manage the encryption option for file replication.
Turning on this feature takes additional resources of CPU and memory on the Data Domain system.
NOTE: Enabling or disabling the encrypted file replication option does not require a restart of the Data Domain file
system. For more information on this feature, see the discussion about this topic in the Data Domain Operating System
Administration Guide.
Encrypted file replication must be enabled on both of the Data Domain systems involved in the replication. If either system does not have
encryption file replication enabled, encryption will not be used during replication between the two Data Domain systems.
Optionally, to delete all the clients previously added and reset the DD Boost clients list, run the following command:
Clients can be added as both fully qualified domain names and short names. To add clients to the DD Boost clients list, run the following
command:
For example:
: Addedddboost-dl : Added
To view the DD Boost clients list, run the following command:
28 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
*.corp.emc.com medium anonymous
rtp-ost-ms02.domain high anonymous
rtp-ost-ms02.domain.com high anonymous
During access validation, the following search order is used to restrict access:
• Wild card * followed by partial, for example, *.emc.com followed by *.com
• Perfect match of sent client name, for example, ddboost-dl.emc.com
If the search does not find a matching entry for the client, the client will be denied access.
This command can enable encryption for a single client or for a set of clients. The authentication-mode option is used to configure the
minimum authentication requirement. A client trying to connect by using a weaker authentication setting will be blocked. Both one-way
and two-way authentication require the client to be knowledgeable about certificates.
One-Way The DD Boost client requests authentication from the Data Domain server, and the Data Domain server sends the
Authentication appropriate certificate to the DD Boost client. The DD Boost client verifies the certificate. The communication
channel between the DD Boost client and the Data Domain server is encrypted.
Two-Way The DD Boost client requests authentication from the Data Domain server using the server certificate. The Data
Authentication Domain server also requests authentication from the DD Boost client using the client certificate. After
authentication through an SSL handshake, the communication channel between the DD Boost client and the Data
Domain server is encrypted.
Anonymous No certificates are exchanged, but information is exchanged. After the SSL handshake, the communication
Authentication channel between the DD Boost client and the Data Domain server is encrypted.
NOTE: This option does not apply to DD Boost-over-Fibre Channel (FC). If both IP and FC are in use, encryption can be
enabled on IP connections.
Steps
1. Enable the DD Boost-over-FC service:
Or accept the default, which is the base hostname of the Data Domain system. A valid dfc-server-name consists of one or more of the
following characters:
• lower-case letters ("a"–"z")
• upper-case letters ("A"–"Z")
• digits ("0"–"9")
• underscore ("_")
• dash ("–")
Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments 29
NOTE:
• The dot or period character (".") is not valid within a dfc-server-name; this precludes using the fully-qualified
domain name of a Data Domain system as its dfc-server-name.
• Similar to IP hostnames, the dfc-server-name is not case-sensitive. Multiple Data Domain sytems accessible by
the same clients using DDBoost-over-FC should be configured without case-sensitive dfc-server-name.
For example:
5. Configure the device set of the SCSI target access group for one of the endpoint:
For example:
For example:
The number of DFC devices advertised to the initiator is controlled by configuring the device-set of the scsitarget access group:
The maximum number of supported DFC devices per Data Domain system is 64. You can have the same devices in multiple groups, but
each group is limited to 64 devices.
NOTE: AIX DDdfc drivers support 128 devices. However, if you use the disk option with the ddboost fc add
command, this limitation is removed.
Because the DFC client sees each path to the Data Domain system as a separate device, more paths and more DFC devices mean better
performance for constrained clients such as AIX, Windows, and Solaris.
So, how many DFC devices should be advertised to initiators on a given backup server? The answer depends upon several factors:
30 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
1. Is the backup server queue-depth constrained?
Windows platforms are considered "queue-depth constrained," because the Windows SCSI Pass-Through Interface mechanism will
only conduct 1 SCSI request at a time through each of its generic SCSI devices. This impacts the performance of the DD Boost-over
FC solution, if multiple connections (for example, backup jobs) are trying to use the same generic SCSI device. So, for Windows
platforms running more than one job, it is useful to advertise multiple DFC devices.
Contrast this with the behavior of the Linux SCSI Generic driver, which imposes no such restriction. Linux is not considered "queue-
depth constrained," so it is sufficient to simply advertise one DFC device to initiators on Linux systems.
2. Number of physical paths between backup server and Data Domain system
For each advertised DFC device, the backup server operating system will create n generic SCSI devices, one for each physical path
through which the backup server OS can access the device.
For example, if:
• Backup server has 2 initiator HBA ports (A and B)
• Data Domain System has 2 FC target endpoints (C and D)
• Fibre Channel Fabric zoning is configured such that both initiator HBA ports can access both FC target endpoints
then the backup server OS will see each device through four physical paths:
A -> C
A -> D
B -> C
B -> D
and will create 4 generic SCSI devices for each advertised DFC device.
For a Windows backup server (with its queue-depth=1 limitation), this allows up to 4 simultaneous SCSI requests to the Data Domain
system, even with only one DFC device advertised.
Sizing calculation
The following calculation may be used to determine the number of DFC devices to advertise on the Data Domain system and to the
initiators on a specified media server. It is recommended that the same number of DFC devices be advertised to all initiators on the same
media server.
Example
Assume:
• 8 backup servers, DD Extended Retention systems, each server running a maximum of 30 jobs at any given time.
• Here, J = 8 * 30 = 240, C = 3 (DD Extended Retention systems), S = J * C = 720, D = 2 * 720 / 128 = 11.25, round up to 12.
• As a result, all DFC groups on the Data Domain system must be configured with 12 devices.
Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments 31
Linux backup servers
The number of DFC devices advertised on the Data Domain system using the calculations listed under On the Data Domain system on
page 31 is sufficient for Linux backup servers. No additional configuration is required. Linux backup servers are not queue-depth
constrained, so many connections can share the same DFC generic SCSI device with no performance impact.
32 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
Configuring the SCSI device driver for AIX clients
DD Boost-over-FC is supported on clients that run the supported AIX versions on IBM Power hardware. DFC for AIX uses the SCSI
generic device driver, which is included in the AIX installation.
By default, the Oracle RMAN agent uses the SCSI generic device driver, which does not require the installation of any drivers.
To check for the SCSI generic device driver, you can run the lsdev command and review the command output. The command output for
this device driver includes the device names as hdisk* and the type as Other FC SCSI Disk Drive. For example:
lsdev
Steps
1. Add the following line in the forceload section of /etc/system:
forceload: drv/sgen
This step should resolve issues with sgen not properly loading during startup and keep the sgen driver loaded.
2. To check for existing usage of sgen, run the command grep sgen /etc/driver_aliases.
NOTE: The existence of a /dev/scsi, /dev/scsi/processor, or /dev/scsi/* directory does not necessarily
mean that sgen is currently configured. There could be dangling files.
3. If there is no existing use of sgen, or if sgen is used only for "scsiclass,03", perform the following steps:
a. Run the command rem_drv sgen.
b. Run the command add_drv –m '* 0600 root sys' –i '"scsiclass,03"' sgen.
NOTE: It is critical that you use single and double quotes exactly as shown.
This command should return to the prompt with no errors or warnings. Check connectivity to the Data Domain system. There
should be at least one file in /dev/scsi/processor.
c. To confirm at least one entry for three configuration files, run the command grep sgen /etc/minor_perm /etc/
name_to_major and /etc/driver_aliases.
Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments 33
Example results of this command are as follows:
/etc/minor_perm:sgen * 0600 root sys
/etc/name_to_major:sgen 151
/etc/driver_aliases:sgen "scsiclass,03"
NOTE: The name_to_major number will likely be different than this example.
4. If the sgen device is already used for other devices, perform the following steps:
a. Run the command rem_drv sgen.
b. Run the command add_drv –m '* 0600 root sys' –i '"scsiclass,03" "scsiclass,XX"' sgen.
NOTE: XX would be the device type from a previously run command grep sgen /etc/driver_aliases. It is
critical that you use single and double quotes exactly as shown.
An example of this command is as follows: add_drv –m '* 0600 root sys' –i '"scsiclass,03"
"scsiclass,06"' sgen.
This command should return to the prompt with no errors or warnings. Check connectivity to the Data Domain system. There
should be at least one file in /dev/scsi/processor.
c. To confirm at least one entry for three configuration files, run the command grep sgen /etc/minor_perm /etc/
name_to_major and /etc/driver_aliases.
d. Open the /kernel/drv/sgen.conf file. If the device-type-config-list is uncommented, add “processor” to the list to ensure
that the driver is recognized. For example, if the device-type-config-list is uncommented as in this example:
device-type-config-list="direct", "sequential", "worm", "rodirect", "optical", "changer";
Change the entry to:
device-type-config-list="direct", "sequential", "worm", "rodirect", "optical", "changer",
"processor";
34 Configuring the Data Domain System for Stand-alone Oracle RMAN Agent Deployments
4
Configuring the Oracle RMAN Agent for
Stand-alone Deployment
NOTE: This chapter applies only to configuration of stand-alone deployments on Data Domain systems, not
PowerProtect Data Manager or PowerProtect X400 systems.
Topics:
• Installing and configuring the Oracle RMAN agent on AIX, Linux, and Solaris systems
• Installing and configuring the Oracle RMAN agent on Windows systems
• Registering each Data Domain system
• Migrating an Oracle configuration from the database application agent
• Performing backups of a clustered environment to Data Domain
• Data Domain replication
• Specifying subdirectories for Oracle RMAN agent backups
• Performing backups and restores of Oracle CDBs and PDBs
• Performing DD Boost compressed restores
• Display and deletion of backups
• Oracle Incremental Merge operations
• Configuring the use of Data Domain Cloud Tier for data movement to the cloud
• Usage limits on Data Domain resources
The user-specified installation directory must be a directory that is created specifically for the Oracle RMAN agent 19.4
installation, and must not be the ORACLE_HOME directory. The complete directory pathname must be specified, without
a slash (/) at the end.
For an installation in a non-default directory path, you must create the directory path and assign the Oracle user
privileges to the directory path.
To upgrade from a pre-4.0 version, use either of the following methods:
• Run the uninstallation script, uninstall.sh, to uninstall the pre-4.0 software and then install the Oracle RMAN agent 19.4.
Uninstalling the Oracle RMAN agent on database servers on page 40 describes how to use the uninstallation script.
• Run the installation script to install the version 19.4 software and at the same time remove or update the pre-4.0 Oracle RMAN agent
settings.
# export DD_CREDENTIALS_UPDATE=FALSE
# export RMAN_AGENT_HOME=<$RMAN_AGENT_HOME>
# export RMAN_AGENT_INSTALL_OPTIONS=OVERWRITE
2. Run the install.sh script without any command-line options, as described in Installing the Oracle RMAN agent on Linux and
UNIX on page 37.
NOTE: ORACLE_HOME is an Oracle environment variable. The other variables are the Oracle RMAN agent environment
variables.
RMAN_AGENT_INSTALL_ Required only when Oracle RMAN agent already • Undefined (default).
OPTIONS exists in the installation directory. • BYPASS or bypass—Specifies to bypass
Specifies whether to bypass the version 19.4 the version 19.4 installation.
installation or continue and overwrite the • OVERWRITE or overwrite—Specifies to
existing installation. continue the version 19.4 installation and
overwrite the existing installation in the
NOTE: For an upgrade from version 4.0 destination directory.
or later, set this variable to the
OVERWRITE or overwrite value.
Perform the download and installation steps for the environment as described in the following topic.
Steps
1. Ensure that no backups are running. Stop the RMAN processes before you install the Oracle RMAN agent.
NOTE: If you use AIX and you experience copy failures, you might need to run /usr/bin/slibclean as the root
user after you stop the RMAN processes.
2. Download the Oracle RMAN agent as the software package for the operating system from the Support website at https://
support.emc.com.
The following table shows the software package names for the supported operating systems.
3. Change the ownership of the tar file to the oracle user by running the following command:
Uncompress the downloaded tar file using the oracle user by running the following command:
4. If you want the installation script to run automatically, ensure that you set the multiple environment variables that are described in
Installing the Oracle RMAN agent on database servers on page 35.
For example, you want to run an automatic installation that overwrites an existing Oracle RMAN agent 19.4 in the default directory and
uninstalls a pre-4.0 installation under ORACLE_HOME without any prompts. In this case, run the following commands to set the
required environment variables before you run the installation script:
# export DD_CREDENTIALS_UPDATE=FALSE
# export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1/
# export RMAN_AGENT_INSTALL_OPTIONS=overwrite
# export RMAN_AGENT_HOME=/home/oracle/opt/dpsapps/rmanagent/
# export RMAN_AGENT_UPGRADE_OPTIONS=uninstall
# export DD_CREDENTIALS_UPDATE=FALSE
# export RMAN_AGENT_HOME=<$RMAN_AGENT_HOME>
# export RMAN_AGENT_INSTALL_OPTIONS=OVERWRITE
To verify the value of an environment variable, run the echo command. For example:
# echo $RMAN_AGENT_HOME
/home/oracle/opt/dpsapps/rmanagent
./install.sh
NOTE: When you set the required environment variables for an automatic (silent) install or upgrade, the
install.sh script runs without displaying prompts. Otherwise, the script displays specific prompts, described as
follows.
If RMAN_AGENT_HOME is not set, the script displays the following prompt:
Do you want to install under the default installation directory $HOME/opt/dpsapps/rmanagent?
(y or n)
Type the appropriate value:
• To install to the default directory, type y.
• To install in a non-default directory, type n.
The script prompts you to enter the installation directory pathname:
A directory outside of the ORACLE_HOME directory must have been created specifically for
this installation. Enter the full pathname of the installation destination:
Type the pathname of an already created installation directory.
As a PowerProtect Data Manager user, update the existing Data Domain details? (y or n) y
Data Domain server name: 10.31.140.205
Data Domain storage unit name: rman
b. The installer prompts whether to uninstall pre-4.0 software. Type the appropriate value:
• To uninstall the pre-4.0 software, type y.
• To keep and use the pre-4.0 software, type n. You can later run the uninstallation script if required to uninstall the pre-4.0
software, as described in Uninstalling the Oracle RMAN agent on Linux and UNIX on page 41.
c. If you selected to uninstall pre-4.0 software in the preceding step, the installer prompts whether to update the Oracle settings
under $ORACLE_HOME. The updated settings will enable the reuse of RMAN scripts from the previous version without any script
changes. Type the appropriate value:
• To enable the reuse of the pre-4.0 RMAN scripts without script changes, type y.
• To prevent updates of the Oracle settings, type n. Then, to make any pre-4.0 RMAN script usable with the Oracle RMAN
agent 19.4, you must change the following items in the script:
○ Set SBT_LIBRARY to $RMAN_AGENT_HOME/lib/libddobk.so.
○ Replace the ORACLE_HOME setting with the RMAN_AGENT_HOME setting.
The Oracle RMAN agent 19.4 files are installed in the following directories on a Linux or UNIX system.
libddobk.so
libDDBoost.so
libEnshroud-OpenSSL.so
libcrypto.so.1.0.0
libddvdisk.so
libssl.so.1.0.0
ddboost.config.bak.FCD
rman_agent_home.cfg $ORACLE_HOME/config
NOTE: This configuration file is created during an
update from a pre-4.0 installation.
7. After the software installation, if you want to use an existing lockbox in a non-default directory, upgrade the lockbox through either of
the following procedures:
• Run the following ddutil -U command to upgrade the lockbox and then copy the existing lockbox files to the default directory,
$RMAN_AGENT_HOME/config. The command must include the complete pathname of the non-default directory. For example:
ddutil -U -a LOCKBOX_IMPORT=TRUE
CAUTION: If you do not run the appropriate ddutil -U command to upgrade the existing lockbox, any subsequent
backup, restore, and query operations will fail with an error message.
Steps
1. Ensure that backup and restore operations are not in progress when you uninstall the Oracle RMAN agent.
2. If you want the uninstallation script to run automatically, ensure that the required environment variables are set as described in
Uninstalling the Oracle RMAN agent on database servers on page 40. To verify the value of an environment variable, run the echo
command. For example:
# echo $RMAN_AGENT_HOME
/home/oracle/opt/dpsapps/rmanagent
To set the RMAN_AGENT_HOME environment variable, run the export command. For example:
# export RMAN_AGENT_HOME=/opt/dpsapps/rmanagent
# ./uninstall.sh
4. If the script does not run automatically, type the appropriate values at the prompts.
When prompted for a directory pathname for the uninstallation, you can specify the pathname of the Oracle RMAN agent that is
installed. Type the complete pathname without a slash (/) at the end.
If the script detects an additional installation of Oracle RMAN agent, the script prompts whether to uninstall that version. You can
specify to keep or uninstall the software.
The storage unit specified in the following command must already exist on the Data Domain system.
The same storage unit must be used for both manual and scheduled backups. The latest PowerProtect Data Manager or
PowerProtect X400 documentation provides details on how to set up and perform scheduled backups.
The following example shows the command syntax for configuring a channel in a Linux or UNIX environment.
The configuration that you specify is also displayed in the Media Management Settings field of Oracle Enterprise Manager (OEM).
Steps
1. Download the Oracle RMAN agent as the Windows software package from the Support website at https://support.emc.com/.
The Windows software package name is ddrman194_ntx64.zip.
2. Install the Oracle RMAN agent by using either of the following methods:
• Interactive method with the installation wizard:
a. Double-click Oracle RMAN agent.exe to launch the installation wizard.
The Welcome to the Setup Wizard page appears.
NOTE: Run only one instance of the installation wizard at a time. If you try to run more than one instance, the
wizard operation terminates with an error.
b. Read the terms of the Software License and Support Services Agreement, select I Agree, and then click Next to continue.
c. The Change Install Location page displays the default destination directory for the installation as %LOCALAPPDATA%
\RMANAgent, for example, C:\Users\Administrator\AppData\Local\RMANAgent. The Oracle RMAN agent
components will be installed in subdirectories in this destination directory.
Accept or change the installation directory:
○ To accept the displayed directory for the installation, click Install.
○ To change the displayed directory, click Change and browse to select a different directory. When the correct directory is
displayed, click Install.
d. If any previous versions of Oracle RMAN agent are installed, an Upgrade Options page displays a list of the previous
installations. Select to keep or remove the previous installations as required:
○ To uninstall all the previous installations, select Remove all the previous Oracle RMAN agent installations.
○ To copy the pre-4.0 lockbox files from one of the displayed installations to the %RMAN_AGENT_HOME%\config directory:
NOTE: The upgrade of Oracle RMAN agent from a previous version includes an automatic upgrade of the lockbox.
The Oracle RMAN agent 19.4 files are installed in the following directories on a Windows system.
libDDBoost.dll
libDataDomainoncrpc.dll
libDataDomainpthread.dll
Enshroud-OpenSSL.dll
msvcr100.dll
ddboost.config.bak
ddboost.config.FCD
ddboost.config.bak.FCD
3. After the software installation, if you want to use an existing lockbox in a non-default directory, upgrade the lockbox through either of
the following procedures:
• Run the following ddutil -U command to upgrade the lockbox and then copy the existing lockbox files to the default directory,
%RMAN_AGENT_HOME%\config. The command must include the complete pathname of the non-default directory. For example:
• Copy the existing lockbox files from the non-default directory to the default directory, %RMAN_AGENT_HOME%\config, and then
run the following ddutil -U command to upgrade the lockbox:
ddutil -U -a LOCKBOX_IMPORT=TRUE
CAUTION: If you do not run the appropriate ddutil -U command to upgrade the existing lockbox, any subsequent
backup, restore, and query operations will fail with an error message.
Steps
1. Ensure that backup and restore operations are not in progress when you uninstall the Oracle RMAN agent.
2. Uninstall the Oracle RMAN agent by using the uninstall/change program feature in the Windows Control Panel, as used to uninstall a
typical Windows program. Be careful to select and uninstall the correct item for the Oracle RMAN agent.
Open the Windows Control Panel, and then select Program and Features.
3. In the Uninstall or change a program window, select Oracle RMAN agent and then click Uninstall.
4. In the Install Modification window, select the Remove radio button and then click Remove.
NOTE: The Change option is not supported for the Oracle RMAN agent. The Repair option can be selected to restore
the installation to its original state without affecting any user-generated files or configuration files.
The Uninstallation Progress window displays a progress bar. The software files are uninstalled without removing any user-generated
files or configuration files.
5. When the uninstallation completes, the Complete the Setup window displays information about the log, any errors, and the software
uninstallation status. Click Finish to exit the wizard.
NOTE: The storage unit specified in the following command must already exist on the Data Domain system.
The following example shows the Oracle RMAN command syntax for configuring a channel in a Windows environment:
The configuration that you specify is also displayed in the Media Management Settings field of Oracle Enterprise Manager (OEM).
In a typical case, a single Oracle host system is in use, or multiple host systems exist and each has its own Oracle instance and its own
Oracle home directory. In this typical case, register the Data Domain systems as described in Registering a standard Data Domain system
on page 45. Each client system has its own lockbox file, accessible only to that system.
When a Data Domain system has DD Boost over Fibre Channel, register the Data Domain system as described in Registering a Data
Domain system with DD Boost over Fibre Channel on page 47.
In some cases, such as in an Oracle RAC environment, multiple system nodes share an Oracle home directory and thus share a lockbox file.
In these cases, create a lockbox file that can be accessed by multiple systems as described in Registering a Data Domain system for
shared lockbox access on page 48.
ddutil -C
Password: <password>
Re-enter password: <password>
When you specify the -a VERIFY_CREDENTIAL=TRUE argument, the ddutil command verifies the DD Boost user credential with
the specified Data Domain server before saving the credential in the lockbox. If the credential verification fails, the command prints an
error message, stating that it cannot connect to the Data Domain system, and does not save the credential. When you do not specify the
-a VERIFY_CREDENTIAL=TRUE argument, the program saves the DD Boost user credential directly in the lockbox without performing
any credential verification.
Ensure that you specify the correct values in the command and at the prompts:
• The <server_name> value is the name of the Data Domain server exactly as specified by the BACKUP_HOST value in the CONFIGURE
CHANNEL command. The <server_name> value is case-sensitive, and the same form of the name must be specified with the ddutil
-C command as with the CONFIGURE CHANNEL command.
For example, if server1.domain.com was used when configuring the channel, you must also use server1.domain.com here. Do not use
SERVER1.domain.com or server1. An IP address can be used, if that same IP address was used in the CONFIGURE CHANNEL
command. You can register multiple forms of the server name. For example, you can register both server1 and server1.domain.com and
use either of those names in CONFIGURE CHANNEL commands.
• The <storage_unit_name> value is the name of a storage unit on the Data Domain server that will be used for backup operations with
the Oracle RMAN agent.
• The <username> value is the DD Boost username that you set with the user add command and ddboost user assign
command when you enable DD Boost on the Data Domain system. The username is case-sensitive, and must match exactly the value
set on the Data Domain system.
Registering a Data Domain system with DD Boost over Fibre Channel is almost the same as registering a standard Data Domain system,
but with one important difference. For the Data Domain server name, you must specify the configured Fibre Channel server name.
Register each Data Domain system with DD Boost over Fibre Channel by using the ddutil command with the -C option or by using an
RMAN command within a script. Use the instructions in one of the following subtopics:
• Using a ddutil -C command to register a Data Domain system with DD Boost over Fibre Channel on page 48
• Using an RMAN command to register a Data Domain system with DD Boost over Fibre Channel on page 48
Specify the configured Fibre Channel server name for the BACKUP_HOST parameter:
RUN {
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'BLKSIZE=1048576, SBT_LIBRARY=/home/oracle1/
ddboost_home/lib/libddobk.so,
ENV=(STORAGE_UNIT=<storage_unit>,BACKUP_HOST=<DFC_server_name>,
RMAN_AGENT_HOME=/home/oracle1/ddboost_home)' FORMAT '%d_%U_%t';
}
After you register a Data Domain system in the lockbox, you can perform backups and restores with the Data Domain system by using
'device type sbt_tape'. If you want all the backups to go to the Data Domain system, configure SBT_TAPE as the default device
by using the following command:
Password: <password>
Re-enter password: <password>
The <DFC_server_name> value is the Fibre Channel server name exactly as specified by the BACKUP_HOST value in the CONFIGURE
CHANNEL command. The <DFC_server_name> value is case-sensitive, and the same form of the name must be specified with the
ddutil -C command as with the CONFIGURE CHANNEL command.
For example, run the following command to determine the Fibre Channel server name:
When you run this command to create the lockbox, all the hosts that you specify in the command are given access to the lockbox.
You run the ddutil -H command only once, to create the lockbox. All the hosts that share access to the lockbox must be specified in a
single ddutil -H command. It is not possible to grant additional hosts access to the lockbox later. In that case, you must delete the
existing lockbox file and then create a new lockbox file with all the hostnames.
Run the ddutil -H command before you run the registration command. All the hosts that will access the shared lockbox file must be
listed in the <hostname-1> ... <hostname-n> list. Specify each <hostname> value as a fully qualified hostname, for example,
test1.datadomain.com.
For example, the following command creates a lockbox that can be shared by three database client host systems:
When the Oracle RMAN agent receives the ddutil -H command, the Oracle RMAN agent checks if a lockbox file already exists. If so,
an error is reported, and a message (logged in the RMAN trace file) reports this and instructs the user to delete the lockbox file if
preferred and repeat the command. The Oracle RMAN agent does not delete an existing lockbox file.
If no lockbox file exists, the Oracle RMAN agent creates a lockbox file, and all the specified hosts are granted access to the new lockbox.
The lockbox can then be used and shared by all these hosts. Next, register each Data Domain system that these hosts will access. You can
register additional Data Domain systems at any time after the lockbox is created. Register each Data Domain system as described in
Registering a standard Data Domain system on page 45. Because all the specified hosts have access to the lockbox, you can register the
Data Domain systems on any of the listed host systems. Each Data Domain system must be registered only once.
It is not possible to add additional hostnames after the ddutil -H command has been run. The only way to add additional hostnames is
to delete the current lockbox file and then re-create the file by running the ddutil -H command again, this time with all the required
hostnames. However, the lockbox contents are lost, and all the Data Domain systems must be re-registered.
Steps
1. Discontinue all the Oracle backups that are performed with the database application agent.
2. Install the Oracle RMAN agent according to the appropriate instructions:
• Installing and configuring the Oracle RMAN agent on AIX, Linux, and Solaris systems on page 35
• Installing and configuring the Oracle RMAN agent on Windows systems on page 42
NOTE: The Oracle RMAN agent installation does not modify any of the database application agent files on the same
system.
3. Create the required lockbox for the Oracle RMAN agent operations by using the appropriate ddutil -C command as described in
Registering each Data Domain system on page 45.
4. Update the RMAN scripts as described in Updating the RMAN scripts for Oracle RMAN agent operations on page 51.
5. Use the correct type of RMAN script for restore, crosscheck, and delete operations as described in Using the correct RMAN script for
restore, crosscheck, and delete operations on page 52.
NOTE: You must allocate channels for both the database application agent and Oracle RMAN agent, for the restore,
crosscheck, and delete operations on any unexpired Oracle backups that were previously performed with the
database application agent. You can maintain the database application agent software on the Oracle database server
host as long as needed.
6. To enable the cloud tier operations with the Oracle RMAN agent, update the required data movement policies as described in
Updating the data movement policy for cloud tier operations on page 53.
RMAN>LIST BACKUP;
…
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
34 Full 670.00M SBT_TAPE 00:00:04 13-FEB-19
BP Key: 27 Status: AVAILABLE Compressed: NO Tag: TAG20190213T021252
Handle: ./testdir/0vtpo8d4_1 Media: s:blrv071a091.lss.emc.com:/rman_su
List of Datafiles in backup set 27
Container ID: 3, PDB Name: PDBORCL
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
27 Full 670.00M SBT_TAPE 00:00:03 20-FEB-19
BP Key: 34 Status: AVAILABLE Compressed: NO Tag: TAG20190220T041617
Handle: ORCL_17tqau8i_1_1 Media: Database Application Agent/ddbea_su
List of Datafiles in backup set 34
Container ID: 3, PDB Name: PDBORCL
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
8 Full 1969272 04-FEB-19 /u01/app/oracle/oradata/orcl/pdborcl/system01.dbf
9 Full 1969272 04-FEB-19 /u01/app/oracle/oradata/orcl/pdborcl/sysaux01.dbf
10 Full 1969272 04-FEB-19 /u01/app/oracle/oradata/orcl/pdborcl/
SAMPLE_SCHEMA_users01.dbf
11 Full 1969272 04-FEB-19 /u01/app/oracle/oradata/orcl/pdborcl/example01.dbf
• The RMAN command RESTORE...PREVIEW shows which product performed the backup and the backup pieces required for the
restore. In the RESTORE...PREVIEW command output, the database application agent backups are indicated by a media handle
(after the label Media:) as Database Application Agent/<device_path>. The Oracle RMAN agent backups are indicated
by a media handle of only <device_path>.
• On Windows:
To identify whether a backup was performed with the database application agent or Oracle RMAN agent, follow the instructions in
Identifying the types of backups on page 51.
You must use the database application agent in the RMAN crosscheck and delete scripts to delete the database application agent backups
when they become expired according to the RMAN retention policy.
NOTE: Use the database application agent software for the recover, crosscheck, and delete operations until all the
database application agent backups have expired.
The following sample RMAN script restores a database after allocating the required channels for both the Oracle RMAN agent and
database application agent:
connect target *
RUN {
ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE' TRACE 5 PARMS 'BLKSIZE=1048576, SBT_LIBRARY=libddobk.so,
ENV=(STORAGE_UNIT=rman_su, BACKUP_HOST=blrv071a091.lss.emc.com, RMAN_AGENT_HOME=/opt/dpsapps/
rmanagent/)';
ALLOCATE CHANNEL DDBEA1 TYPE SBT_TAPE PARMS ‘BLKSIZE=1048576, SBT_LIBRARY= SBT_LIBRARY=/opt/
dpsapps/dbappagent/lib/lib64/libddboostora.so,ENV=(CONFIG_FILE=/orasnb/oracle_ddbda.cfg)’
RESTORE DATABASE;
RECOVER DATABASE
RELEASE CHANNEL CH1;
RELEASE CHANNEL DDBEA1;
}
data-movement policy set app-managed disabled to-tier cloud cloud-unit ecs_1 mtrees /data/
col1/DDBEA_ORACLE
data-movement policy set age-threshold 14 to-tier cloud cloud-unit ecs_1 mtrees /data/col1/
DDBEA_ORACLE
The data-movement age-threshold policy is set to "14" days for the following Mtree(s):
/data/col1/DDBEA_ORACLE
Run the following command again to verify the policy configurations:
NOTE: As an alternative, you can back up the database on node 2 and then restore the backup on node 1.
If the Oracle RMAN agent is integrated with PowerProtect, the following self-service replication and cloud tiering
operations are disabled:
• Creation of multiple backup copies with the RMAN BACKUP COPIES command.
• Automatic recall of the backup data during restore, when the backup file is in the cloud tier. The PowerProtect
administrator must explicitly recall the backup copy before it can be restored by the DBA.
The PowerProtect Administration and User Guide provides more details about these limitations.
To perform file replication, use a command similar to the one shown as follows. Edit the script command for your environment, specifying
the Data Domain system that is the destination system for the file replication. Specifying COPIES <n> requires an installed Replicator
license on both the source and destination Data Domain systems. Performing a backup by specifying COPIES <n> requires Oracle
Enterprise Edition.
For example, specifying COPIES 2 instructs the Oracle RMAN agent to perform managed file replication (MFR) to the second Data
Domain system. The second Data Domain system name is specified as part of the file name of the second copy, as <destination-system>
in the following command.
The two file names specified in this command must be identical except for the inclusion of <destination-system> in the second name. The
Oracle RMAN agent requires that the file names of the two copies are identical. The underscore character (_) is also required. Omitting
the underscore in the file names results in an error, and the backup fails. Any changes made to the file name formats shown must meet
both of the following requirements:
• The file name formats include the underscore character.
• The file names are identical, except for <destination-system> in the name for the second copy.
The use of Oracle formats such as %U and %c is not supported, as these Oracle formats include the copy number in the generated file
name. As a result, the file name generated for the second copy is different from the file name generated for the first copy.
System altered.
Specifying two, three, or four copies creates the additional copies on the second, third, and fourth destination systems, respectively. All
the formats must be identical except for the initial Data Domain system name so that all the file copies are created with the same file
names. Each Data Domain system specified must have a storage unit with the name specified by the STORAGE_UNIT value.
File replication must be performed to a destination storage unit with the same name as the source storage unit. The target Data Domain
systems must have a storage unit that has the same name as the storage unit on the source Data Domain system containing the file being
replicated. The file is replicated to the identically named storage unit on the destination Data Domain systems.
File replication using RMAN requires that both the source Data Domain system and the destination Data Domain systems are connected
to, and accessible from, the RMAN system that performs the backups. The network configuration must enable backups to the source
Data Domain system and to all the destination Data Domain systems. The destination systems must all be accessible from the source
system. When more than two copies are made, the destination systems do not need to be accessible to each other, only to the source
system. Replication does not succeed in configurations where the destination Data Domain system is only connected to the source Data
Domain system through a private network or link.
The following example shows the output of the RMAN list command, which displays the destination and the storage unit associated
with COPIES 2.
RMAN>
FORMAT './<directory-name>/%u_%p';
FORMAT './<directory-name-1>/<directory-name-2>/.../<directory-name-n>/%u_%p';
• For a backup to a remote system, use the following types of FORMAT specification:
○ When the pathname includes a single subdirectory:
FORMAT './<directory-name-1>/<directory-name-2>/.../<directory-name-n>/%u_%p',
'<destination-system>/./<directory-name-1>/<directory-name-2>/.../<directory-name-n>/%u_
%p';
NOTE: When you specify any subdirectories in a single BACKUP command that is used for a database plus archive log
backup, you must use the FORMAT specification twice: once for the database backup pieces and once for the archive
log backup pieces. The following RMAN script examples include a database plus archive log backup.
The following examples provide sample RMAN scripts with the correct subdirectory naming in the FORMAT specification for local and
remote backups.
Specifying a single subdirectory in the FORMAT specification for a local backup
The following sample RMAN script for a local backup includes a FORMAT specification with a single subdirectory in the backup pathname:
RUN {
ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE' TRACE 5 PARMS
'BLKSIZE=1048576,
SBT_LIBRARY=/home/oracle1/rman_agent_home/lib/libddobk.so,
ENV=(STORAGE_UNIT=rman_cloud,
BACKUP_HOST=bu-ddbea-lin-16.lss.emc.com,
RMAN_AGENT_HOME=/home/oracle1/rman_agent_home)';
BACKUP DATABASE FORMAT './testdir/%u_%p';
RELEASE CHANNEL CH1;
}
Specifying a subdirectory in the FORMAT specification for a local backup of database plus archive log
The following sample RMAN script for a local backup includes a FORMAT specification with a single subdirectory in the backup pathname.
Because the BACKUP command includes both the database and archivelog options, you must specify the FORMAT twice in this
case:
RUN {
ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE' TRACE 5 PARMS
'BLKSIZE=1048576,
SBT_LIBRARY=/home/oracle1/rman_agent_home/lib/libddobk.so,
ENV=(STORAGE_UNIT=rman_cloud,
BACKUP_HOST=bu-ddbea-lin-16.lss.emc.com,
RMAN_AGENT_HOME=/home/oracle1/rman_agent_home)';
BACKUP FORMAT './testdir/%u_%p' DATABASE PLUS ARCHIVELOG DELETE INPUT FORMAT './testdir/%u_%p';
RELEASE CHANNEL CH1;
}
Specifying multiple subdirectories in the FORMAT specification for a local backup
The following sample RMAN script for a local backup includes a FORMAT specification with multiple subdirectories in the backup
pathname:
RUN {
ALLOCATE CHANNEL CH1 TYPE 'SBT_TAPE' TRACE 5 PARMS
'BLKSIZE=1048576,
SBT_LIBRARY=/home/oracle1/rman_agent_home/lib/libddobk.so,
ENV=(STORAGE_UNIT=rman_cloud,
BACKUP_HOST=bu-ddbea-lin-16.lss.emc.com,
RMAN_AGENT_HOME=/home/oracle1/rman_agent_home)';
BACKUP TABLESPACE PSAPCERUSR FORMAT './testdir1/testdir2/.../testdir<n>/%u_%p';
RELEASE CHANNEL CH1;
}
When the DDBOOST_COMPRESSED_RESTORE parameter is not set to TRUE, the Oracle RMAN agent performs an
uncompressed restore of the backed-up data from the Data Domain system.
The ddutil program deletes backup files on the Data Domain system but does not delete any information on the
database server. Backups are normally deleted by using the RMAN DELETE command, which deletes both the backup on
the Data Domain system and the corresponding RMAN catalog record.
The ddutil program user must have permissions to the lockbox as described in Registering each Data Domain system
on page 45. The program uses the DD Boost library for operations, and does not require you to mount the storage unit.
The ddutil program is installed in the bin directory, created by the Oracle RMAN agent installer. The program performs deletions of
individual backup files or groups of backup files, as specified.
You can perform any of the following operations, based on the ddutil command and options that you specify on the command line:
• Display information about backup files at the individual file level, directory level, or storage unit level.
• Delete the backup files at the individual file level or directory level.
• Prune (delete) backup files that were created or modified during a specified time interval.
You must run the ddutil command on the command line with the required options. The -z <hostname>:<storage_unit> option is the
only mandatory option, and specifies the credentials that the Oracle RMAN agent requires for lockbox access during the display, delete,
and prune operations.
NOTE: You must run the ddutil command from the original installation location or set the RMAN_AGENT_HOME
environment variable to enable the dependent libraries and lockbox to be found.
The following topics provide details about how to use the ddutil command and options to perform the display, delete, and prune
operations.
ddutil -i
For example:
ddutil -i
RMAN Agent Version: 19.4.0.0(21)
NOTE: The default operation of the ddutil command is the display of backup information. If you run the ddutil
command with no options other than the mandatory -z option, the command displays all the backup files that are
located directly under the storage unit.
Using the ddutil command to display backup information on page 64 provides details.
Using the ddutil command to prune backups based on age on page 66 provides details.
Options enclosed in brackets ([ ]) are optional. The following table describes the ddutil command options.
Table 8. The ddutil command options for backup display and deletion
Option Description
-b <start_time> Optional. Specifies the start of a time range, in a date and time format. Date and time format
used with the ddutil command options on page 64 provides details about the supported date
and time formats for <start_time>.
Without this option, the earliest backup time is used by default for the start of the time range.
NOTE: The operation terminates with an error if the <start_time> value is later
than the <end_time> value that is specified with the -e option.
-c Optional. Specifies to suppress prompting during a delete or prune operation. With this option,
the program proceeds to delete or prune the specified backup files without issuing any user
prompts.
-d Required for a delete operation. Specifies to delete the specified backup files and directories
from the Data Domain system.
-D <debug_level> Optional. Generates debugging information during the operation, where <debug_level> is an
integer from 0 to 9. This option is used to troubleshoot operational issues.
This option causes the ddutil command to print the debugging information to stderr and to
the operational log file. The higher the integer value, the more log information is produced. The
operational log file also contains the normal operational messages that are printed to stdout.
The operational log file, ddutil_<timestamp>.log, resides in the log subdirectory of the
installation location. For example, the operational log file name has the format ddutil_Wed
May 17 21:49:08 2017.log.
-e <end_time> Optional. Specifies the end of a time range, in a date and time format. Date and time format
used with the ddutil command options on page 64 provides details about the supported date
and time formats for <end_time>.
The option setting -e now specifies the current time, which is the default time value.
NOTE: The operation terminates with an error if the <end_time> value is earlier
than the <start_time> value that is specified with the -b option.
-f Optional. Specifies to display information about the specified backup files and directories that
were created or modified within the specified time range on the Data Domain system. This
display operation is the default operation of the ddutil command.
-F {asc|desc} Optional. Specifies to list the backup files in either ascending or descending alphabetical order:
• The -F asc option displays the files in ascending alphabetical order, based on the file
pathnames.
• The -F desc option displays the files in descending alphabetical order, based on the file
pathnames.
You must specify the -f and -z options with the -F asc or -F desc option. You can
optionally specify the -b, -e, -R, -t, and <pathname><n> options with the -F asc or -F
desc option.
NOTE: The -F and -T options are mutually exclusive. You can use either option
but not both in the same ddutil command.
-k Required for a prune operation. Specifies to prune (delete) the specified backup files that were
created or modified within the specified time range on the Data Domain system.
-R Optional. Specifies to perform the operation on the backup files in every subdirectory.
-t Optional. Specifies to include the cloud tier information in the backup file and directory
information that a display operation produces.
-T {asc|desc} Optional. Specifies to list the backup files in either ascending or descending time order:
• The -T asc option displays the files in ascending time order, from the oldest backup to
the newest backup.
• The -T desc option displays the files in descending time order, from the newest backup
to the oldest backup.
You must specify the -f and -z options with the -T asc or -T desc option. You can
optionally specify the -b, -e, -R, -t, and <pathname><n> options with the -T asc or -T
desc option.
NOTE: The -T and -F options are mutually exclusive. You can use either option
but not both in the same ddutil command.
-x Optional. Specifies to delete all the empty directories during a delete or prune operation.
-z <hostname>:<storage_unit> Mandatory. Specifies the hostname of the Data Domain system, followed by a colon, a forward
slash (/), and the storage unit name. For example:
-z dd_host1:/dd_storage_unit1
NOTE: The hostname can be a DFC server name if you must run the ddutil
command over Fibre Channel.
<pathname1> Optional. Specifies the pathnames of the files or directories for display or deletion. For each
<pathname2>...<pathname><n> specified directory, the operation is performed on all the files in the directory. When -R is
included, the operation processes all the subdirectories of each directory. Without -R, the
operation does not process any subdirectories.
• The pathnames must be the last options on the command line. No other types of options,
such as -R or -c, can appear after the pathnames.
• When no pathnames are specified, the operation occurs only at the level of the storage
unit root directory.
• When a pathname starts with a forward slash (/), the storage unit name must appear after
the slash.
• When a pathname does not start with a slash (/), the pathname is assumed to be located
directly under the storage unit.
For example, when the storage unit is named su1, the pathnames /su1/dir1 and dir1
both specify the directory dir1 under the storage unit.
Table 8. The ddutil command options for backup display and deletion on page 62 provides details about the command options.
Typically, you run this operation to prepare for a delete or prune operation with the ddutil command. You can compare the displayed
backup information with details in the database backup catalog and determine which backup files to delete or prune.
The ddutil -f <options> command output includes one row for each backup file and directory that was found, where the row
contains the file or directory name and the backup size and time.
The default operation of the ddutil command is the display of backup information. If you run the command with no pathnames and no
options other than the -z option, the command displays all the backup files that are located directly under the storage unit. The following
commands display the same output:
ddutil -z <hostname>:<storage_unit>
ddutil -f -z <hostname>:<storage_unit>
The ddutil command ignores all subdirectories unless you specify the -R option. For example, the following command displays all the
backup files and directories on the storage unit su1, including the files in all the subdirectories:
ddutil -f -z host1:/su1 -R
To display the backup files that were created after March 1, use the -b Mar 1 option. For example:
To display the backup files in ascending alphabetical order according to the file pathnames, use the -F asc option. For example, the
following command displays the backup files in the /xapprman storage unit in ascending alphabetical order:
Table 8. The ddutil command options for backup display and deletion on page 62 provides details about the command options.
The -d option specifies to delete from the Data Domain system any backup files and directories that are specified on the command line.
When you specify a directory, the command also deletes any subdirectories in that directory.
By default, the ddutil -d <options> command prompts you before deleting any files or directories. The -c option specifies to
perform the deletions without prompting.
When the -x option is specified, the ddutil command also deletes any empty directories that it finds. Without the -x option, the
directories are not deleted.
CAUTION: Use the ddutil -d <options> command with caution. The deletion of backup files and directories cannot
be undone.
To delete specific backup files, run the following command:
To delete both backup files and directories, run the following command:
ddutil -k -z <hostname>:<storage_unit> [-b <start_time>] [-e <end_time>] [-c] [-R] [-x] [-D
<debug_level>] [<pathname1> [<pathname2>]...[<pathname><n>]]
Table 8. The ddutil command options for backup display and deletion on page 62 provides details about the command options.
The -k option specifies to delete from the Data Domain system the backup files based on their age:
• If a specified pathname is a file, the file is deleted if it meets the time criteria.
• If a specified pathname is a directory, all the files in the directory are deleted if they meet the time criteria.
• If the -b and -e options are omitted, the files in the specified pathnames are deleted, without considering a time range.
CAUTION:
Use the ddutil -k <options> command with caution. After you delete certain backup files, you might be unable to
restore data from a backup. Therefore, improper file deletion with the ddutil command can lead to failed restores and
data loss.
Steps
1. Ensure that you have completed the installation of the Oracle RMAN agent software on Linux according to the procedures outlined in
this chapter.
The following Oracle RMAN agent files are installed for the Oracle Incremental Merge operations:
• ddbmoim binary in directory $RMAN_AGENT_HOME/bin
• rman_agent_oim.cfg configuration file template in directory $RMAN_AGENT_HOME/config
2. Ensure that you meet the Data Domain BoostFS requirements as described in the latest version of the Dell EMC Data Domain
BoostFS Configuration Guide, available on the Support website at https://support.emc.com.
3. Download the Data Domain BoostFS software package from the Support website at https://support.emc.com to a temporary local
directory.
4. Uncompress the downloaded software file by running the following command:
5. Install the Data Domain BoostFS software by running the following command as the root user:
6. Create a storage unit on the Data Domain system to be used for Oracle Incremental Merge backups.
7. Create a mount point on the Oracle host, and assign valid permissions similar to an Oracle user on the host.
8. Enable the retention lock feature on the Data Domain storage unit by running the following type of command as the root user. This
example command sets a maximum retention period of 90 days for the MTree /data/col1/oim:
9. Verify that the retention lock is enabled by running the following type of command as the root user:
Each parameter in the configuration file corresponds to a command-line option of the ddbmoim command. You run the
ddbmoim command to perform many of the Oracle Incremental Merge operations. The command-line options take
precedence over the configuration file parameters.
As an alternative to setting the parameters in the configuration file, you can specify the appropriate command-line
options when you run the ddbmoim command. Performing the Oracle Incremental Merge operations on page 76
provides details about the ddbmoim command and its options.
The Oracle Incremental Merge configuration file contains two types of sections in which you set the parameters, the general section and
the database-specific sections:
• The general section of the configuration file begins with the [GENERAL] heading. You can set the following parameters in the general
section:
BOOSTFS_INSTALL_DIR
CLIENT
DEBUG_LEVEL
RMAN_AGENT_HOME
NOTE: Instead of setting these parameters in the general section of the configuration file, you can specify the
corresponding command-line options when you run the ddbmoim command. Performing the Oracle Incremental
Merge operations on page 76 provides details about the ddbmoim command and its options.
For example, the following general section of the configuration file shows the parameter settings. Table 9. Configuration file
parameters for Oracle Incremental Merge on page 71 provides details about the parameters that you can set in the configuration file.
##############################################################################
# General Parameters
##############################################################################
[GENERAL]
For example, the following database-specific section of the configuration file shows the parameter settings for the database with
Oracle SID orcl. Table 9. Configuration file parameters for Oracle Incremental Merge on page 71 provides details about the
parameters that you can set in the configuration file.
##############################################################################
# Oracle Parameters
# There can be repetitive sections of Oracle parameters. The Oracle database
# to which the parameters belong is described in the section name: SID_name.
# The name here must be replaced by the SID of the database.
# For RAC systems, the name should be the local instance name of the
# database.
##############################################################################
[SID_orcl]
BACKUP_HOST = DataDomainServerName
DELETE_ARCHIVELOG = TRUE
DELETE_ARCHIVELOG_NUM_DAYS = 3
MOUNT_PATH = /MountPath
OIM_TAG = INCR_MERGE
OPERATION = full
ORACLE_HOME = /oracle/product/12.2.0.1/db_1
PARALLELISM = 4
RETENTION = 10 day
# RMAN_CATALOG_SERVICE =
# RMAN_CATALOG_USER =
# SCRIPT_PATH =
STORAGE_UNIT = StorageUnit
SYSBACKUP = FALSE
# TNS_ADMIN =
The following table describes all the configuration parameters that you can set in the Oracle Incremental Merge configuration file. To set a
parameter in the configuration file, such as BACKUP_HOST, remove the # symbol at the start of the parameter line and add the parameter
value after the equal sign (=).
DELETE_ARCHIVELOG Optional in [SID_<name>] section. • FALSE (default) = The archive log is not
deleted.
Specifies whether to delete the archive log
after it is backed up. • TRUE = The archive log is deleted.
DELETE_ARCHIVELOG_ Optional in [SID_<name>] section. • Undefined (default). The archive log is not
NUM_DAYS deleted, unless DELETE_ARCHIVELOG is
Specifies to delete the archive log when it is
older than the specified number of days. set to TRUE.
• Integer number of days. The archive log is
deleted after the number of days.
NFS_MOUNT Optional in [SID_<name>] section. • TRUE (default) = Use an NFS mount for
the live mount or proxy restore.
Specifies whether to use an NSF mount or a
BoostFS mount for a live mount or proxy • FALSE = Use a BoostFS mount for the live
restore with the ddbmoim command. mount or proxy restore.
OPERATION Mandatory in [SID_<name>] section. • full = Creates a full backup copy of the
database, archive logs, and control file.
Specifies the type of Oracle Incremental
Merge operation that is performed. • arch = Backs up the archive logs and
control file.
• cleanup = Removes the copies of any
failed backups.
• ctl = Backs up the control file only.
• incr = Backs up the changed data blocks,
archive logs, and control file.
• livemount = Performs a live mount restore
that uses the ddbmoim command.
• livemount-cleanup = Removes the live
mounted database after a live mount
restore that uses the ddbmoim command.
• mount = Mounts the Data Domain storage
unit on the mount path specified by
MOUNT_PATH by using a BoostFS FUSE
mount operation.
• proxy-restore = Performs a proxy restore
that uses the ddbmoim command.
• restore = Restores the backup by using
the RMAN restore script specified by
SCRIPT_PATH.
• unmount = Unmounts the Data Domain
storage unit by using a BoostFS FUSE
mount operation.
ORACLE_VERSION_11G Mandatory in [SID_<name>] section when the • FALSE (default) = Oracle database is not
Oracle database is version 11. version 11.
Specifies whether the Oracle database is • TRUE = Oracle database is version 11.
version 11.
rman catalog
<RMAN_catalog_username>/
<password>@<RMAN_catalog_servi
ce_name>
Password: <password>
Re-enter password: <password>
Successfully set the DD Boost FS credentials in the lockbox.
Successfully set the DD Boost credentials in the lockbox.
○ To specify the minimum options on the command line, run the following command. The command prompts for the Data Domain
server, storage unit, DD Boost user, and password:
For example:
The following table describes the ddbmoim command options and the corresponding parameters that you can set in the configuration file.
To obtain a list of all the available command options, run the command ddbmoim --help or ddbmoim -h.
Examples of ddbmoim commands for Oracle Incremental Merge operations on page 83 provides more information about ddbmoim
commands for the supported Oracle Incremental Merge operations.
Table 10. The ddbmoim command options for Oracle Incremental Merge operations
Command option Description Default and valid values
-c <client_hostname> Mandatory if you do not set the CLIENT Values of <client_hostname>:
parameter in the configuration file.
• Undefined (default).
Specifies the hostname of the local client to • Valid hostname of the local client.
use to store the backups on the Data
Domain system.
Specifies the level of debug messages that • 0 (default) = Debug messages are not
the Oracle Incremental Merge operation generated.
generates. • 1 to 9 = Debug messages are written to
the debug log file. The level of detail in
DEBUG_LEVEL is the corresponding the generated debug messages
parameter in the configuration file. increases with the debug level. The
debug log file name is
ddbmoim_<operation_type>.*.*.log, for
example,
ddbmoim_full.14928.1567760357.log.
-o [full|incr|arch|ctl|livemount| Mandatory if you do not set the • full = Creates a full backup copy of the
livemount-cleanup|mount|unmount| OPERATION parameter in the configuration database, archive logs, and control file.
proxy-restore|restore|cleanup] file. • arch = Backs up the archive logs and
Specifies the type of Oracle Incremental control file.
Merge operation that is performed. • cleanup = Removes the copies of any
failed backups.
OPERATION is the corresponding • ctl = Backs up the control file only.
parameter in the configuration file. • incr = Backs up the changed data
blocks, archive logs, and control file.
• livemount = Performs a live mount
restore that uses the ddbmoim
command.
BOOSTFS_INSTALL_DIR is the
corresponding parameter in the
configuration file.
DELETE_ARCHIVELOG is the
corresponding parameter in the
configuration file.
rman catalog
<RMAN_catalog_username>/
<password>@<RMAN_catalog_ser
vice_name>
RMAN_CATALOG_SERVICE is the
corresponding parameter in the
configuration file.
RMAN_CATALOG_USER is the
corresponding parameter in the
configuration file.
TEMP_DATABASE_PATH is the
corresponding parameter in the
configuration file.
TEMP_SNAPSHOT_PATH is the
corresponding parameter in the
configuration file.
For every ddbmoim command option except --dbname <database_name> and -z <configuration_file_path>, you can set
the corresponding parameter in the configuration file instead of specifying the option on the command line. For
example, if you use all the possible parameter settings instead of command options, then you can run the following
minimal command:
The following topics provide examples of ddbmoim commands for the live mount restores and the restores to a proxy host:
• Performing an automated live mount restore by using a BoostFS mount on page 87
• Performing an automated live mount restore by using an NFS mount on page 88
• Performing an automated proxy host restore by using a BoostFS mount on page 95
• Performing an automated proxy host restore by using an NFS mount on page 96
Review the following information about ddbmoim commands for Oracle Incremental Merge operations:
• Mount operation—The following example ddbmoim command performs a mount operation:
• Full backup—You must create a full backup before any other type of backup. A full backup creates a full copy of the database in the
working directory, /<mount_path>/<hostname>/<database_SID>/full/datafile on the Data Domain storage unit. This working copy is
backed up and cataloged in the directory /<mount_path>/<hostname>/<database_SID>/full/datafile.OIM_TAG<timestamp>. The
backup is retention locked as required, and the status is updated in the tag file. Every full backup cleans up the working directory and
creates a fresh copy of the datafiles.
The following example ddbmoim command performs a full backup:
• Incremental backup—You can only perform an incremental backup after a successful full backup. Incremental backup pieces are
copied to the directory /<mount_path>/<hostname>/<database_SID>/incr on the Data Domain storage unit. These pieces are
applied to the full backup in the working directory, and a backup of the working directory is created in the directory /<mount_path>/
<hostname>/<database_SID>/full/datafile.OIM_TAG<timestamp>. The backup is retention locked as required, and the status is
updated in the tag file.
The following example ddbmoim command performs an incremental backup:
• Archive log backup—An archive log backup is stored in the directory /<mount_path>/<hostname>/<database_SID>/archivelogs on
the Data Domain storage unit. The backup copy of the archive log is retention locked as required.
The following example ddbmoim command performs an archive log backup:
• Control file backup—A control file backup is stored in the directory /<mount_path>/<hostname>/<database_SID>/controlfile on the
Data Domain storage unit. The backup copy of the control file is retention locked as required.
The following example ddbmoim command performs a control file backup:
An Oracle Incremental Merge restore operation involves a sequence of procedural steps as described in Performing the restore
operations with RMAN scripts on page 86.
For example:
You can then use the database ID obtained from the ddutil -O oim -n list_dbid command in the ddutil commands that you
run to list and delete the Oracle Incremental Merge backups.
The following ddutil command lists the information about the full, archive log, or control file backups that are stored on the specified
Data Domain storage unit:
For example:
• The following example ddutil command lists the available full backups:
NAME : INCR_MERGE09032019131727
DBID : 1542418608
MOUNT PATH : /boostfs
EXPIRATION : Wed Sep 4 13:18:11 2019
CONTROL FILE : /xapprman/orcl/1542418608/full/datafile.INCR_MERGE09032019131727/
CONTROL_FILE.ctl
SP FILE : /xapprman/orcl/1542418608/full/datafile.INCR_MERGE09032019131727/
SP_FILE.spfile
• The following example ddutil command lists the available archive log backups:
• The following example ddutil command lists the archive log backups in the specified time range:
• The following example ddutil command lists the available control file backups:
• The following example ddutil command lists the available full backup summary:
The following ddutil command deletes the Oracle Incremental Merge backup files that are stored on the specified Data Domain storage
unit:
NOTE:
Use only the ddutil command to delete the Oracle Incremental Merge backups. Do not use the RMAN delete
command or crosscheck command with Oracle Incremental Merge backups.
Use the -c option for a forced deletion. If you do not use the -c option, the delete operation prompts for confirmation
before deleting the backups.
For example:
• The following example ddutil command deletes the full backups in the specified time range:
• The following example ddutil command deletes the archive log backups:
• The following example ddutil command deletes the archive log backups in the specified time range:
3. Create an RMAN script to restore the control file. An example RMAN script is as follows:
connect target "/";
set dbid=2800932625;
run
{ ALLOCATE CHANNEL CH0 DEVICE TYPE DISK;
restore controlfile from "/oraclemount/testdb_30/2800932625/full/
datafile.testdb09192019150043/CONTROL_FILE.ctl";
RELEASE CHANNEL CH0;
}
4. Ensure that the required configurations are completed, as described in the preceding topics. For example, include the following
parameter settings in the configuration file:
OPERATION = restore
SCRIPT_PATH = <restore_script_pathname>
5. Run the appropriate ddbmoim command to perform the control file restore. For example, with all the parameters set in the
configuration file, run the following command:
CURRENT_SCN
-----------
For a live mount restore, ensure that the Oracle username, group ID, and user ID are the same on both the production
host and the new host.
A live mount restore with the ddbmoim command applies to either the same-named database or a different-named
database. A manual live mount operation, as introduced with Oracle RMAN agent 19.2, also applies to either the same-
named database or a different-named database.
When you perform a live mount restore with ASM enabled source database backups, the restored database is converted
to a stand-alone database that is created using a pfile of the database instance.
• Import command:
5. To remove the live mounted database, perform a cleanup operation with the ddbmoim command as described in Performing a cleanup
of the live mount restored database on page 90.
• Import command:
7. To remove the live mounted database, perform a cleanup operation with the ddbmoim command as described in Performing a cleanup
of the live mount restored database on page 90.
If you performed the live mount to a different-named database, change the SID name in the [SID_<name>] heading
at the start of the database-specific section of configuration file. Change <name> to the new database name. For
example:
##############################################################################
[SID_orcl2]
BACKUP_HOST = DataDomainServerName
:
2. To perform the cleanup, run the ddbmoim command with the appropriate command options. For example:
For the cleanup of a live mount restored database with a new database name, specify the new database name with
the --dbname command option on the ddbmoim command line. For example:
3. If the cleanup operation in step 2 fails, you can perform a force cleanup operation:
a. Keep the same parameter settings as used for the cleanup in step 2, but specify the force cleanup by adding either the
FORCE_LIVEMOUNT_CLEANUP=TRUE parameter setting or the -a FORCE_LIVEMOUNT_CLEANUP=TRUE option of the
ddbmoim command.
b. Run the ddbmoim command with the appropriate command options. For example:
3. Create the init<SID>.ora file. For example, the file contains the following lines. For a PDB database, add the line
*.enable_pluggable_database=TRUE:
cat /tmp/TEST/initTEST.ora
#
# Init.ora file with minimum parameters to start up TEST
#
*.db_block_size=8192
*.db_domain=''
*.db_name='TEST'
*.control_files='/tmp/TEST/TEST_control01.ctl'
*.audit_file_dest='/tmp/TEST/'
*.audit_trail='db'
*.db_create_file_dest='/tmp/TEST/'
*.db_recovery_file_dest='/tmp/TEST/'
*.diagnostic_dest='/tmp/TEST/'
*.db_recovery_file_dest_size=8589934592
*._allow_resetlogs_corruption=TRUE
*._allow_error_simulation=TRUE
*.enable_pluggable_database=TRUE
NOTE: Change the value 12.1.0.2.0 as required in the last line of the init<SID>.ora parameter file. The version
must be compatible with the snapshot Data Domain backup image copies.
4. Set the SID to the new database, for example, TEST:
SQL*Plus: Release 12.1.0.2.0 Production on Sun Jan 20 20:34:53 2019 Copyright (c) 1982,
2014, Oracle.
All rights reserved. Connected to an idle instance.
5. Start and mount the database, and create the control file. For example, the control file contains the following lines:
cat /tmp/TEST/controlfile.ctl
CREATE CONTROLFILE REUSE SET DATABASE "TEST" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/tmp/TEST/TEST_redo01.log' SIZE 5M BLOCKSIZE 512 reuse,
GROUP 2 '/tmp/TEST/TEST_redo02.log' SIZE 5M BLOCKSIZE 512 reuse,
GROUP 3 '/tmp/TEST/TEST_redo03.log' SIZE 5M BLOCKSIZE 512 reuse
DATAFILE
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-DUMMY1_FNO-18_c1ubcbiu_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-DUMMY_FNO-17_c0ubcbis_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-10_bmubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-14_bnubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-3_bkubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-6_boubcbi9_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-13_brubcbij_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-1_blubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-5_bsubcbij_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-9_bqubcbia_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-11_buubcbir_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-15_bvubcbir_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-4_bpubcbia_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-8_btubcbin_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-12_c3ubcbiv_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-16_c4ubcbiv_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-7_c2ubcbiv_20190910';
6. When the control file is created, open the database with resetlogs:
mount /home/oracle/boostfs
4. To complete the live mount restore on the local host, perform the following steps:
a. Create a temporary snapshot restore directory in Data Domain, and fast copy the snapshot datafiles from the datafile directory to
the snapshot restore directory. For example:
b. Export the temporary ORACLE_SID to the temporary database name. For example:
export ORACLE_SID=TEST
c. Create a directory in /tmp with the exported database name, and create the init<SID>.ora parameter file. For example, the
file contains the following lines. For a PDB database, add the line *.enable_pluggable_database=TRUE:
cat /tmp/TEST/initTEST.ora
#
# Init.ora file with minimum parameters to start up TEST
#
*.db_block_size=8192
*.db_domain=''
*.db_name='TEST'
*.control_files='/tmp/TEST/TEST_control01.ctl'
*.audit_file_dest='/tmp/TEST/'
*.audit_trail='db'
*.db_create_file_dest='/tmp/TEST/'
*.db_recovery_file_dest='/tmp/TEST/'
*.diagnostic_dest='/tmp/TEST/'
*.db_recovery_file_dest_size=8589934592
*._allow_resetlogs_corruption=TRUE
*._allow_error_simulation=TRUE
*.enable_pluggable_database=TRUE
*.remote_login_passwordfile='EXCLUSIVE'
*.compatible='12.1.0.2.0'
NOTE: Change the value 12.1.0.2.0 as required in the last line of the init<SID>.ora parameter file. The version
must be compatible with the snapshot Data Domain backup image copies.
cat /tmp/TEST/controlfile.ctl
CREATE CONTROLFILE REUSE SET DATABASE "TEST" RESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 512
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 '/tmp/TEST/TEST_redo01.log' SIZE 5M BLOCKSIZE 512 reuse,
GROUP 2 '/tmp/TEST/TEST_redo02.log' SIZE 5M BLOCKSIZE 512 reuse,
GROUP 3 '/tmp/TEST/TEST_redo03.log' SIZE 5M BLOCKSIZE 512 reuse
DATAFILE
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-DUMMY1_FNO-18_c1ubcbiu_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-DUMMY_FNO-17_c0ubcbis_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-10_bmubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-14_bnubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-3_bkubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSAUX_FNO-6_boubcbi9_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-13_brubcbij_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-1_blubcbhe_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-5_bsubcbij_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-SYSTEM_FNO-9_bqubcbia_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-11_buubcbir_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-15_bvubcbir_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-4_bpubcbia_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-UNDOTBS1_FNO-8_btubcbin_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-12_c3ubcbiv_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-16_c4ubcbiv_20190910',
'/home/oracle/boostfs/rmanagent/1538675391/full/SNAPSHOT-RESTORE/data_D-
ORCL_I-1538675391_TS-USERS_FNO-7_c2ubcbiv_20190910';
e. Log in to the sqlplus, and start the database with the created init<SID>.ora file in the nomount state. For example:
@/tmp/TEST/controlfile.ctl
g. When the control file is created, open the database with resetlogs:
h. When the database is open, export the particular table from the temporary created database and then import to the original
database. For example:
• Export command: ORACLE_SID=TEST exp file=test.dmp tables= test_table rows=y
• Import command: ORACLE_SID=BOOST imp file=test.dmp full=y
For a proxy host restore, ensure that the database version, Oracle username, group ID, and user ID are the same on both
the production host and proxy host.
A proxy host restore with the ddbmoim command applies to either the same-named database or a different-named
database. A manual proxy host restore operation, as introduced with Oracle RMAN agent 19.2, also applies to either the
same-named database or a different-named database.
When you perform a proxy host restore with ASM enabled source database backups, the restored database is converted
to a stand-alone database that is created using a pfile of the database instance.
If you need to perform backups of a proxy host restored database using the Oracle Incremental Merge solution, then
create an spfile from the pfile and restart the database using the spfile.
3. Restore the spfile to the proxy host directory $ORACLE_HOME/dbs from the snapshot Data Domain image spfile:
4. Create the pfile in the proxy host directory $ORACLE_HOME/dbs from the created spfile of the proxy host:
5. Restore the control file from the snapshot Data Domain image control file copy to the default directory $ORACLE_HOME/dbs:
shutdown abort;
startup nomount;
alter database mount;
When the production host datafile path does not exist on the proxy host, provide the new database path with the
set newname command and datafile format. During the database restore, the local copies are created from the
snapshot Data Domain image copies.
When you run the set newname command, you must also run the switch datafile all command to switch all
the datafiles to the new database format that is provided by the set newname command.
run {
set newname for database to '/home/oracle/app/oracle18/oradata/ORCL/%N_%f.dbf';
restore database;
switch datafile all;
}
9. Run the database recovery preview and record the fuzziness SCN number:
10. Run the database recovery and specify the recorded fuzziness SCN number, xxxxx:
11. When the production host redo log path does not exist on the proxy host, rename the redo log files to the new database path on the
proxy host:
If the Oracle RMAN agent is integrated with PowerProtect, the following self-service replication and cloud tiering
operations are disabled:
• Creation of multiple backup copies with the RMAN BACKUP COPIES command.
• Automatic recall of the backup data during restore, when the backup file is in the cloud tier. The PowerProtect
administrator must explicitly recall the backup copy before it can be restored by the DBA.
Steps
1. Select Data Management > MTree.
2. In the top panel, select the MTree to which you want to add a data movement policy.
3. Click the Summary tab.
4. Under Data Movement Policy, click Add.
Steps
1. Determine which Oracle RMAN agent hosts will use the storage unit.
2. Determine how much capacity to allow for the storage unit.
3. Create the storage unit, and then set the capacity quota in the GUI or the CLI command. The Data Domain documentation provides
more details.
4. Provide the Oracle RMAN agent users with the DD hostname, storage unit name, username, and password of the storage unit to be
used for backups.
The Data Domain administrator can also set the soft capacity quota for the storage unit, which triggers alerts and notifications but
does not limit the capacity usage.
The Data Domain administrator can use the Data Domain OS commands or the Data Domain Administration GUI to add or modify the
capacity quota of storage units. The Data Domain documentation provides more details.
Steps
1. Determine which Oracle RMAN agent hosts will use the storage unit.
2. Determine how many backup and restore streams to allow for the storage unit.
3. Create the storage unit. You can set the streams limit as part of the ddboost storage-unit create command or (after the
storage unit is created) with the ddboost storage-unit modify command. The Data Domain documentation provides more
details.
NOTE: A streams limit cannot be set in the Data Domain Administration GUI.
4. Provide the Oracle RMAN agent users with the DD hostname, storage unit name, username, and password of the storage unit to be
used for backups.
The Data Domain administrator can also set soft limits for the storage unit, which trigger alerts and notifications but do not limit the
number of streams used.
The Data Domain administrator can use the ddboost storage-unit modify command to modify the streams limits of storage
units. The Data Domain documentation provides more details.
CAUTION: Use caution when setting a streams hard limit. Setting the streams limit to a low value can impact the
backup and restore performance. Decreasing a streams limit can cause a restore to fail. Notify the Oracle RMAN
agent users when a streams limit is decreased so that the users can evaluate the potential impact on backups.
Topics:
• Restricting DD Boost access to specific database servers
• File replication version compatibility
• Modifying an interface group
ddboost disable
ddboost access del clients *
ddboost access add clients databaseserver1.datadomain.com databaseserver2.datadomain.com
ddboost enable
These commands establish a set of access controls that enables DD Boost access only to the two specified database servers,
databaseserver1.datadomain.com and databaseserver2.datadomain.com.
If no specific access controls are established, running the ddboost enable command configures the default access control, which
allows all the hosts to access the DD Boost service. However, if there are any access control entries already established, running the
ddboost enable command does not modify the access control list, thus enabling the access controls that are already established.
NOTE:
• Ensure that no backup jobs are running to the Data Domain system when you change the access control. Run the
ddboost disable command to prevent operations while access is changed. Disabling DD Boost disables data
access to all the database servers.
• Specify only a fully qualified domain name, IP address, or resolvable DNS name for the client when you modify the
client access control list.
• If the username is changed or deleted, the change in access rights does not affect any current operations. For
example, deleting the current clients from the DD Boost access list by running the ddboost access del clients
command does not stop a file backup that is already in progress. All operations in progress will continue. The change
in access rights does not cause existing operations to fail.
• Run the ddboost enable command to re-enable DD Boost and enable RMAN operations after changing the access,
which are now subject to the changed access rights.
• When access control is changed on a Data Domain system for a connected RMAN application, RMAN is still able to
perform according to the access rights established at the first connection. The first connection is when the first
RMAN command was invoked by using the Oracle RMAN agent. The next time RMAN is stopped and restarted, the
new access rights are used.
Steps
1. Ensure that no jobs are active from RMAN to the Data Domain system on the interface that you wish to remove from the group. You
can do this from the Data Domain system by checking the status of existing connections in the interface group, by running the
following command:
After this, the interface 192.168.1.3 is released from the group and is no longer used by the DD Boost storage server for any jobs from
the database servers.
NOTE: Removing the interface registered with RMAN makes the Data Domain system inaccessible to the database
servers. The configuration of the ifgroup on the Data Domain system is not deleted.
To make any changes to any interface that is added to the interface group on the Data Domain system at the network layer, remove
the interface from the group and add it back.
If you make changes by running the net command to modify the interfaces, such as enabling an interface that is configured for
ifgroup, then run the ddboost show connections command to update the load balancing view. This updating enables the
ifgroup to use the interface. show connections on page 118 provides more information.
Steps
1. Ensure that no jobs are active from RMAN to the Data Domain system. You can do this from the Data Domain system by checking the
status of existing connections in the interface group, by running the following command:
2. Ensure that there are no pending jobs from any of the connected database servers to this system.
Results
All the interfaces are released from the group.
Troubleshooting overview
This chapter provides basic troubleshooting tips that can enable you to resolve issues with the product. For issues that cannot be
resolved, contact the contracted support providers.
For more information, see the Data Domain Knowledge Base, which is available at https://support.emc.com.
Investigating problems
NOTE: This topic applies only to Data Domain systems, not PowerProtect Data Manager or PowerProtect X400
systems.
When you investigate a problem, be aware that the DD Boost software has components on both a Data Domain system and an RMAN
system. The two environments must be compatible. The following troubleshooting considerations apply to both systems:
• Supported configurations
Ensure that you have a supported configuration as specified in the eLab Navigator at https://elabnavigator.emc.com/eln/
modernHomeDataProtection. A supported configuration can become unsupported if any component changes.
• Authorization failures
If you encounter authorization failures, ensure that all the systems have correct access credentials for the other systems.
Oracle limitations
Many RMAN functions require specific editions of Oracle. For example, using COPIES 2 or parallelism requires the Enterprise Edition. For
a complete list, refer to the Oracle documentation at http://oracle.su/docs/11g/license.112/e10594/editions.htm.com.
RMAN has numerous restrictions and limitations on how backups can be performed and what can be backed up. The Oracle RMAN agent
can only do backup and restore operations that RMAN supports. For example, control file autobackups are never multiplexed. This means
that if COPIES 2 is used to create a replica of a backup, the control files do not get replicated to the second (destination) Data Domain
system. Using the INCLUDE CURRENT CONTROLFILE option in the backup statement is one possible solution; this includes a copy of
the current control file in a backup piece.
Reporting problems
When reporting a problem to Technical Support, always include the following information:
• The sbtio.log file, which is critical for analysis.
• Output of the RMAN command show all.
• All the RMAN commands that you used.
If possible, delete the sbtio.log file, re-create the problem in as few steps as possible, then capture the sbtio.log file to send with
your problem report. Set the TRACE level to 5 with the CONFIGURE CHANNEL command when you try to re-create the problem.
Troubleshooting 107
RMAN determines where the sbtio.log file is located. The sbtio.log file is usually located in the directory defined by the
user_dump_dest initialization variable or in the $ORACLE_HOME/rdbms/log directory. If all else fails, go to the $ORACLE_HOME
directory and run a find command to locate the file.
The ddboost.config file is the lockbox file for Oracle RMAN agent. The file contains the saved username/password pairs for the Data
Domain systems that you use. If you connect to system ddr-system as user ddr-user with password user-password, there is a
corresponding entry in the file. The entry specifies that connections to ddr-system are made by using username ddr-user with password
user-password. The lockbox file is encrypted and maintained with the RSA lockbox libraries, which are installed as part of the Oracle
RMAN agent, and hence some of the error strings returned in sbtio.log refer to lockbox.
If you change the hostname of the Data Domain system without changing the hostname in all the scripts and so on, then attempts to
connect to ddr-system fail because there is no host with the specified hostname. If you use the new hostname in all scripts, you can add a
new username-password entry for that hostname to the ddboost.config file. Registering each Data Domain system on page 45
provides instructions.
The ddboost.config file is located in the $RMAN_AGENT_HOME/config directory (Linux or UNIX) or in the %RMAN_AGENT_HOME%
\config directory (Windows).
You cannot reference a lockbox except from the database server where the lockbox was created, unless at the time you created the
lockbox, you set it up to be accessible from multiple servers. Registering a Data Domain system for shared lockbox access on page 48
provides more information.
If you uninstall the boost library, check to see that the old ddboost.config files are deleted. There are four files:
• ddboost.config
• ddboost.config.bak
• ddboost.config.FCD
• ddboost.config.bak.FCD
Deleting the ddboost.config files never causes a problem because the entries will be re-created on demand if you re-run the RMAN
commands that register the Data Domain systems.
Starting with Oracle RMAN agent 4.6, if you want to use an existing lockbox in a non-default directory, you must properly upgrade the
lockbox. Otherwise, any subsequent backup, restore, or query operations fail with one of the following types of error messages:
SBT-5047 08/18/17 09:32:40 error 7501: dd_rman_get_user_info: Unable to open config file '/home/
oracle/opt/dpsapps/rmanagent/config/ddboost.config'. Error: The Lockbox is corrupt and failed
to load.
SBT-5047 08/18/17 09:32:40 error 7501: dd_rman_get_user_info: Unable to open config file
'/u01/app/oracle/product/10.2.0/db_1/config/ddboost.config'. Error: Lockbox tampering was
detected, so it cannot be read.
To use an existing lockbox in a non-default directory, ensure that you perform one of the following upgrade procedures:
• Run the following ddutil -U command to upgrade the lockbox and then copy the existing lockbox files to the default directory,
$RMAN_AGENT_HOME/config or %RMAN_AGENT_HOME%\config. The command must include the complete pathname of the
non-default directory. For example:
108 Troubleshooting
• Copy the existing lockbox files from the non-default directory to the default directory, $RMAN_AGENT_HOME/config or
%RMAN_AGENT_HOME%\config, and then run the following ddutil -U command to upgrade the lockbox:
ddutil -U -a LOCKBOX_IMPORT=TRUE
Steps
1. Check that the libddobk.so library pathname was specified correctly in the RMAN configuration command.
Configuring the software on Linux and UNIX systems on page 41 or Configuring the software on Windows systems on page 45
provides more information. If the pathname is not correct, the libddobk.so library cannot be found. Check that libddobk.so
exists in the specified directory and that the directory and library file have appropriate access for the user.
2. Check that the home directory of the Oracle RMAN agent was specified correctly in the RMAN configuration command.
Configuring the software on Linux and UNIX systems on page 41 or Configuring the software on Windows systems on page 45
provides more information. If the directory is not correct, the libDDBoost.so library cannot be found. Check that the lib
subdirectory exists in the home directory of the Oracle RMAN agent, the libDDboost.so library exists in this directory, and the
directory and library file have appropriate access for the user.
3. Run the ldd command on the libddobk.so library to ensure that the libraries that it uses can be found, as shown in the following
example:
Troubleshooting 109
7
Using DD Boost Commands
NOTE: This chapter applies only to Data Domain systems, not PowerProtect X400 systems. For information about the
commands and configuration on PowerProtect X400 integrated storage, refer to the PowerProtect X400
documentation.
Topics:
• DD Boost command summary
• The ddboost command options
access
Use this command option to manage the DD Boost access for clients.
Use this command to delete clients from the DD Boost access list.
Use this command to reset the DD Boost client access list to the factory default.
clients
ddboost clients add <client-list> [encryption-strength {medium | high}]
Administrators use this command to enable encrypted backup and restore over LAN, and specify the encryption strength on a specified
client or group of clients.
destroy
ddboost destroy
Administrators use this command to delete all the storage units and their contents from the Data Domain system. The command
permanently removes all the data (files) contained in the storage units.
You must also manually remove (expire) the corresponding catalog entries.
disable
ddboost disable
Administrators use this command to disable DD Boost for the Data Domain system.
enable
ddboost enable
Administrators use this command to enable DD Boost for the Data Domain system.
Whenever the user, user ID (UID), or group ID (GID) changes, the Data Domain system updates all the files and storage units the next
time that the ddboost enable command is issued.
fc group add
ddboost fc group add groupname initiator "initiator_names"
Administrators use this command to grant access to these DD Boost over Fibre Channel devices through an initiator, by adding the
initiator to a ddboost-type scsitarget access group.
fc group modify
ddboost fc group modify groupname device-set count count
Administrators use this command to control the number of DD Boost over Fibre Channel devices advertised to the initiator by configuring
the device-set of the scsitarget access group. The maximum number of supported DD Boost over Fibre Channel devices per Data Domain
system is 64.
file-replication
file-replication option reset
ddboost file-replication option reset {low-bw-optim | encryption}
Administrators use this command to reset the low-bandwidth optimization or encryption to its default value, which is disabled.
This command must be run on both Data Domain systems, the source system and the destination target system. Only an administrator
can specify these options.
Encryption must be enabled on both the source and destination systems.
Low-bandwidth optimization, which is disabled by default, is designed for use on networks with less than 6 Mbps aggregate bandwidth.
Do not use this option if the maximum file system write performance is required.
After you enable low-bandwidth optimization on both systems, both systems must undergo a full cleaning cycle to prepare the existing
data. Run the following command on the source and destination systems:
The amount of time used by the cleaning cycle depends on the amount of data currently on the Data Domain system.
Use this command to show whether low-bandwidth optimization and/or encryption is enabled or disabled for file replication.
Administrators use this command to reset the file-replication statistics when DD Boost is enabled.
Use this command to display the status of a DD Boost file-replication transfer to a Data Domain system. Prior to DD OS 5.1, this command
only showed the status of DD Boost file-replication transfers outbound from a Data Domain system. With DD OS 5.1, this command also
shows the status of DD Boost file-replication transfers inbound to a Data Domain system.
The low-bandwidth optimization status output indicates either that it is enabled and running, or that it is enabled but there is a
configuration mismatch.
Use this command to display the file-replication history over time. The output is organized by file; it is not cumulative data. You must
specify a duration.
The data for each file name is organized by date, time, and direction (outbound or inbound). Values are given in KB for pre-compressed,
post-filtered, post-low-bw-option, post-compressed, and network data. The last value is an error code; 0 indicates that no error occurred.
The following example provides a description of each column:
• Date: 2010/06/16
• Time: 07:48:22
• Direction: Outbound
• File name: /data/col1/x-ddp1/PEOST_00000001:0000000000:BEOST:4:0::
• Pre-compressed: 3,765,837
• Post-filtered: 30,802
• Post-low-bw-optim: 30,802
• Post-compressed: 17,423
• Network: 65,550
• Error code: 0
Use this command to display the file-replication history over time. A cumulative history is displayed, as opposed to a view by file name. You
must specify a duration.
Data is organized by date, time, and direction (outbound or inbound). Cumulative values are given in KB for pre-compressed, post-filtered,
post-low-bw-option, post-compressed, and network data. The last value is an error code; 0 indicates no error occurred.
Use this command to display the data transfer history for inbound and outbound traffic on each file in Data Domain system’s backup
directory for a given duration at a specified interval. The following example shows the inbound and outbound traffic by date and time:
• Amount of pre-compressed data in KB
• Amount of post-compressed data in KB
• Network transfer data in KB
• Low-bandwidth optimization factor
• Number of errors
Use this command to display the data transfer history between the source and destination (target) Data Domain systems. The following
information is shown for inbound and outbound traffic for a given duration at a specified interval:
• Amount of pre-compressed data in KB
• Amount of post-compressed data in KB
• Network transfer data in KB
• Low-bandwidth optimization factor
• Number of errors
Use this command to display in real time, for a given duration at a specified interval, the amount of pre-compressed outbound and inbound
data versus the actual network throughput, or post-compressed data.
04/30 11:14:16
Outbound Inbound
Pre-comp Network Pre-comp Network
(KB/s) (KB/s) (KB/s) (KB/s)
--------- --------- --------- ---------
0 0 1644 325
0 0 2901 470
0 0 2430 458
0 0 14390 300
0 0 0 70
0 0 2308 446
0 0 2814 552
0 0 3010 529
Use this command to monitor outbound and inbound traffic on a Data Domain system during replication. The compression ratio increases
when low-bandwidth optimization is enabled.
Direction: Outbound
Network bytes sent: 88,383,976
Pre-compressed bytes sent: 436,874,240
Bytes after filtering: 153,080,417
Direction: Inbound
Network bytes received: 88,383,976
Pre-compressed bytes received: 436,874,240
Bytes after filtering: 153,080,417
Bytes after low-bw-optim: 145,547,868
Bytes after local compression: 83,628,271
Compression ratio: 4.9
ifgroup
The ifgroup option specifies an interface group.
Use this command to add an interface, client, or both to the group-name or default group. Prior to adding an interface, you must create
the group-name unless the group name is the default group.
NOTE: The group-name “default” is created during an upgrade of a fresh install and is always used if group-name is not
specified.
Additionally, the IP address must be configured on the Data Domain system and its interface must be enabled. You can add public or
private IP addresses for data transfer connections. After adding an IP address as an interface, you must enable advanced load balancing
and link failover.
The Data Domain Operating System Administration Guide provides more information about interface groups.
Use this command to create a group with the name group-name for the interface. You can use the command option on a single node and
on a master node in a Global Deduplication Array (GDA).
The group-name can contain the characters ^, [0-9, a-z, A-Z],* $, underscore(_), and hyphen (-). Hostnames and fully qualified
hostnames can be used. You can specify wildcard hostnames, as indicated by an asterisk (*). Reserved group names that cannot be used
are: default, all, none.
Use this command to remove an interface, client, or both from the group-name or default group. Deleting the last IP address interface
disables the ifgroup. If this is the case, you have the option of terminating this command option.
Use this command to destroy the group name. Only empty groups can be destroyed. Interfaces or clients cannot be destroyed, but can be
removed sequentially or by using the command option ddboost ifgroup reset group-name.
Use this command to enable the group specified by group-name. If group-name is not specified, the command enables the default group.
Use this command to rename the ifgroup source-group-name to destination-group-name. This command option does not require disabling
of the group.
Use this command to reset the group specified by group-name. If group-name is not specified, the command disables the default group.
Use this command to display the selected configuration options. If no selection is made, all the information about the specified group-
name is displayed.
If group-name is not specified, all the information about the default group is displayed. Specify the all option to view the configuration
options of all the groups. All users can specify this command option.
Use this command to display the status of link aggregation, as enabled or disabled. The status is displayed for all the groups unless group-
name is specified. All users can specify this command option.
option
option reset distributed-segment processing
ddboost option reset distributed-segment processing
Administrators use this command to reset the distributed segment processing to the default option, which is enabled.
Administrators use this command to enable or disable the distributed segment processing feature on the DD OS. By default, it is enabled
for DD OS 5.1. If this feature presents any problem for a database server, use this command to disable the feature on the Data Domain
system.
Distributed segment processing is supported only if the feature is enabled on the Data Domain system.
NOTE:
Use this command to show whether the distributed segment processing option is enabled or disabled.
Use this command to reset the virtual synthetics to the default option, which is disabled. Virtual synthetics is supported on single-node
configurations and DD Extended Retention systems only.
Use this command to enable or disable the virtual synthetics feature on the DD OS. Virtual synthetics is supported on single-node
configurations and DD Extended Retention systems only.
Use this command to display the status of the virtual synthetics, as enabled or disabled. All users can run this command.
reset
reset stats
ddboost reset stats
reset user-name
ddboost reset user-name username
NOTE: This command is deprecated. It is recommended that you use the ddboost user unassign command instead.
set user-name
ddboost set user-name user-name
Use this command to set the DD Boost username when DD Boost is enabled.
show histogram
ddboost show histogram
Use this command to display a DD Boost histogram for the Data Domain system.
show stats
ddboost show stats [interval seconds] [count count]
Use this command to display the output of the previous show stats command, the number of bytes written to and read from files
contained in storage units, and the number of files created and deleted from storage units. The number of errors encountered for each
operation is also displayed. Optionally, you can display the statistics for a specific number of seconds. The count displays the number of
lines equal to the count value.
show user-name
ddboost show user-name
Use this command to display the default DD Boost user if one is configured, or otherwise display that there is no default user.
NOTE: This command is deprecated. It is recommended that you use the ddboost user show command instead.
status
ddboost status
storage-unit
storage-unit create
ddboost storage-unit create storage_unit_name [quota-soft-limit n {MiB|GiB|TiB|PiB}] [quota-
hard-limit n {MiB|GiB|TiB|PiB}]
Use this command to create a storage unit and set limits. The mtree command description in the Data Domain Operating System
Command Reference Guide provides details on quota limits. If the quota feature is not enabled, the quota is created but a message
appears stating that the feature is disabled and limits are not enforced, as shown in Example 2. The quota command description in the
Data Domain Operating System Command Reference Guide provides details.
Quotas can cause OpenStorage backup applications to report non-intuitive sizes and capacities. The Knowledge Base article 85210,
available on the Support portal, provides details.
Example 1
ddboost storage-unit create SU_1 quota-soft-limit 793 GiB quota-hard-limit 1078 GiB
Example 2
ddboost storage-unit create SU_2 quota-soft-limit 1586 GiB
storage-unit delete
ddboost storage-unit delete storage-unit-name
Administrators use this command to delete a specified storage unit and all of its contents. You must also manually remove (expire) the
corresponding catalog entries.
storage-unit show
ddboost storage-unit show [compression] [storage-unit-name]
Steps
1. Add the DD Boost license.
2. Establish the server name, username, and password for the Data Domain system.
NOTE: The server name, username, and password must exactly match what is used in the send command of Step 2
in Configure RMAN for the environment on page 121.
3. Enable DD Boost.
4. Create a logical storage unit, as described in Creating storage units on page 26.
5. Enable the distributed segment processing.
6. Check the connectivity. (Can I ping the DDR server name from the backup server?) Ensure that the firewall is not blocking ports.
Steps
1. Download the Oracle RMAN agent software.
2. Complete the software installation and setup procedures.
Steps
1. Run the command CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE'.
Configuring the software on Linux and UNIX systems on page 41 or Configuring the software on Windows systems on page 45 provide
more information. Ensure that the PARMS option is set correctly.
Linux example
export ORACLE_HOME=/oracle_home
export BACKUP_HOST=MyDDR
export STORAGE_UNIT=MyStorageUnitName
sbttest MyFileName -trace MyTraceFileName -libname <ddboost_directory>/lib/libddobk.so
Backup examples
RMAN> backup copies 2 database format '%u_%p', '<destination_system>/%u_%p' filesperset=1;
Example screens
./install.sh
Do you want to install under the default installation directory /home/oracle/opt/dpsapps/
rmanagent? (y or n)
y
The lib directory /home/oracle/opt/dpsapps/rmanagent/lib is created.
The config directory /home/oracle/opt/dpsapps/rmanagent/config is created.
The bin directory /home/oracle/opt/dpsapps/rmanagent/bin is created.
The log directory /home/oracle/opt/dpsapps/rmanagent/logs is created.
The breadcrumbs directory /home/oracle/opt/dpsapps/rmanagent/breadcrumbs is created.
Installing the Oracle RMAN agent.
Copying the lockbox libraries to /home/oracle/opt/dpsapps/rmanagent/lib/.
Copying libddobk.so to /home/oracle/opt/dpsapps/rmanagent/lib/.
Copying libDDBoost.so to /home/oracle/opt/dpsapps/rmanagent/lib/.
Copying ddutil to /home/oracle/opt/dpsapps/rmanagent/bin/.
Copying the dependency libraries to /home/oracle/opt/dpsapps/rmanagent/lib/.
/opt/dpsapps/rmanagent> ls -alR
.:
total 28
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 3 oracle oradba 4096 2018-02-01 12:00 ..
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 bin
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 breadcrumbs
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 config
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 lib
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 logs
./bin:
total 23836
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
-rwxr-xr-x 1 oracle oradba 22697509 2018-02-01 12:00 ddbmcon
-rwxr-xr-x 1 oracle oradba 1666061 2018-02-01 12:00 ddutil
./breadcrumbs:
total 8
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
./config:
total 20
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
-rw-rw-r-- 1 oracle oradba 3334 2018-02-01 12:00 ddboost.config
-rw-rw-r-- 1 oracle oradba 4 2018-02-01 12:00 ddboost.config.FCD
-r-xr-xr-x 1 oracle oradba 1947 2018-02-01 12:00 rman_agent.cfg
./lib:
total 27500
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
-rwxr-xr-x 1 oracle oradba 2998084 2018-02-01 12:00 libcrypto.so.1.0.0
-rwxr-xr-x 1 oracle oradba 3520368 2018-02-01 12:00 libDDBoost.so
-rwxr-xr-x 1 oracle oradba 6713824 2018-02-01 12:00 libddboravalidate.so
-rwxr-xr-x 1 oracle oradba 1690051 2018-02-01 12:00 libddobk.so
-rwxr-xr-x 1 oracle oradba 9965056 2018-02-01 12:00 libddvdisk.so
-rwxr-xr-x 1 oracle oradba 2498081 2018-02-01 12:00 libEnshroud-OpenSSL.so
-rwxr-xr-x 1 oracle oradba 206659 2018-02-01 12:00 libLockbox.so
-rwxr-xr-x 1 oracle oradba 495171 2018-02-01 12:00 libssl.so.1.0.0
./logs:
total 8
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
~/opt/dpsapps/rmanagent/config> ls -al
total 20
drwxrwxrwx 2 oracle oradba 4096 2018-02-01 12:00 .
drwxr-xr-x 7 oracle oradba 4096 2018-02-01 12:00 ..
-rw-rw-r-- 1 oracle oradba 3334 2018-02-01 12:00 ddboost.config
-rw-rw-r-- 1 oracle oradba 4 2018-02-01 12:00 ddboost.config.FCD
-r-xr-xr-x 1 oracle oradba 1947 2018-02-01 12:00 rman_agent.cfg
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
The following table describes the ddbmoim command options and the corresponding parameters that you can set in the configuration file.
To obtain a list of all the available command options, run the command ddbmoim --help or ddbmoim -h.
Examples of ddbmoim commands for Oracle Incremental Merge operations on page 83 provides more information about ddbmoim
commands for the supported Oracle Incremental Merge operations.
Table 15. The ddbmoim command options for Oracle Incremental Merge operations
Command option Description Default and valid values
-c <client_hostname> Mandatory if you do not set the CLIENT Values of <client_hostname>:
parameter in the configuration file.
• Undefined (default).
Specifies the hostname of the local client to • Valid hostname of the local client.
use to store the backups on the Data
Domain system.
Specifies the level of debug messages that • 0 (default) = Debug messages are not
the Oracle Incremental Merge operation generated.
generates. • 1 to 9 = Debug messages are written to
the debug log file. The level of detail in
DEBUG_LEVEL is the corresponding the generated debug messages
parameter in the configuration file. increases with the debug level. The
debug log file name is
ddbmoim_<operation_type>.*.*.log, for
example,
ddbmoim_full.14928.1567760357.log.
-o [full|incr|arch|ctl|livemount| Mandatory if you do not set the • full = Creates a full backup copy of the
livemount-cleanup|mount|unmount| OPERATION parameter in the configuration database, archive logs, and control file.
proxy-restore|restore|cleanup] file. • arch = Backs up the archive logs and
Specifies the type of Oracle Incremental control file.
Merge operation that is performed. • cleanup = Removes the copies of any
failed backups.
OPERATION is the corresponding • ctl = Backs up the control file only.
parameter in the configuration file. • incr = Backs up the changed data
blocks, archive logs, and control file.
• livemount = Performs a live mount
restore that uses the ddbmoim
command.
• livemount-cleanup = Removes the live
mounted database after a live mount
restore that uses the ddbmoim
command.
• mount = Mounts the Data Domain
storage unit on the mount path
specified by the -m option or
BOOSTFS_INSTALL_DIR is the
corresponding parameter in the
configuration file.
DELETE_ARCHIVELOG is the
corresponding parameter in the
configuration file.
rman catalog
<RMAN_catalog_username>/
<password>@<RMAN_catalog_ser
vice_name>
RMAN_CATALOG_SERVICE is the
corresponding parameter in the
configuration file.
RMAN_CATALOG_USER is the
corresponding parameter in the
configuration file.
TEMP_DATABASE_PATH is the
corresponding parameter in the
configuration file.
TEMP_SNAPSHOT_PATH is the
corresponding parameter in the
configuration file.
ddutil -i
• Display the database ID for a specified database name (SID) for Oracle Incremental Merge backups:
NOTE: Use the database ID obtained from the ddutil -O oim -n list_dbid command in other ddutil -O oim
commands that you run to list and delete the Oracle Incremental Merge backups.
• Display information about Oracle RMAN agent backup files (not for Oracle Incremental Merge backups) at the individual file level,
directory level, or storage unit level:
NOTE: The default operation of the ddutil command is the display of backup information. If you run the ddutil
command with no options other than the mandatory -z option, the command displays all the backup files that are
located directly under the storage unit.
• Delete the specified Oracle RMAN agent backup files and directories (not for Oracle Incremental Merge backups):
• Prune (delete) the Oracle RMAN agent backup files and directories within a save time range (not for Oracle Incremental Merge
backups):
• Display information about Oracle Incremental Merge backups at the full, archive log, or control file level that are stored on the specified
Data Domain storage unit:
NOTE:
Use only the ddutil command to delete the Oracle Incremental Merge backups. Do not use the RMAN delete
command or crosscheck command with Oracle Incremental Merge backups.
Use the -c option for a forced deletion. If you do not use the -c option, the delete operation prompts for
confirmation before deleting the backups.
The ddutil program deletes backup files on the Data Domain system but does not delete any information on the database server. The
RMAN DELETE command deletes both the backup on the Data Domain system and the corresponding RMAN catalog record.
The ddutil program user must have permissions to the lockbox as described in Registering each Data Domain system on page 45. The
program uses the DD Boost library for operations, and does not require you to mount the storage unit.
You must run the ddutil command from the original installation location or set the RMAN_AGENT_HOME environment variable to
enable the dependent libraries and lockbox to be found.
As the root user, you can also run the ddutil -v command to verify the connectivity from the ddbmcon program to the Oracle
database, as required for the PowerProtect Data Manager operations with Oracle RMAN agent:
ddutil -v {system|asset|rman}
Without this option, the earliest backup time is used by default for the start of the time range.
NOTE: The operation terminates with an error if the <start_time> value is later
than the <end_time> value that is specified with the -e option.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -b <start_time> option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
-c Optional. Specifies to suppress prompting during a delete or prune operation. With this option,
the program proceeds to delete or prune the specified backup files without issuing any user
prompts.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -c option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
-C Optional. Specifies to register a Data Domain system with the appropriate lockbox. You must
use specific -a options with the -C option, as described in the following topics:
• Registering a standard Data Domain system on page 45
• Registering a Data Domain system with DD Boost over Fibre Channel on page 47
• Registering the lockbox credentials on page 75
-d Required for a delete operation. Specifies to delete the specified backup files and directories
from the Data Domain system.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -d option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
-D <debug_level> Optional. Generates debugging information during the ddutil command operations, where
<debug_level> is an integer from 0 to 9. This option is used to troubleshoot operational issues.
This option causes the ddutil command to print the debugging information to stderr and to
the operational log file. The higher the integer value, the more log information is produced. The
operational log file also contains the normal operational messages that are printed to stdout.
The operational log file, ddutil_<timestamp>.log, resides in the log subdirectory of the
installation location. For example, the operational log file name has the format ddutil_Wed
May 17 21:49:08 2017.log.
-e <end_time> Optional. Specifies the end of a time range, in a date and time format. Date and time format
used with the ddutil command options on page 64 provides details about the supported date
and time formats for <end_time>.
The option setting -e now specifies the current time, which is the default time value.
NOTE: The operation terminates with an error if the <end_time> value is earlier
than the <start_time> value that is specified with the -b option.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -e <end_time> option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
-f Optional. Specifies to display information about the specified backup files and directories that
were created or modified within the specified time range on the Data Domain system. This
display operation is the default operation of the ddutil command.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -f option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
-F {asc|desc} Optional. Specifies to list the backup files in either ascending or descending alphabetical order:
• The -F asc option displays the files in ascending alphabetical order, based on the file
pathnames.
• The -F desc option displays the files in descending alphabetical order, based on the file
pathnames.
You must specify the -f and -z options with the -F asc or -F desc option. You can
optionally specify the -b, -e, -R, -t, and <pathname><n> options with the -F asc or -F
desc option.
NOTE: The -F and -T options are mutually exclusive. You can use either option
but not both in the same ddutil command.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -F {asc|desc} option.
-H Optional. Specifies to register a Data Domain system for shared lockbox access.
Registering a Data Domain system for shared lockbox access on page 48 provides examples of
using the ddutil command with the -H option.
-i Optional. Displays information about the installed version of the Oracle RMAN agent. For
example:
ddutil -i
RMAN Agent Version: 19.4.0.0(21)
-k Mandatory for a prune operation. Specifies to prune (delete) the specified backup files that
were created or modified within the specified time range on the Data Domain system.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -k option.
-O oim Mandatory for Oracle Incremental Merge backup operations. Specifies to display information
about the specified Oracle Incremental Merge backups or delete the specified backups,
depending on the other command options on the ddutil -O oim command line:
• To display the database ID for a specified database name (SID), use the added options -n
list_dbid, -a DB_HOSTNAME, -a DB_NAME, and -z.
• To display the information about full, archive log, or control file backups that are stored on
the specified Data Domain storage unit, use the added options -f, -n {full|arch|ctl|
tagfile}, and -z. The -b "<start_time>", -e "<end_time>", and -l options
are optional. Use the -l option to list the details of the available files.
• To delete the specified backup files that are stored on the specified Data Domain storage
unit, used the added options -d, -n {full|arch|ctl}, and -z. The -b
"<start_time>", -e "<end_time>", and -c options are optional. Use the -c option
for a forced deletion without prompting.
-R Optional. Specifies to perform the operation on the backup files in every subdirectory.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -R option.
-t Optional. Specifies to include the cloud tier information in the backup file and directory
information that a display operation produces.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -t option.
-T {asc|desc} Optional. Specifies to list the backup files in either ascending or descending time order:
• The -T asc option displays the files in ascending time order, from the oldest backup to
the newest backup.
• The -T desc option displays the files in descending time order, from the newest backup
to the oldest backup.
You must specify the -f and -z options with the -T asc or -T desc option. You can
optionally specify the -b, -e, -R, -t, and <pathname><n> options with the -T asc or -T
desc option.
NOTE: The -T and -F options are mutually exclusive. You can use either option
but not both in the same ddutil command.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -T {asc|desc} option.
-U Mandatory for upgrading the lockbox. After the Oracle RMAN agent installation, if you want to
use an existing lockbox in a non-default directory, you must upgrade the lockbox through
either of the following procedures:
• Run the following ddutil -U command to upgrade the lockbox and then copy the
existing lockbox files to the default directory, $RMAN_AGENT_HOME/config. The
command must include the complete pathname of the non-default directory. For example:
• Copy the existing lockbox files from the non-default directory to the default directory,
$RMAN_AGENT_HOME/config, and then run the following ddutil -U command to
upgrade the lockbox:
ddutil -U -a LOCKBOX_IMPORT=TRUE
CAUTION: If you do not run the appropriate ddutil -U command to upgrade the
existing lockbox, any subsequent backup, restore, and query operations will fail
with an error message.
-v Optional. Specifies to test the connectivity to the Oracle database as required for the
PowerProtect Data Manager operations with Oracle RMAN agent. The root user must run the
ddutil -v command with the added option system, asset, or rman:
• The ddutil -v system command performs system verification, which verifies the
connectivity to the Oracle instances.
• The ddutil -v asset command performs asset verification, which verifies the ability
to read the Oracle database objects.
• The ddutil -v rman command performs RMAN verification, required only if you use an
RMAN catalog. The command tests whether the ddbmcon program can connect to the
target database and catalog database through an RMAN script, as required to perform an
active deletion of Oracle backups.
The PowerProtect Data Manager for Oracle RMAN Agent User Guide provides information
about the PowerProtect Data Manager operations with Oracle RMAN agent.
-x Optional. Specifies to delete all the empty directories during a delete or prune operation.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -x option.
-z <hostname>:<storage_unit> Mandatory for display, delete, and prune operations. Specifies the hostname of the Data
Domain system, followed by a colon, a forward slash (/), and the storage unit name. For
example:
-z dd_host1:/dd_storage_unit1
NOTE: The hostname can be a DFC server name if you must run the ddutil
command over Fibre Channel.
Subtopics under Display and deletion of backups on page 61 provide examples of using the
ddutil command with the -z <hostname>:<storage_unit> option.
Using the ddutil command to list and delete the backups on page 84 provides examples for
Oracle Incremental Merge backups.
<pathname1> Optional. Specifies the pathnames of the files or directories for display or deletion. For each
<pathname2>...<pathname><n> specified directory, the operation is performed on all the files in the directory. When -R is
included, the operation processes all the subdirectories of each directory. Without -R, the
operation does not process any subdirectories.
• The pathnames must be the last options on the command line. No other types of options,
such as -R or -c, can appear after the pathnames.
• When no pathnames are specified, the operation occurs only at the level of the storage
unit root directory.
• When a pathname starts with a forward slash (/), the storage unit name must appear after
the slash.
• When a pathname does not start with a slash (/), the pathname is assumed to be located
directly under the storage unit.
For example, when the storage unit is named su1, the pathnames /su1/dir1 and dir1
both specify the directory dir1 under the storage unit.