Skip to main content

What happens at HANA System Restart after crash

The SAP HANA system restart sequence is a process that efficiently brings the system back to a fully functional state. Here's a breakdown of the steps involved:


Reading Restart Records:


The restart agent of the persistence layer accesses the data volume of each service to read and load the restart record.


Managing Transactions:


The list of open transactions is read into memory.

Row tables are loaded into memory.


Processing Open Transactions:


Open transactions are processed using the redo log.

Transactions that were open when the database was stopped are rolled back.

Changes to committed transactions that were not written to the data area are rolled forward.


Handling Aborted Transactions:


Aborted transactions are identified and rolled back.


Creating Savepoint:


A savepoint is performed, capturing the restored consistent state of the database.


Column tables that are marked for preload, and their attributes, are asynchronously loaded in the background:


The preload parameter is configured in the meta-data of the table. This feature is useful, for example, to make certain tables and columns that are used by important business processes available more quickly.


Column tables and their attributes that were loaded before restart, start reloading asynchronously in the background (if they have not already been loaded as part of log replay or because they are marked for preload).


In summary, the SAP HANA system restart sequence involves a comprehensive set of steps to ensure a smooth and efficient restoration of the system to a fully operational state, including managing transactions, handling aborted transactions, creating savepoints, and loading tables in a strategic manner.


Note : - 


While reloading column tables significantly accelerates the restoration of the database to a fully operational state, it comes with a trade-off in terms of performance overhead. This feature might not be essential for non-production systems. To manage and optimize this process, consider the following configurations:


Deactivation in indexserver.ini:


You have the option to deactivate the reload feature by adjusting the reload_tables parameter in the sql section of the indexserver.ini file. Setting it to "false" turns off the automatic reloading of column tables.


Parallel Loading Configuration:


Adjusting the tables_preloaded_in_parallel parameter in the parallel section of the indexserver.ini file allows you to configure the number of tables whose attributes are loaded in parallel. This setting not only influences the parallel loading of tables during the reload process but also determines the overall performance impact.


 

Comments

You might find these interesting

8 Must-Know Questions About Object Store on SAP Business Technology Platform

What is the problem that Object Store solves ? Modern enterprise systems increasingly deal with massive volumes of unstructured data such as documents, logs, media files, and backups. Traditional relational databases are not optimized for such workloads. What is Object Store ? Object storage—commonly referred to as blob storage—addresses this gap by providing scalable, durable, and cost-efficient storage for unstructured data. Object storage is a storage architecture designed to manage unstructured data as discrete units called objects.  Each object consists of: Binary data (file content) : Image , File etc Metadata (descriptive attributes) : File size, Content type, Last modified timestamp, Storage class (hot, cool, archive) Unique identifier (key or URL) : unique path-like string used to locate a blob inside a bucket Unlike file systems or relational databases, object storage does not rely on hierarchical file structures or schemas. The SAP BTP Object Store service is a managed, ...