29
1 © 2014 SAP AG or an SAP affiliate company. All rights reserved. SAP HANA SPS 10 – What’s New? Backup/Recovery Andrea Kristen, SAP HANA Product Management June, 2015 (Delta from SPS 09 to SPS 10)

SAP HANA SPS10- Backup/Recovery

Embed Size (px)

Citation preview

Page 1: SAP HANA SPS10- Backup/Recovery

1© 2014 SAP AG or an SAP affiliate company. All rights reserved.

SAP HANA SPS 10 – What’s New? Backup/Recovery

Andrea Kristen, SAP HANA Product Management June, 2015

(Delta from SPS 09 to SPS 10)

Page 2: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 2Public

Agenda

• Backup

• Recovery

• Support for multitenant database containers

• Certification

Page 3: SAP HANA SPS10- Backup/Recovery

Backup

Page 4: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 4Public

What’s New in SAP HANA SPS10: Backup and RecoveryBackup integration into SAP HANA Cockpit (I)

Backup operations are now available in SAP

HANA Cockpit

Note: You can also use SAP HANA Studio to

display backup information

Viewing the backup status

Prerequisites:

o System privilege BACKUP OPERATOR or BACKUP

ADMIN

o Role sap.hana.backup.roles::Operator or

sap.hana.backup.roles::Administrator

1. In SAP HANA Cockpit, the Data Backup tile displays

the status of the current data backup:

o Successful, Running, Snapshot Prepared, Canceled,

Error

Page 5: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 5Public

What’s New in SAP HANA SPS10: Backup and RecoveryBackup integration into SAP HANA Cockpit (II)

Displaying detailed information on backups

Prerequisites:

o System privilege BACKUP OPERATOR or BACKUP

ADMIN

o Role sap.hana.backup.roles::Operator or

sap.hana.backup.roles::Administrator

1. In SAP HANA Cockpit, click on the Data Backup tile

2. The backup catalog is displayed. It shows:

o Time range that the backup catalog covers

o Size of the backup catalog itself

o Information on the last backups (status, start time, backup

type, duration, size, destination type and comment)

3. By clicking on an entry in the catalog, detailed

information on the respective backup is displayed

Page 6: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 6Public

What’s New in SAP HANA SPS10: Backup and RecoveryBackup integration into SAP HANA Cockpit (III)

Creating a data backup

Note: You can also use SAP HANA Studio to create

data backups.

Prerequisites:

o System privilege BACKUP OPERATOR or BACKUP

ADMIN

o Role sap.hana.backup.roles::Operator or

sap.hana.backup.roles::Administrator

1. In SAP HANA Cockpit, click on the Data Backup tile

2. On the Backup Catalog page, choose Start New

Backup and specify your backup settings

3. Start the backup by choosing Back Up

4. The progress is displayed on the Data Backup tile

To view the progress details, click the tile

Page 7: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 7Public

What’s New in SAP HANA SPS10: Backup and RecoveryData backups: full and delta

Delta backups contain data that was changed

since the last full data backup

Two types of delta backups are available:

Incremental and differential

Note: Delta backups are data backups – they

contain actual data. In contrast, log backups

contain redo log entries (sequence of changes)

F

Full data backup

– all data

I I I

Incremental backup

– changed data since

the last data backup

(full or delta)

DDifferential backup

– changed data since

the last full backup

A full data backups contains all current data

Note: Old data that is no longer valid but might still

be physically present in the data volumes is not

part of the data backup

Page 8: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 8Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – when to use what

Incremental backups...

...are usually small

faster backup

...are restored one after the other during a recovery

longer recovery times

Differential backups...

...increase the amount of data saved with each backup

longer backup times

...reduce the number of data backups during recovery

faster recovery

You can also mix incremental and differential

backups in your backup strategy

F

Full data backup

I I I

Incremental backup

DDifferential backup

Page 9: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 9Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – Creating a delta backup

Delta backups can be created using SAP HANA

Studio

Prerequisites: System privilege BACKUP OPERATOR

or BACKUP ADMIN; DATABASE ADMIN (for MDC)

1. In the Systems view in SAP HANA Studio, right-click

on the system and choose Backup and Recovery

Backup System...

2. Choose the backup type, for a delta backup: either

Differential Data Backup or Incremental Data Backup,

and specify further settings

3. Start the backup

Page 10: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 10Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – Backup catalog

Delta backups are included in the backup

catalog

In SAP HANA Studio, they are hidden by default

Prerequisites: System privilege BACKUP OPERATOR

or BACKUP ADMIN; DATABASE ADMIN (for MDC)

1. In the Systems view in SAP HANA Studio, double-

click on Backup and open the Backup Catalog tab

2. Select Show Delta Backups

Page 11: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 11Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – Backup lifecycle management

Backup lifecycle management now also

includes delta backups

Deleting old data backups

Prerequisites: System privilege BACKUP ADMIN;

DATABASE ADMIN (for MDC)

When choosing to delete all backups older than a

specified full backup, older delta backups will also be

deleted along with older full backups and log backups

Page 12: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 12Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – Backint support

Delta backups are compatible with the current Backint API specification

