Вы находитесь на странице: 1из 65

VLAB - EMC DATA DOMAIN

BOOST FOR SAP HANA

vLab - EMC Data Domain Boost for SAP HANA


Table of Contents
Introduction and Overview............................................................................................................................ 3
Business Challenge..........................................................................................................................................4

Solution ...........................................................................................................................................................5

vLab Environment Overview ......................................................................................................................... 8


vLab Backup Environment Overview ................................................................................................................9

vLab Components .........................................................................................................................................10

vLab Environment and Layout.........................................................................................................................11

vLab Login Credentials ...................................................................................................................................13

Labs...............................................................................................................................................................14

vLab Backup Environment Setup And Configuration .................................................................................. 15


Connect using Putty SSH ................................................................................................................................16

Starting the SAP Hana Studio .........................................................................................................................20

vLab Backup and Recovery Demo Scenarios ............................................................................................... 23


Exercise #1 : Hana Studio Exploration. ..........................................................................................................24

Exercise #2 : Explore Backup Configuration Options In Hana Studio. .............................................................30

Exercise #3 : Perform Backups using Hana Studio .........................................................................................34

Exercise #4: Perform Restore using HANA Studio. ..........................................................................................42

Exercise #5: Perform Backups using HDBSQL ................................................................................................55

Summary and Conclusions ......................................................................................................................... 64


Summary .......................................................................................................................................................65
Introduction and Overview

vLab - EMC Data Domain Boost for SAP HANA Page 3


Business Challenge
SAP HANA is an in-memory data platform that you can deploy as an on-premise appliance, or in the cloud.
SAP HANA is a ground-breaking platform that is best suited to the performance of real-time analytics, and
the development and deployment of real-time applications. At the core of this real-time data platform is the
SAP HANA database that is fundamentally different than any other database engine in the market today.
Many IT organizations perform SAP HANA database backups on a nightly basis to meet their backup and
recovery window requirements. Most businesses store these backups for thirty days or more. Unfortunately,
this leads to rapid growth in backup storage, which has resulted in the continued use of legacy tape systems
as the default solution for database backups. This reliance on tape for backup storage can limit the number
of backups that a business can perform and negatively impact recovery point objectives (RPOs).

Additionally, organizations constantly challenge SAP HANA administrators to improve recovery time
objectives (RTOs). The process of recovering SAP HANA databases from a previous backup, then rolling a
large number of archive/redo logs forward is time consuming and complex. However, recovering the
database in the shortest possible time is essential to business operations.

vLab - EMC Data Domain Boost for SAP HANA Page 4


Solution
Provide details of the solutions, it's key benefits, any problems it solves.

vLab - EMC Data Domain Boost for SAP HANA Page 5


Introducing EMC Data Domain Boost for SAP

EMC Data Domain deduplication storage systems continue to revolutionize disk backup, archiving, and disaster
recovery with high-speed, inline deduplication. EMC first offered DBAs the ability to use RMAN integration with DD
Boost to backup and recover Oracle databases. EMC has now taken the next step in DBA empowerment by integrating
SAP HANA BACKINT Interface with Data Domain systems. The result of this integration is the DD Boost for Databases
and Applications product. SAP HANA only supports full database backups. When you use Data Domain deduplication
systems as the backup device for SAP HANA data, the deduplication process stores only unique data on the backup
device and streamlines the backup process. The efficiency of a Data Domain system combined with the benefits of DD
Boost, dramatically reduces the amount of data transferred to and stored on the Data Domain system.

DBAs and application owners can continue to seamlessly use existing, familiar workflows offered by SAP HANA Studio
and Command Line Interface (CLI) scripts. This allows the backup process to store the backup in a format that a
centralized backup application can understand and use for operations such as centralized cataloging, cloning,
retention, and tape-out. This unique and powerful integration gives DBAs and application owners the ability to control
their own backup and recovery procedures and write the data directly to Protection Storage. The results are simplicity,
improved performance, lower capital expenditure, and lower operational expenditure for the line of business owners.

DD Boost for SAP HANA integrates with the SAP HANA BACKINT interface to backup and recover SAP HANA databases
and redo log files. The SAP HANA BACKINT agent enables DD Boost for SAP HANA to directly connect to the HANA
database.

