Book Image

SAP HANA Cookbook

Book Image

SAP HANA Cookbook

Overview of this book

SAP HANA is a real-time applications platform that provides a multi-purpose, in-memory appliance. Decision makers in the organization can gain instant insight into business operations. Thus all the data available can be analysed and you can react to the changing business conditions rapidly to make decisions. The real-time platform not only empowers business users and top management to make decisions but also provides the capability to make decisions in real-time.A practical and comprehensive guide that helps you understand the power of SAP HANA’s real-time and in-memory capabilities. It also provides step-by-step instructions to exploit all the possible features of the SAP HANA database, enabling users to harness the full potential of this technology and its features.You will gain an understanding of real-time replications, effective data loading from various sources, how to load data, and how to create re-usable objects such as models and reports.Use this practical guide to enable or transform your business landscape by implementing SAP HANA to meet your business requirements. The book shows you how to load data from different types of systems, create models in SAP HANA, and consume data for decision-making. The book covers various tools at different stages creating models using SAP HANA Studio, and consuming data using reporting tools such as SAP BusinessObjects, SAP Lumira, and so on . This book also explains the in-depth architecture of SAP HANA to help you understand SAP HANA as an appliance, that is, a combination of hardware and software.The book covers the best practices to leverage SAP HANA’s in-memory technology to transform data into insightful information. It also covers technology landscaping, solution architecture, connectivity, data loading, and setting up the environment for modeling purpose (including setup of SAP HANA Studio).If you have an intention to start your career as SAP HANA Modeler, this book is the perfect start.  
Table of Contents (16 chapters)
SAP HANA Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding backup and recovery


In the SAP HANA database, during normal operation, data is automatically saved to the disk at regular savepoints. Furthermore, the log captures all the data changes. After each committed database transaction, the log is saved from the memory to the disk. When there is a power failure, the database can be restarted like any disk-based database, and it returns to its last consistent state by replaying the log since the last savepoint.

The backups are required for the following reasons:

  • To protect against disk failures

  • To make it possible to reset the database to an earlier point in time

Backups are carried out while the database is running and users can continue to work normally. The impact on system performance is negligible.

SAP HANA is an in-memory database or a database that stores its database tables in the main memory RAM. RAM is the fastest possible data storage media available as of today; however, it is volatile. During power loss, the data bits on the chip are erased or lost.

In order to avoid data loss, SAP HANA encompasses regular savepoints using two persistent storage volumes, that is, database logging or redo logging. With the combination of both redo logging and in-memory data savepoints, the system is fully capable of recovering from a sudden power failure.

The administration console of the SAP HANA studio provides a one-stop support environment for different activities such as system monitoring, back up and recovery, and user provisioning. The entire payload data from all the server nodes of the SAP HANA database instance are backed up as soon as the data area is backed up. This principle applies for both single-host and multihost environments.

During a log back up, the payload of the log segments is copied from the log area to the service-specific log backup files. Back up and recovery always applies to the entire database. It is not possible to back up or recover individual database objects. While performing a backup of the SAP HANA system, all the objects such as database tables, information models (that is, views and undo logs), information views, and metadata are all saved to a configurable persistent disk location. In the summary, all of the data and code that are stored in SAP HANA will be taken as a back up which is available at the specified path.

By default, the SAP HANA system creates log file backup for every 15 minutes (900 seconds), or when the standard log segments become full.

Further reading

In case of scenarios of data center failures due to accidents such as fire, power outages, natural calamities such as earthquakes, or due to hardware failures such as the failure of any node, SAP HANA supports a hot-standby concept using synchronous mirroring with a redundant data center concept. This includes redundant SAP HANA databases also.

In addition, the cold-standby concept uses a standby system within one SAP HANA landscape, where the failover is triggered automatically. SAP HANA is an ACID-compliant database supporting atomicity, consistency, isolation, and durability of transactions.

In addition to recovery for Online Analytical Processing (OLAP), SAP HANA also provides transactional recovery for Online Transactional Processing (OLTP) through the administrative console in the SAP HANA studio.

The currently supported processes are given as follows:

  • Recovery to last data backup

  • Recovery to last and older (previous) data backup

  • Recovery to last state before crash

  • Point-in-time recovery

User provisioning is supported with role-based security, authentication, and analysis authorization using analytic privileges, which enables security for analytical objects based on a set of attribute values.

The administration console in SAP HANA Studio enables the version control mechanism for models of SAP HANA and SAP Data Services. SAP HANA can run in a single production landscape if the initial use case scenario is not business critical and the data load performance for the initial load is acceptable to reload the data. However, it is always recommended to align the SLT and SAP Data Services environment with the existing source system landscapes. When it comes to enterprise-grade business supporting mode of environment, SAP HANA needs to run in the standard landscape, that is, SAP development, quality assurance and staging, and production environments.

For scale-up scalability, all algorithms and data structures are designed to work on large multi-core architectures, especially focusing on the cache-aware data structures and code fragments. For scale-out scalability, the SAP HANA database is designed to run on a cluster of individual machines. This allows the distribution of data and query processing across multiple nodes. The scalability features of the SAP HANA database are heavily based on the proven technology of the SAP BWA product.

Also, refer to SAP Note: 1642148