To minimize SAP maintenance windows, move everything that doesn’t need the system to be down out of the window. Run checks and preparation while users keep working, stop and start systems in the right sequence, verify automatically afterwards, and roll back automatically if anything fails. Then record the work as planned downtime, so it doesn’t count against your service levels. Kernel upgrades are a good example: Avantra’s Automated Kernel Upgrade runs its checks and preparation while SAP is still up, and only stops SAP in the downtime phase you schedule.
Why SAP maintenance windows run long
Kernel upgrades are planned work. The NIST SP 800-40 Rev. 4 guide to enterprise patch management planning describes patching as preventive maintenance for computing technologies.
A manual SAP kernel upgrade involves many tasks besides copying files:
- Connecting to the SAP server
- Downloading files and putting the packages into the right folders, using the right archiving programs to extract them
- Verifying that no users are connected, no jobs are running and no other activities are under way
- Setting the correct permissions and checking there’s enough space
- Stopping and restarting the SAP system
When these tasks happen by hand inside the maintenance window, every one of them adds to the time SAP is down, and they repeat for every system you upgrade.
How do you minimize SAP maintenance windows, step by step?
Step 1: Prepare before the downtime starts
Build the upgrade package and run every check while the system is still up.
In Avantra, you create a kernel bundle from SAP’s .SAR archives, then configure the upgrade run for one or more SAP systems. Our earlier post on ready-to-use SAP kernel upgrade automation introduces the feature. When the run starts, Avantra begins with a preparation phase that doesn’t stop SAP. Users can keep connecting and working while Avantra:
- Checks prerequisites: matching kernel and patch versions, upgrade files present, agent access to the kernel files, and enough space in the download locations
- Extracts the archives, if you choose to do it during preparation instead of during downtime
The downtime itself starts only at the date and time you set.
Step 2: Protect the window from surprises
Make sure nothing is running when the system goes down.
Avantra can halt the automation if users are logged in or jobs are active, with lists of users and jobs to ignore. It can also send information to connected users at a date and time you set.
Step 3: Schedule the downtime as a maintenance window
Put the downtime where the business can afford it, for example overnight, and make sure monitoring knows it’s planned.
In Avantra, you set the downtime for the upgrade run. With Maintenance Windows, you can turn monitoring off for the systems involved, and even stop SAP automatically when the window starts and start it again when it ends. Availability data is still recorded during the window.
Step 4: Stop, upgrade and start in the right sequence
During the downtime phase, Avantra stops the SAP system, upgrades the kernel and starts the system again, using SAP’s standard SAPCPE-based procedure. The same start/stop orchestration runs Avantra’s SAP Landscape Management automation.
If your kernel and system configuration support SAP’s Rolling Kernel Switch (RKS), Avantra runs the stop and start steps in the sequence SAP documents for RKS. Check SAP’s RKS prerequisites and profile parameters first.
To cover a whole landscape faster, select several SAP systems in one run, and Avantra upgrades them in parallel.
Step 5: Verify automatically
Don’t end the window until you know the system is healthy.
In Avantra’s post-upgrade phase, it checks the new kernel version and confirms that the SAP system is up and running, and that connected instances have the same kernel level and an active status.
Step 6: Roll back automatically if anything fails
A failed upgrade shouldn’t turn into an outage.
With rollback on failure switched on, Avantra rolls back when:
- A Rolling Kernel Switch step fails
- An error message appears in the ASCS or primary application server log files
- The SAP system can’t be started
The rollback runs inside a maintenance window: Avantra stops the SAP instances, restores the kernel from its backup, and starts SAP again. You choose how many days to keep the backup before it’s cleaned up.
Step 7: Report the downtime as planned
Show the business that maintenance didn’t break your service levels.
When a system is down during an Avantra Maintenance Window, the downtime is recorded as planned and doesn’t count against the Service Level Report.
What you need
- Start/stop automation, tested first: Automated Kernel Upgrade needs Avantra’s start/stop automation to be tested successfully. Start/stop is available in the Avantra Automation and Enterprise Editions.
- Kernel Upgrade license and permissions: Automated Kernel Upgrade needs the Kernel Upgrade license. Permissions to maintain kernel bundles aren’t granted by default, so add them to the users or groups that need them.
- Supported systems:
- SAP NetWeaver 7.10 or higher, with 64-bit kernels
- Linux, AIX, Solaris or Windows
- For Db2, only UDB (DB6) is supported
- SAP’s prerequisites for SAPCPE, and for RKS if you use it
The same approach for other maintenance
Kernel upgrades aren’t the only maintenance that eats into downtime. Avantra’s library of SAP and operating system automations also includes add-ins for SAP HANA database patching, SPAM/SAINT patching, SAP Web Dispatcher updates, and Red Hat, SUSE and Debian system patching. See Avantra’s SAP patching and security automation for the full scope.
Frequently asked questions about minimizing SAP maintenance windows
How do you minimize SAP maintenance windows with automation?
Move all work not needing downtime out of the window. Run checks and prepare files while SAP is up, confirm no users or jobs are active, stop and start systems in sequence, verify the result, and roll back on failure. Avantra’s Automated Kernel Upgrade follows this pattern for SAP kernel upgrades.
Does Avantra support SAP’s Rolling Kernel Switch?
Yes. For a Rolling Kernel Switch (RKS), Avantra uses the same steps as a regular kernel upgrade, but runs the stop and start steps in the sequence SAP documents for RKS. Your kernel must be RKS-compatible, and your system must meet SAP’s RKS prerequisites and profile parameter settings.
What happens if an automated kernel upgrade fails?
With rollback on failure switched on, Avantra rolls back automatically if an RKS step fails, if errors appear in the ASCS or primary application server logs, or if SAP can’t be started. It restores the previous kernel from its backup and starts SAP again.
Does planned SAP maintenance count against service levels?
Not when it runs in an Avantra Maintenance Window. Downtime during a maintenance window is recorded as planned and doesn’t count against the Service Level Report. Availability data is still recorded. Downtime outside a maintenance window, with monitoring on, counts as unplanned.
What does Avantra’s Automated Kernel Upgrade need?
You need the Kernel Upgrade license, permissions to maintain kernel bundles, and successfully tested start/stop automation, available in the Avantra Automation and Enterprise Editions. Supported systems run SAP NetWeaver 7.10 or higher with 64-bit kernels on Linux, AIX, Solaris or Windows.
Does Avantra upgrade several SAP systems in one run?
Yes. Select several SAP systems when you configure the upgrade run, and Avantra upgrades them in parallel instead of one after another. Each system still goes through the preparation, downtime and post-upgrade phases.