When a backup starts, the following actions occur:

• The SAP HANA database server invokes the backint agent. The backint agent implements the BACKINT API for
SAP HANA through the hdbbackint process.
• The database server creates named pipes to send data to the backint agent.
• The backint agent reads the data from named pipes and transfers the backup data to the Data Domain
systems.

SAP fully certifies the integration of DD Boost for SAP HANA with BACKINT.

The following figure provides a high level overview of the components in an SAP HANA environment that uses DD
Boost for SAP HANA.

vLab - EMC Data Domain Boost for SAP HANA Page 6


vLab - EMC Data Domain Boost for SAP HANA Page 7
vLab Environment Overview

vLab - EMC Data Domain Boost for SAP HANA Page 8


vLab Backup Environment Overview
This Lab contains a small SAP Hana server and two Data Domain servers.

Certain configuration tasks may be required during the course of this exercise in order to access the
resources involved.

The goals for this lab are to demonstrate the use of the SAP Hana tools to perform backups and recoveries.
These tools are as follows.

• SAP Hana Studio


• Hana HDBSQL command Line language.

The ddbda suite is already installed and pre-configured.

You will perform most of the tasks using the Hana Studio.

vLab - EMC Data Domain Boost for SAP HANA Page 9


vLab Components
Here is a lists of the virtual machines included in this lab and their intended purpose. Please review the
diagram in the next section.

vLab - EMC Data Domain Boost for SAP HANA Page 10


vLab Environment and Layout
This demo environment consists of one Hana server and two Data Domain Servers. You also have a
Launchpad and Domain Controller.

The relevant hostnames are saphana2, ddve-01, and ddve-02.

The Hana Server contains a small database called demo.

The Data Domain Boost for Database applications is already installed on saphana2.

/opt/ddbda/<dir>

vLab - EMC Data Domain Boost for SAP HANA Page 11


SAP HANA Architecture.

vLab - EMC Data Domain Boost for SAP HANA Page 12


vLab Login Credentials
Here are your login credentials for each host.

creds.png

vLab - EMC Data Domain Boost for SAP HANA Page 13


Labs
You will walk through the following scenarios in this Lab.

Here is a Lab Summary List:

• Pre-Step: Configure Putty ssh for the Command Line Exercises


• Lab 1
1: Working with Hana Studio
• Shutdown and restart the Database
• Explore the SAP Hana Components
• Lab 2
2: Explore the Backup and Recovery Configuration inside Hana Studio
• Lab 3
3: Perform Backups Using Hana Studio
• Lab 4: Perform Restores Using Hana Studio
• Lab 5: Perform Backups using HDBSQL Command Line Language

vLab - EMC Data Domain Boost for SAP HANA Page 14


vLab Backup Environment Setup
And Configuration

vLab - EMC Data Domain Boost for SAP HANA Page 15


Connect using Putty SSH
You will use Putty SSH to run the Command Line exercises for this Lab. You can also explore the various
components of the SAP Hana server using Putty SSH.

Open the Putty Application

1. Double Click the Putty SSH Icon on your Desktop

vLab - EMC Data Domain Boost for SAP HANA Page 16


Double Click the saphana2 configuration

1. Just double click the saphana2 under saved session

vLab - EMC Data Domain Boost for SAP HANA Page 17


Login as Root

1. Login by typing root

Type your Password

1. Type Password123!

vLab - EMC Data Domain Boost for SAP HANA Page 18


You are now logged in

You are now logged in.

Please minimize this window.

vLab - EMC Data Domain Boost for SAP HANA Page 19


Starting the SAP Hana Studio
We have loaded the SAP Hana Studio client on your Launchpad for this vLab. You can easily open the HANA
studio by double clicking the Icon on the desktop.

Startup the Hana Studio

1. Double click the SAP Hana Studio Icon on your Desktop.

vLab - EMC Data Domain Boost for SAP HANA Page 20


Hana Studio will Load up.

1. It may take a minute to load up.

vLab - EMC Data Domain Boost for SAP HANA Page 21


Hana Studio is now Running

1. You should see a window like the one pictured below. (Please Be Patient.)

