Professional Documents
Culture Documents
Community!
Not yet a member on the new home? Join today and start participating in the discussions!
Technical Articles
Laszlo
Thoma
January 16, 2023 | 5 minute read
0 5 2,995
Introduction
There is huge knowledge available about SAP HANA reclaim / shrink / defragmentation topic, but the
knowledge is very fragmented (Help Portal, Blog post, SAP KBA, SAP Note, other). In order to simply and
make content consumption easier I have created a centralized page, a single source of the available
information regarding SAP HANA persistence. Further I would like to help you with shrinking exercise in SAP
HANA, express edition to demonstrate the process.
Table of Content
1. Task 1. – Exercise
A. Prerequisites
Task 1. – Exercise
Prerequisites
Background
During the exercises I will use test database SFLIGHT. More information can be nd:
SAP HANA, express edition and SFLIGHT demo database, modeling – Complete Tutorial
The actual fragmentation can be identi ed with the following SQL Statement: “HANA_Disks_Overview”.
In production system the fragmentation (~30%) is accepted, should not do reclaim. It will be defragmented
to demonstrate the process (test system).
ALTER SYSTEM RECLAIM DATAVOLUME 120 DEFRAGMENT;
The following values (all) had been decreased: TOTAL_GB, UNUSED_GB, FRAG_PCT.
Best Practice: the RECLAIM process can be scheduled when the system load is minimal.
“When RECLAIM is run in parallel to production load and modi cations there is a certain risk of signi cant
runtime overhead depending on the used SAP HANA Revision level:”
Conclusion
Free up space on DISK level is an easy task in case of SAP HANA. First, we need to identify if there is unused
disk space available. When the unused space and the fragmentation details shows we can do the
defragmentation. From SAP HANA 2.0 SPS06 this feature had been automated.
SAP HANA Administration Guide for SAP HANA Platform – Persistent Data Storage in the SAP HANA
Database
SAP HANA SQL Reference Guide for SAP HANA Platform – ALTER SYSTEM RECLAIM DATAVOLUME
Statement (System Management)
SAP HANA Troubleshooting and Performance Analysis Guide – Reclaiming Disk Space
Which is the master SAP Knowledge Base Article of the SAP HANA persistence?
=================================================================
When (in general) and after what action, the fragmentation needs to be checked?
Note: To check the data management activity from DISK perspective that is a good practice to run the
“HANA_Disks_Overview” report before and after the activity. Compare the numbers especially the
fragmentation. After the delete/archive activity the USED_GB will decrease, the UNUSED_GB will increase,
the FRAG_PCT will also increase in general. Probably the fragmentation now shows signi cant number
(higher than accepted value). These indicators shows that reclaim can be executed.
Which other documentation is important regarding SAP HANA reclaim / shrink / defragmentation topic?
The general way to do defragmentation is to use SQL commands. The action can be done in the following
way also.
SAP HANA Academy video explains the reclaim process via SAP HANA Cockpit.
Watch on
Collected information regarding High Availability and Disaster Recovery in SAP HANA
Where can I nd information about the available tools for SAP HANA (all types of use)?
Useful bookmark
Contribution
If you nd any missing information belongs to the topic, please let me know. I am happy to add the new
content. My intention is to maintain the content continuously to keep the info up-to-date.
Release Information
Alert Moderator
Assigned Tags
SAP HANA
Basis Technology
defragmentation
View more...
Collected information regarding High Availability and Disaster Recovery in SAP HANA
By Laszlo Thoma Apr 14, 2023
Criteria for HANA administrator to decide on proceeding with DATA Volume reclaim activity
By Raju Doppalapudi Jun 04, 2019
Related Questions
Reclaim free space datavolume
By Mostefa Kenida Jul 25, 2019
SQL Command "ALTER SYSTEM RECLAIM LOG" not shrinking log les
By Hussain Khatib Nov 04, 2021
Find us on
Newsletter Support