Table of Contents
How to Upgrade SAP HANA XSA (Step-by-Step Guide with Commands)
This guide shows you how to upgrade SAP HANA XS Advanced (XSA) safely and efficiently, including exact commands, validation tips, and what to do when HANA System Replication is enabled.

Click to Read SAP HANA Multi Target Replication Setup
Prerequisites
- XSA_ADMIN password is available.
- You can run these commands as
<sid>adm
:xs lc xs version
Check Current XSA Versions
First verify the XS Advanced Runtime and component versions.
xs version
Example output:
XS Advanced Runtime version: 1.13.14
XS Advanced Controller version: 1.13.14
Download the Latest XSA Runtime Patch
From the SAP Support Portal → Support Packages and Patches, navigate:
By Category
> SAP In-Memory (SAP HANA)
> HANA PLATFORM EDITION
> SAP HANA PLATFORM EDITION 2.0
> SAP EXTENDED APP SERVICES 1
Download the file (pattern):
EXTAPPSER00P_XXX-XXXXXXXX.SAR
Upload & Extract the Patch (hdblcm)
- Upload the
.SAR
to your XSA server, e.g./tmp/packages/EXTAPP
. - As
<sid>adm
, run:
cd hdblcm
./hdblcm --action=extract_components
This extracts the software archive for installation.
Run the Installer
Point hdblcm
to the component root directory you extracted:
./hdblcm --component_root=/tmp/packages/EXTAPP
When prompted, choose:
update_components
Validate the Upgrade
Confirm the new version after the update:
xs version
Example after upgrade:
XS Advanced Runtime version: 1.14.21
XS Advanced Controller version: 1.14.21
Upgrading XSA with HANA System Replication
To upgrade on the Secondary / DR node
- Break the system replication.
- Start the HANA DB on the secondary node in standalone mode.
- Perform the XSA upgrade steps above (download → extract → install → validate).
- Reconfigure replication with the primary node.
If you later switch primary/secondary roles, repeat the same process on the new secondary node.
Best Practices & Tips
- Always test the upgrade in non‑production before production.
- Ensure adequate free disk space where you place the
.SAR
and extracted components. - Capture pre/post checks: keep
xs version
output for audit. - Coordinate a maintenance window, especially when breaking replication.
Read more about SAP HANA XSA