vLab - EMC Data Domain Boost for SAP HANA Page 22


vLab Backup and Recovery Demo
Scenarios

vLab - EMC Data Domain Boost for SAP HANA Page 23


Exercise #1 : Hana Studio Exploration.
Most of this demo will be run from the Hana Studio. You already have it running at this time.

This section is intended to get you familiar with the Hana Studio application.

Restarting the Hana Database

You will need to restart the Hana Database from time to time. Here are the steps.

1. Left Click to Highlight the HDB(SYSTEM) ICON then Right Click

2. Click Configuration and Monitoring

3. Click Restart System

vLab - EMC Data Domain Boost for SAP HANA Page 24


Restarting the Hana DB Continued.

1. Choose Soft

2. Click Ok

vLab - EMC Data Domain Boost for SAP HANA Page 25


Restarting the Hana DB Continued.

This System is restarting you can observe all the Hana Processes involved.

**Please note the system restart may take a couple of minutes. Please be patient.

vLab - EMC Data Domain Boost for SAP HANA Page 26


Exploring the Hana Studio

1. Maximize the HDB(SYSTEM) Hierarchy by clicking the Plus Sign.

2. Left Click the HDB (SYSTEM) Icon to highlight.

2. Click on the Administration Icon

vLab - EMC Data Domain Boost for SAP HANA Page 27


Exploring the Hana Studio Continued

1. Click on the Overview Tab

2. Click on the Landscape Tab

3. Click on the Configuration Tab

Feel free to Click on the Others.

vLab - EMC Data Domain Boost for SAP HANA Page 28


Exploring the Hana Studio Continued

1. Click on the System Monitor Icon

System Monitor

Review the Information in System Monitor

Feel free to explore the rest of the Sap Hana Interface.

vLab - EMC Data Domain Boost for SAP HANA Page 29


Exercise #2 : Explore Backup Configuration Options In Hana Studio.
Backups Using Hana Studio

We will explore the backup configuration and options available within the Hana Studio.

**You may go ahead and restart the HANA database before you start this exercise as demonstrated in Exercise #1. If
you find that this exercise runs slower than desired the HANA restart will help.

1. Left Click to Highlight the Backup Configuration Icon then Right Click in the Hana Studio
2. Choose Open Backup Console

NOTE: if the Backup Console does not appear. Please right-click and open the Backup Console again.

vLab - EMC Data Domain Boost for SAP HANA Page 30


Backup Overview Review

1. Review the Backup Overview Including the Last Successful Backup

vLab - EMC Data Domain Boost for SAP HANA Page 31


Backint Configuration - DD Boost for Database Applications.

1. Click on the Configuration Tab

2. Click on the Arrow to the left of the Backint Settings (See Arrow)

3. Review the Backint Agent Location

4. Review the Backint Parameter file Location

5. Review the Log Backup Settings for Backint

*DDBDA was pre-installed configured for this lab

vLab - EMC Data Domain Boost for SAP HANA Page 32


File Based Backup Options - Log Backup Options

Review the Highlighted Sections to view the File Based Backup Options
Options.

Backup Catalog

1. Click on the Backup Catalog Tab (View the Details)

We are now ready to perform Backups via Hana Studio.

vLab - EMC Data Domain Boost for SAP HANA Page 33


Exercise #3 : Perform Backups using Hana Studio
Review the Previous Section Starting the SAP Hana Studio if you need to and start up the Studio.

Hana Studio Backup

1. Left Click to Highlight the Backup Icon then Right Click .

2. Click Open Backup Console. (Please be Patient)

vLab - EMC Data Domain Boost for SAP HANA Page 34


Start Backup Wizard

1. Right Click the Backup Icon

2. Click Backup System

NOTE: you may see the Warning "Not valid input", please ignore it by clicking "Ok" and do a Right Click on the Backup
Icon one more time and click Backup System

vLab - EMC Data Domain Boost for SAP HANA Page 35


Backint DDBDA Hana Configuration Wizard

1. Complete Backup will be the default and that is fine. You will not be able to change this in the studio

2. Choose Backint

vLab - EMC Data Domain Boost for SAP HANA Page 36