There are a few points that you need to be aware of when using a 3rd party backup tool

For delta data backups, SAP HANA is using the Backint option -l LOG in combination with the data Backint

parameter file given as option-p /usr/sap/<SID>/SYS/global/hdb/opt/hdbconfig/init<SID>Data.utl

The Backint parameter file is tool-specific and typically contains information like the backup destination (the

name of the backup container/pool in the 3rd party backup tool that is used to store the backup).

Note that some 3rd party backup tools support only one Backint parameter file for both data and log backups

In some cases backup tools use the Backint option -l to determine the suitable backup container from the

Backint parameter file, which means that for the option –l LOG the log backup container is used.

Caution: Backup containers that were until SPS10 only used for log backups may be sized too small for delta

backups. This could lead to a database standstill due to a log full situation.

Recommendation: Ask your 3rd party backup tool vendor for details on how to configure the

respective 3rd party backup tool for usage with delta backups. If in doubt configure two dedicated

Backint parameter files: one for data backups, and one for log backups.

Page 13: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 13Public

What’s New in SAP HANA SPS10: Backup and RecoveryDelta backups – SQL commands

Prerequisites: System privilege BACKUP OPERATOR or BACKUP ADMIN; DATABASE ADMIN (MDC)

Executing an incremental backup

BACKUP DATA INCREMENTAL USING FILE ('2015-05-15')

Resulting delta backup files:Data backup file: 2015-05-15_databackup_incremental_0_1431675865039_0_1

Data backup file: 2015-05-15_databackup_incremental_1431675646547_1431675865039_1_1

Data backup file: 2015-05-15_databackup_incremental_1431675646547_1431675865039_2_1

Data backup file: 2015-05-15_databackup_incremental_1431675646547_1431675865039_3_1

Executing a differential backup

BACKUP DATA DIFFERENTIAL USING FILE ('2015-05-15')

Resulting delta backup files:

Data backup file: 2015-05-15_databackup_differential_0_1431675646547_0_1

Data backup file: 2015-05-15_databackup_differential_1431329211296_1431675646547_1_1

Data backup file: 2015-05-15_databackup_differential_1431329211296_1431675646547_2_1

Data backup file: 2015-05-15_databackup_differential_1431329211296_1431675646547_3_1

Backup ID of

basis data backup

Backup ID of

delta data backup

Page 14: SAP HANA SPS10- Backup/Recovery

Recovery

Page 15: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 15Public

What’s New in SAP HANA SPS10: Backup and RecoveryBackups during normal operation

Last

full backup

1

Log backup

4

Most recent

entries from

log area

5

Incremental backup

2

Differential backup

3

Time

Now

F DI I I I

Page 16: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 16Public

SAP HANA Backup and RecoveryRecovery options

(A) To the most recent state

Specified full data backup or snapshot

+ last differential backup (Note: not supported if a snapshot is used as basis)

+ subsequent incremental backups (Note: not supported if a snapshot is used as basis)

+ subsequent log backups

+ redo log entries that are still available in the log area (if it was not destroyed by the failure)

Time

A

F DI I I

B

(B) To a point in time in the past

Same as above; redo log entries from the log area might not be required

C

(C) To a specified full data backup or snapshot

Specified full data backup or snapshot, but no log replay (“clear log”)

I

Page 17: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 17Public

What’s New in SAP HANA SPS10: Backup and RecoveryRecovery using delta backups – Tool support

Recovery includes delta backups automatically

Recovering to the latest point in time using SAP HANA Studio

Prerequisites: Credentials of <sid>adm operating system user

1. In the Systems view in SAP HANA studio, right-click on the system,

choose Backup and Recovery Recover System... and enter the

required credentials. The system is shut down.

2. Select the recovery type and specify the log backup location

3. Select the full backup upon which the recovery is to be based

4. Specify further recovery settings as usual.

If you do not want SAP HANA to use delta backups for the recovery,

de-select Use Delta Backups. Note: If you do not exclude delta backups,

SAP HANA automatically determines the best recovery strategy based

on all available backups, including delta backups.

5. Start the recovery

Page 18: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 18Public

What’s New in SAP HANA SPS10: Backup and RecoveryRecovery using delta backups – SQL commands

If delta backups are available, SAP HANA per default uses them for recovery

If you do not want delta backups to be used in a recovery, you need to specify this explicitly.

Executing the database to a point in time, excluding delta backups

Prerequisites: Credentials of <sid>adm operating system user, or system privilege DATABASE ADMIN (for

tenant databases in MDC system)

RECOVER DATABASE UNTIL TIMESTAMP '2015-05-15 10:00:00' IGNORE DELTA DATA BACKUPS

Page 19: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 19Public

What’s New in SAP HANA SPS10: Backup and RecoveryRecovery using delta backups – Identify required backups using hdbbackupdiag

You can use hdbbackupdiag to display the backups required for a recovery of the database

This helps you to keep the quantity of the files that have to be made available to a minimum.

Finding out which backups are required for a recovery to a specified point in time

Prerequisites: You are logged on to the database server with the operating system user <sid>adm and have

read authorization for the backup location. For more information, see the SAP HANA Administration Guide.

