02 Script DD With Oracle11gR2
02 Script DD With Oracle11gR2
Overview.....................................................................................................................................................3
Objectives....................................................................................................................................................3
Preparing For This Demo.............................................................................................................................3
Demonstration Step-By-Step Guide.............................................................................................................4
Connect via RDP 4
Review of Data Domain GUI 4
Oracle Backup 14
Native Backup process.......................................................................................................................14
Run Backup using a Backup script......................................................................................................17
Oracle Restore 24
Page | 2
Overview
Data Domain deduplication storage systems optimize data protection and disaster recovery, providing
massive data reduction, eliminating reliance on tape, straightforward administration and ease of use.
Data Domain easily integrates with existing infrastructure to simplify and centralize management.
Backup agents running on different operating systems are a challenge to backup software. The
complexity of the different agents adds to the management burden of the database and backup
administrators. DataDomain simplifies database backup and recovery in complex environments by:
Allowing inherent Database management tools to run backup and restore jobs.
Eliminating the middle man with direct write access to Data Domain.
Providing secure share level access by host and user
Objectives
This document provides a step-by-step guide to effectively demonstrate:
A review of the Data Domain browser based GUI management portal, data
management, system layout and command line interface functions.
Generating the Oracle database backup to Data Domain, highlighting inherent Oracle
RMAN backup tools to run backup and restore jobs with direct write access to a Data
Domain CIFS share
Discussing various Data Domain technologies, such as variable segment deduplication,
memory writes, disk commits and data integrity validation.
Should you encounter any errors please reference the ‘known issues’ document.
NOTE: The Data domain Access rights provide only ‘user’ level access, thus limiting any capability to
manage/configure the Data Domain unit. But the admin access is provided if needed.
To outline the flow of the demo for your customer please use the ‘DD_Direct _Backup_Oracle_SQL.pptx’
animated powerpoint slide.
Page | 3
Demonstration Step-By-Step Guide
2) Launch IE shortcut to DD browser portal from the Desktop (Double click DD_HTTP icon)
3) Login to DD Enterprise Manager with assigned user credentials as displayed on the desktop
wallpaper: username: emcadmin; password:d3m04emc
Page | 4
4) Expand the DD Network tree in the left pane to display all systems within the network.
Note: All systems can be viewed from any of the networked systems, up to 64 entries. In
the center pane:
Page | 5
5) Select the DD system, DD1-VE.VLAB.LOCAL listed under DD Network
Page | 6
Status
Summary sub-tab
Point out all the Services that are enabled and running, Replication, VTL and DD Boost are licensed
features.
Hardware: DD VE.
Alerts sub-tab
Review user session info; note that same user can have multiple sessions. Example of that would be
a session thru GUI and a session thru SSH.
Page | 7
Stats Sub-Tab
Page | 8
Data Management
/data - where all backup data is written to, also is the root directory for creating CIF Shares and other
merkle tree directory structures.
/ddvar - An administrative share, updates, upgrades, SPs. Should NOT be used for writing backup
data. Access permissions should be limited to DD Administrators only.
Configuration tab - Point our Local Compression Type: lz. Compression parameter can be changed
to use gzfast, but is more intensive on the CPU utilization.
CIFS Sub-Tab
Show all the CIFS shares created on the appliance and their logical path. Note host client access is
open to all. Explain share access is controlled by combination of host and user access.
Page | 9
NFS Sub-Tab
Review NFS, pointing out that client access can be granted by IPs or Subnet
VTL Sub-Tab
To create a VTL requires Admin rights, in this case it’s best to review what the steps should be taken
and walk thru the proper tabs for correlating step.
1) Zoning of DD and Media Server
2) Set Alias names for NW initiators (done in Physical Resources)
3) Create Group (done in Access Groups)
4) Set group on initiator
5) Create library (done in Virtual Tape Libraries) creating drives, slots, caps
6) Vault, create pools and tapes
7) Import tapes
8) Add Luns in Access Groups
9) Scan for all devices on Media Server Host
10) Configure/discover library on Media Server
Page | 10
Replication
Discuss Directory level and Collection based replication. Collection replication is a device to device
replication, requires formatting of target device.
Hardware
Storage Sub-Tab
Network Sub-Tab
Discuss current Network configuration, mentioning that although only two Ethernet ports are
physically available, max supported show up in the enterprise manager.
Page | 11
Chassis Sub-Tab
Review the physical representation of DD VE Appliance. There is no information about the chassis
because it’s a virtual version.
NVRAM is 1GB in size with two batteries on the card, all data gets written to the DD system in the
following fashion:
1) first lands in NVRAM
2) goes through deduplication process
3) deduped blocks get committed to the disk
4) memory space is recycled.
Page | 12
System Settings
License Sub-Tab
Review local users, oppose to other authentication methods like NIS or Active Directory, in which
case users would not show up in the bottom pane, as it’s a representation of local users
only.
Email alert settings are set during initial configuration to forward any issues with the appliance to
DataDomain Support.
Maintenance
System Sub-Tab
Support Sub-Tab
System health and activity is captured in Logs, however, format of log output is not formatted for
standard txt file format.
Page | 13
Oracle Backup
Datafiles backup
Page | 14
c) Next screen will report on the completion of work:
Archivelog backup
e) To check the backup files going to desktop -> double click on DD_CIFS shortcut:
Page | 15
f) You will see all data and logs files which have been backed up:
Page | 16
Run Backup using a Backup script
Page | 17
d) Once the backup completes, confirm the backup process finished without errors:
e) To check the backup files going to desktop -> double click on DD_CIFS shortcut:
f) You will see all backup files which have been made:
Page | 18
While the backup is running use the following CLI views to capture and monitor system
stats and compression rates.
Open a SSH Session using PuTTY, Login using the credentials: emcadmin/d3m04emc
Page | 19
a) While the backup is running execute command: iostat 2 to look at ingest and write stats.
Page | 20
1. First system wide summary…
Explain that such high rate of compression is achieved by storing only unique blocks to the
device not only to the backup job.
Here we can see the compression of data over a period the backup process:
We can see the real-time compression state. The pictures are showing the real size of data
which comes in to the input and actual stored data.
Page | 21
Compression of the logs folder
3. You may wish to run another backup to compare the Data Domain figures.
Please delete the previous data from the CIFS share first!
Note:
If so, there are further scripts available to you to write random data to the ORACLE
database. This script is located: C:\System Docs\scripts:
Page | 22
Note: If necessary to have a backup with different size from previous, please run a script
(AA_Oracle_Update_Table.pls)
c) The following signs are indicate that the script is completed correct:
Page | 23
Following a successful run of these scripts, which take approximately one minute to run, you
should then run a second backup. You may want to use a different backup tool on this occasion
to run your backup. We have provided a backup script, should you wish to use it. The name of
backup script is RUN_OracleBackup.cmd and location is in C:\System Docs\scripts\
Again, while the backup is running you should use the same CLI commands and views as used
during the previous backup to capture and monitor system stats and compression rates.
Oracle Restore
Page | 24
a) Enter the command “STARTUP FORCE MOUNT;” and press enter:
Page | 25
e) Enter “EXIT;” to exit from RMAN
This brings us to the end of the demo. If the situation deems appropriate feel free to explore further.
Page | 26