Backint DDBDA Hana Configuration Wizard Continued

Observe the Backup Destination after Choosing Backint.

*It calls the DDboost hdbbackint from the DD Boost for Database Applications

vLab - EMC Data Domain Boost for SAP HANA Page 37


Add a Date Stamp to the Backup Prefix

1. Type in a date after the Complete_Data_Backup_<Add


<Add Date>

*We will use the prefix during the restore.

vLab - EMC Data Domain Boost for SAP HANA Page 38


Continue On

1. Click Next

vLab - EMC Data Domain Boost for SAP HANA Page 39


Click Finish

1. Click Finish to Start

Observe the Backup

The Backup will Show Percentage Complete

It will then show Complete.

**Please be patient as it make take a couple of minutes to complete your backup.

vLab - EMC Data Domain Boost for SAP HANA Page 40


Backup Complete

1. Click Close

vLab - EMC Data Domain Boost for SAP HANA Page 41


Exercise #4: Perform Restore using HANA Studio.
We will show a sample restore scenario in Hana Studio.

*The Hana Database must be completely shut down to perform the restore.

Open Hana Studio and Stop the Hana Database

Reference the SAP Hana Studio chapter if you need to review how to start the studio

1. Right Click on HDB (SYSTEM)

2. Choose Configuration and Monitoring

3. Choose Stop System

vLab - EMC Data Domain Boost for SAP HANA Page 42


Soft Shutdown

1. Choose Soft this is the Default

2. Click OK

vLab - EMC Data Domain Boost for SAP HANA Page 43


System is going Down

1. Observe the System Components going down

vLab - EMC Data Domain Boost for SAP HANA Page 44


System is Shutdown

1. Verify the System is completely Down

* We are now ready to perform our Restore.

vLab - EMC Data Domain Boost for SAP HANA Page 45


Restore the Hana Database Using the Hana Wizard

Perform the Restore

1. Right Click HDB (SYSTEM)

2. Click Backup and Recovery

3. Click Recover System

vLab - EMC Data Domain Boost for SAP HANA Page 46


Wizard Reads the Backup Catalog

1. Observe the Data Collection.

vLab - EMC Data Domain Boost for SAP HANA Page 47


Recover Database to a Specific Backup

1. Click Recover to a Specific Backup

2. Click Next

vLab - EMC Data Domain Boost for SAP HANA Page 48


Choose Backint

1. Choose Backint as the Destination Type

vLab - EMC Data Domain Boost for SAP HANA Page 49


Change the Backup Prefix

1. Just Click in the Backup Prefix Window and Type a character ("__" character for example)

2. Click on your specific backup you created. (Today's Date)

3. Click Next

vLab - EMC Data Domain Boost for SAP HANA Page 50


Other Settings

1. Just keep the default log and license Options

2. Click Next

vLab - EMC Data Domain Boost for SAP HANA Page 51


Start the Restore

1. Click Finish
Finish, the Restore will Start

vLab - EMC Data Domain Boost for SAP HANA Page 52


Verify the Restore is Running

1. Observe the Restore and Recovery

**Please note that the Restore and Recovery could take several minutes to complete.

vLab - EMC Data Domain Boost for SAP HANA Page 53


The system will Show Restored at the end of the job.

1. Observe the Summary

2. Click Close to exit

Verify All Services Are Running

1. Observe the Hana Studio and make sure all Hana Services are back up and running

*Congratulations you just perform an entire Hana System Restore.

vLab - EMC Data Domain Boost for SAP HANA Page 54


Exercise #5: Perform Backups using HDBSQL
This Exercise is intended to get you comfortable using HDBSQL for Hana Backups. We will do this in the
Hana Studio and also with the Putty SSH Client.

Open Hana Studio

Review the Previous Section Starting the SAP Hana Studio if you need to and start up the Studio.

1. Click on the SQL Icon


Icon. (See Arrow)

HDB SQL in Hana Studio

1. Type this command into the SQL Window.

BACKUP DATA USING BACKINT ('/usr/sap/HDB/SYS/global/hdb/backint/hdbbackint')

2. Click the Green Execute Arrow (See Arrow)

vLab - EMC Data Domain Boost for SAP HANA Page 55


Open the Backup Console to Observe the HDBSQL Run.

1. Right Click Backup

2. Click Open Backup Console

NOTE: if the Backup Console does not appear. Please right-click and open the Backup Console again.

*You will Now be able to switch between the SQL tab and the Backup HDB (System) Tab. Just Click the SQL to execute
the Backup and click Backup Console Tab to watch the backup run (See Arrows)

vLab - EMC Data Domain Boost for SAP HANA Page 56


Observe the Backup in the Backup Configuration Console

1. This is what you will see after clicking on the Backup HDB (System) Tab (See Arrow)

It shows the current backup that is running.

NOTE: you may need to "Refresh" this window if the "progress" bar will not appear automatically. Click the "Refresh
Refresh"
button in the upper right corner.

Command Line Backups outside of Hana Studio

Before you can use Hana hdbsql outside of the Hana Studio, you must run a command that generates a "User Store
Key" on the SAP Hana System.

This key functions like a security token to allow the OS user to take backups. I will show a sample run next. This
command is called hdbuserstore.

1. Open the Putty SSH session on the Launchpad (the SSH window should be opened from the previous step)

vLab - EMC Data Domain Boost for SAP HANA Page 57


NOTE
NOTE: If you closed this window, please login to the Hana Database as user 'root
root' and Password123! (See Connecting
Using Putty SSH for Review)