hdbbackupdiag -f -d /usr/sap/S10/HDB10/backup/log -u "2015-05-04 08:35"

found backup catalog 1430722970373 from file

/usr/sap/S10/HDB10/backup/log/log_backup_0_0_0_0.1430722970373

using backup catalog 1430722970373 from file

/usr/sap/S10/HDB10/backup/log/log_backup_0_0_0_0.1430722970373

COMPLETE_DATA_BACKUP_2_databackup_3_1

DIFF_DATA_BACKUP_2_databackup_differential_1430721900756_1430722012437_3_1

INC_DATA_BACKUP_4_databackup_incremental_1430722012437_1430722966073_3_1

Note: To exclude delta backups, use the --ignoreDeltaDataBackups option

Page 20: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 20Public

What’s New in SAP HANA SPS10: Backup and RecoveryBackup header contains SAP HANA revision

Using hdbbackupdiag you can display which SAP HANA version was used to create a backup

Displaying the backup header including the SAP HANA version

Prerequisites: You are logged on to the database server with the operating system user <sid>adm and have

read authorization for the backup location. For more information, see the SAP HANA Administration Guide.

Example: Display version information for data backup

hdbbackupdiag -v -b 2015-05-11_09-26_databackup_3_1

Page 21: SAP HANA SPS10- Backup/Recovery

Support for multitenant

database containers

Page 22: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 22Public

What’s New in SAP HANA SPS10: Backup and RecoveryMultitenant database containers: Backup/recovery concept

MDC systems follow the same backup/recovery principles as single-container systems

The system database plays a central role for MDC backup and recovery

It can initiate both backups of the system database itself and of individual tenants databases. A tenant database

can also carry out its own backups unless this feature has been disabled for this tenant database

Recoveries are always initiated from the system database

To recover a complete MDC system, the system database and all tenants need to be recovered

individually

Note: Snapshots are currently not supported

Page 23: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 23Public

What’s New in SAP HANA SPS10: Backup and RecoveryMultitenant database containers: SAP HANA Cockpit support

You can use SAP HANA Cockpit to create data

backups of the system database and of

individual tenant databases

Log on to the relevant database and click on the

Data Backup tile

Create data backups and view backup information

in the same way as for single-container databases

Note: You can also use SAP HANA Studio to create

data backups. Backup lifecycle management is

currently not available in SAP HANA Cockpit.

Page 24: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 24Public

SAP HANA Backup and RecoveryMultitenant database containers: Backint support

The current Backint API specification also covers MDC systems

There are a few points that you need to be aware of when using a 3rd party backup tool

Isolation level “high”

With SPS10, a new option “isolation level” was introduced for MDC systems. If the isolation level is set

to high, all tenant databases run under individual operating system users.

In high isolation scenarios, Backint is supported from the SAP HANA side but you need to check with

your 3rd party tool vendor whether any tool-specific restrictions apply.

Tenant copy

Tenant copy using Backint is currently not supported. Use file system backups for tenant copy instead.

Page 25: SAP HANA SPS10- Backup/Recovery

Certification

Page 26: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 26Public

SAP HANA Backup and RecoveryBackint Certification

Certification is an installation prerequisite for backup tools using the “Backint for SAP HANA” interface.

SAP Note 1730932 (Using backup tools with Backint)

"Backint for SAP HANA" Certification

Certified tools (as of 2015-04-23)

Online listing of certified tools: Application Development Partner Directory

Enter the search term HANA-BRINT and click on a partner name ”SAP Certified Solutions” for further details

Vendor Backup Tool Support Process (SAP Notes)

Commvault Simpana 10.0, Hitachi Data Protection Suite 10 (via Simpana Backint interface) 1957450

EMC Networker 8.2, Interface for Data Domain Boost 1.0 1999166, 1970559

HP Data Protector 7.0, 8.1, 9.0 1970558

IBM Tivoli Storage Manager for Enterprise 6.4 1913500

SEP Sesam 4.4 2024234

Symantec NetBackup 7.5 1913568

Page 27: SAP HANA SPS10- Backup/Recovery

More information

Page 28: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved. 28Public

SAP HANA Backup and RecoveryMore information

Documentation: SAP Help Portal – Administration Guide,

Technical Operations Manual, SQL Reference Guide

Overview presentation: SAP HANA Backup/Recovery Overview

Certification: “Backint for SAP HANA” Certification

Best practice: SAP Note 2091951: SAP HANA Backup and

Restore

Training: HA200: SAP HANA - Operations & Administration

SAP Note Title

1642148 FAQ: SAP HANA database backup and recovery

2031547 Backint Tools und Support

2039883 FAQ: SAP HANA database and storage snapshots

2165547 FAQ: SAP HANA Database Backup & Recovery in a

SAP HANA System Replication landscape

2021789 SAP HANA revision and maintenance strategy

Further SAP notes are available on component HAN-DB-BAC

Page 29: SAP HANA SPS10- Backup/Recovery

© 2015 SAP SE or an SAP affiliate company. All rights reserved.

Thank you

Contact information

Andrea Kristen

SAP HANA Product Management

[email protected]