2. Run this command to switch to the hdbadm user (OS user): su - hdbadm

Change to the Home Directory

1. Run this command cd /home/hdbadm (If not already There)

vLab - EMC Data Domain Boost for SAP HANA Page 58


View the Command Line Samples

1. Run this command cat hanacommandlinebackup.txt (From /home/hdbadm)

*This shows us working samples of all the Hana Commands that are needed to run for command line backups.

You can always come back to this location for working command line samples.

From here we can copy and past the command within Putty (Highlight the command and Right Click on your Mouse)

vLab - EMC Data Domain Boost for SAP HANA Page 59


Change into the Hana Directory that has the Hana Client Binaries.

1. Change Directories to the Hana client Software cd /hana/shared/HDB/hdbclient

You will have to be in this directory to run the Hana commands.

Run hdbuserstore to create User Store Key

1. Copy and Paste the hdbuserstore sample from the hanacommandlinebackup.txt (Highlight the Line then Right Click)

2. Hit Return

vLab - EMC Data Domain Boost for SAP HANA Page 60


List the backup2 token with the Sample Command

1. Copy and Paste the hdbuserstore list backup2 Command (Highlight and left Click in Putty)

2. Verify the output ENV and USER.

Test the Token

1. Copy and Paste the hdbsql -U backup2 "select * from dummy" command (Highlight the Command in Putty Right
Click)

2. Hit Return

3 Verify the Query is Run

4. Control + C to exit the Query

Now we can run the hdbsql command outside of the Hana Studio

1. Cat the /home/hdbadm/hanacommandlinebackup.txt file again. Run cat /home/hdbadm/


hanacommandlinebackup.txt

vLab - EMC Data Domain Boost for SAP HANA Page 61


2. Copy and Paste the hdbsql -U backup2 'BACKUP DATA USING BACKINT"
BACKINT"...... using Putty (Highlight and Right Click)

3. Hit Return

Observe the Backup running from the Backup Console

1. Open Hana Studio and Open the Backup Console (Review Previous Steps)

vLab - EMC Data Domain Boost for SAP HANA Page 62


Verify Success

1. View the Last Successful Data Backup from the Backup Console

*Congratulations you are now completed with all the demo scenarios.

vLab - EMC Data Domain Boost for SAP HANA Page 63


Summary and Conclusions

vLab - EMC Data Domain Boost for SAP HANA Page 64


Summary
Sap Hana and DDBoost for Database Applications

Here is a list of demo scenarios that we have learned during the course of these exercises.

• Hana Studio Specifics.


• Performing Backups and Restores with Hana Studio.
• Performing Backups with HDBSQL
• Command Line Utilities in Hana to allow the use of HDBSQL by the OS user. (hdbuserstore)

vLab - EMC Data Domain Boost for SAP HANA Page 65

Вам также может понравиться