Upgrade Guide | PUBLIC Software Update Manager 1.0 SP26 Document Version: 1.0 – 2021-02-15

Updating SAP Java Systems on Windows: SAP HANA DB company. All rights reserved. affiliate

THE BEST RUN 2021 SAP SE or an SAP © Content

1 Introduction...... 6 1.1 About This Document...... 6 1.2 Before You Start...... 8 Naming Conventions...... 8 SAP Notes...... 10 1.3 Accessing SAP NetWeaver Library...... 11

2 Quick Guide...... 12

3 Planning...... 16 3.1 Tool Information: Software Update Manager...... 16 SL Common User Interface (SL Common UI)...... 17 SL Common UI Elements and Options...... 18 SL Common UI: Getting Support Using the Support File...... 22 SUM Observer Monitor...... 23 Communication Between Back-End Processes and the SL Common UI...... 24 SUM Directory...... 25 3.2 Technical Details of the Update Procedure...... 27 3.3 Technical Details of the Upgrade Procedure...... 28 3.4 Update of NWDI-Driven System Landscapes...... 30 3.5 Updating Distributed and High Availability (HA) Systems...... 31

4 Preparation...... 34 4.1 Determining the Host for the Preparations...... 34 4.2 Checking the Hardware Requirements...... 35 4.3 Checking the Software Requirements...... 36 Checking the Source Release of the SAP System...... 36 Meeting the -Specific Requirements...... 37 Upgrade of the Operating System and Database System: Overview...... 37 Update Approach for JCE Policy Files...... 38 4.4 Security and Authentication...... 39 4.5 Cleaning Up the Profile Directory...... 40 4.6 Checking the SAPLOCALHOST Settings...... 40 4.7 Configuring OS User Authentication...... 40 4.8 Filling the Download Directory...... 41 4.9 Meeting Kernel-Related Prerequisites...... 42 4.10 Preparing the Update of High Availability Systems...... 42 4.11 Ensuring the Validation of the Java Administrator...... 43

Updating SAP Java Systems on Windows: SAP HANA DB 2 PUBLIC Content 5 Running the Software Update Manager...... 45 5.1 Meeting the Requirements for the SUM Directory...... 46 5.2 Downloading and Unpacking the Software Update Manager...... 47 5.3 Registering SUM in SAP Host Agent...... 48 5.4 Starting and Restarting the Software Update Manager...... 49 5.5 Starting the SUM Observer Monitor...... 51 5.6 Resetting the Update...... 52 5.7 Using the Alert Function...... 53 5.8 Using Breakpoints During the Update...... 55 5.9 Making Entries for the Specify Authentication Mechanism Roadmap Step...... 56 5.10 Making Entries for the Select Target Roadmap Step...... 57 5.11 Making Entries for the Confirm Target Roadmap Step...... 57 5.12 Making Entries for the Configuration Roadmap Step...... 58 Making Basic Entries for the Java Update Process...... 58 Making Entries for the Target System Configuration...... 59 5.13 Making Entries for the Checks Roadmap Step...... 60 5.14 Performing Actions Before the Beginning of the Downtime...... 60 5.15 Performing Manual Actions for the SAP Central Services Instances...... 63 5.16 Performing Actions at the End of the Downtime...... 64 5.17 Evaluating the Software Update Manager...... 65 5.18 Running the Software Update Manager for Another Update...... 66 5.19 Stopping the Software Update Manager...... 66 5.20 Performing an Automated Update...... 67

6 Follow-Up Activities...... 69 6.1 SAP HANA DB: Backing Up the Database...... 69 6.2 Performing Follow-Up Activities for SAP Solution Manager...... 70 6.3 Deleting Log Files...... 71

7 Applying Single Component Updates and Patches Using a Manually Prepared Directory ...... 72 7.1 Introduction...... 72 7.2 Quick Guide...... 72 7.3 Filling the Manually Prepared Download Directory...... 74 7.4 Running the Software Update Manager...... 75 Meeting the Requirements for the SUM Directory...... 76 Downloading and Unpacking the Software Update Manager...... 77 Registering SUM in SAP Host Agent...... 78 Starting and Restarting the Software Update Manager...... 79 Resetting the Update...... 81 Using the Alert Function...... 82 Using Breakpoints During the Update...... 84

Updating SAP Java Systems on Windows: SAP HANA DB Content PUBLIC 3 Making Entries for the Specify Authentication Mechanism Roadmap Step...... 85 Making Entries for the Select Target Roadmap Step...... 86 Making Entries for the Confirm Target Roadmap Step...... 87 Making Entries for the Configuration Roadmap Step...... 87 Performing Actions Before the Beginning of the Downtime...... 88 Performing Actions at the End of the Downtime...... 88 Evaluating the Software Update Manager...... 89 Storing Current SUM Data for Future Use...... 90

8 Installing Additional Usage Types (Technical Usages) in an Existing SAP System...... 91 8.1 Introduction...... 91 8.2 References to Maintenance Planner Documentation...... 91 8.3 Restrictions...... 91

8.4 Preparation...... 92 8.5 Installation...... 92 8.6 Post-Installation...... 93 8.7 Deactivation...... 94

9 Correction of Installed Software Information...... 96 9.1 Introduction...... 96 9.2 Making Entries for the Select Target Roadmap Step...... 96

A Appendix...... 97 A.1 Process Overview Report...... 97 A.2 Troubleshooting...... 98 SL Common UI: Solving Problems with the UI...... 99 Update Logs...... 99 Tracing...... 101 Correcting Errors in the DEPLOY_ONLINE_* Steps...... 101 Correcting Problems in the DEPLOY_* Steps...... 103 Correcting Errors in the RUN_OFFLINE_MIGRATION Step...... 104 Reentering Passwords...... 104 Using the SUM Forced Mode...... 106 Starting and Stopping the AS Java Manually...... 106 Determining the Database Version for SAP HANA DB for Java-only Systems...... 107

A.3 List of Referenced SAP Notes...... 108 A.4 List of Referenced Documentation...... 109

Updating SAP Java Systems on Windows: SAP HANA DB 4 PUBLIC Content Document History

The following table provides an overview of the most important document changes.

 Caution

Before you start, make sure that you have the latest version of this document. You can find the latest version on the SAP Support Portal at http://support.sap.com/sltoolset . Choose tab System Maintenance, then the scenario Software Update/Upgrade using SUM Software Update/Upgrade with SUM 1.0 SP 26 .

Document: Updating SAP Systems with SUM 1.0 SP26

Version Date Description

1.0 2021-02-15 Initial version

Updating SAP Java Systems on Windows: SAP HANA DB Document History PUBLIC 5 1 Introduction

1.1 About This Document

Purpose

This document describes how to update SAP systems based on SAP NetWeaver Java using the Software Update Manager (SUM) 1.0 SP26.

The Software Update Manager is a multi-purpose tool that supports various processes, such as performing a release upgrade, installing enhancement packages, applying support package stacks, installing add-ons, or updating single components. For clarity and readability, the term “update” is used in this document for all supported processes.

For more information about the Software Update Manager, see the blog Software Update Manager (SUM): introducing the tool for software maintenance on the SAP Community Network.

For more information about the supported maintenance procedures and update paths, see the current Software Update Manager Note 2882395 and its attachments.

Integration

This document only contains information about the Software Update Manager tool and the update procedure using this tool, as well as about some actions directly related to basic SAP NetWeaver functionality.

It is essential that you read the Master Guide (or Upgrade Master Guide, if such exists as a separate document) for your product version. The Master Guide (Upgrade Master Guide) guides you through the complete update and refers you to the required documentation for each step.

If there are preparation and follow-up activities for the update that are specific to your product, they are described in a product-specific document. This document is also referenced in the Master Guide (or Upgrade Master Guide). It is crucial that you perform the product-specific preparation activities before you start the Software Update Manager and that you perform the follow-up activities after the Software Update Manager has finished successfully.

To find the latest version of these documents, access the SAP Help Portal for your SAP NetWeaver release. See also Accessing SAP NetWeaver Library [page 11].

Updating SAP Java Systems on Windows: SAP HANA DB 6 PUBLIC Introduction How to Use this Document

 Recommendation

We recommend that you use the Quick Guide [page 12] to guide you through the process. The Quick Guide checklist provides you with an overview of all necessary tasks in chronological order. If you are experienced in performing updates, the checklist may contain all you need to know to perform the update successfully. If you need more information, follow the links to the detailed descriptions.

 Note

If this document contains information for more than one operating system, database or product release, texts that apply to one or more of these aspects are marked with bars. The types of bars are the following:

● With regular thickness when they are only valid for individual paragraphs within the topic ● In bold and placed directly below the title of a topic when they are valid for the entire content of the topic

The document is structured as follows:

● Chapter 1 – Introduction This chapter contains information about using this document, an overview of new features available in the latest SUM versions, some naming conventions, and lists some required SAP Notes. ● Chapter 2 – Quick Guide The Quick Guide lists all activities in the right order. For more information about the single steps, follow the links in the Quick Guide [page 12]. ● Chapters 3 to 6 – Update Process These chapters contain detailed information about planning, preparing, and performing the update, and about follow-up activities. ● Chapter 7 – Applying Single Component Updates and Patches Using a Manually Prepared Directory This chapter contains information about applying single component updates and patches using a special feature in the Software Update Manager. ● Chapter 8 – Installing Additional Usage Types (Technical Usages) in an Existing SAP System This chapter contains information about installing additional usage types or technical usages in an existing SAP system based on SAP NetWeaver Java. ● Chapter 9 – Correction of Installed Software Information This chapter contains information about correcting and updating the details of the software instances installed in your SAP system. ● Appendix ○ Process Overview Report Contains information about the reports that are generated by the SUM to analyze the update procedure. ○ Troubleshooting Contains information about known problems and troubleshooting them. ○ List of Referenced SAP Notes Lists all SAP Notes with additional information about the update procedure that are referenced in this document besides the SAP Notes [page 10] that are relevant for the update preparation. ○ List of Referenced Documentation Lists the documentation that is referenced in this document and contains information about where to find this documentation.

Updating SAP Java Systems on Windows: SAP HANA DB Introduction PUBLIC 7 1.2 Before You Start

1.2.1 Naming Conventions

Update

In this document, the term “update” is used as a collective term for all the software logistics processes that you can perform using the Software Update Manager (such as performing release upgrades, installing enhancement packages, or updating a system with support package stacks).

Software Update Manager, SAPehpi, and SAP Upgrade Tools

The Software Update Manager evolved from the previous SAP Enhancement Package Installer and SAP upgrade tools. The tool has been renamed to reflect its broader use.

SUM Directory and

In this document, “SUM directory” and “” are used as synonyms when referring to \SUM.

SAP System

In this document, the term “SAP system” is used for SAP NetWeaver systems as well as for SAP application systems. “SAP” is also used as a synonym for “SAP NetWeaver” or “SAP application” in terms such as “SAP start profile” or “SAP system language”.

SAP System ID

In this document, the SAP system ID is abbreviated as “SAPSID” or “sapsid”. If “” is used, your SAP system ID has to be in lowercase letters, for example, “prd”. If “” is used, you have to write in uppercase letters, for example, “PRD”.

Updating SAP Java Systems on Windows: SAP HANA DB 8 PUBLIC Introduction ID for the SAP System Release

In this document, “” stands for the relevant SAP system release, without a decimal point, such as “740”. If an enhancement package has been installed in the system, the last digit indicates the enhancement package version, such as “731” for SAP enhancement package 1 for NetWeaver 7.3.

SAP System Instances

As of SAP NetWeaver 7.1, the concept and naming of SAP system instances has changed. The terms “central instance” and “dialog instance” are no longer used. Instead, the SAP system consists of the following instances:

● Application server instances Application server instances can be installed as “primary application server instance” or “additional application server instances”. ● Central services instance ● Database instance

Throughout this document, we use the new terms “primary application server instance” and “additional application server instance”. For releases lower than SAP NetWeaver 7.1, the “primary application server instance” corresponds to the “central instance” and the “additional application server instance” corresponds to the “dialog instance”.

Instance Name

In this document, is used as a placeholder for the instance name in the instance directory path of your system.

Substitute with J for the primary or additional application server instance, where stands for the instance number.

Step and Phase

In this document, in some scenarios the term “phase” is used as a synonym of the term “step”. This is done in alignment with the Software Update Manager UI, which, when regarding Java scenarios, distinguishes these terms on a technical level.

Usage Type, Technical Usage, and Product Instance

As of SUM SP12, the term “product instance” has replaced the terms “usage type” and “technical usage” for SAP systems based on SAP NetWeaver 7.3 including enhancement package 1 and higher. For more information,

Updating SAP Java Systems on Windows: SAP HANA DB Introduction PUBLIC 9 see SAP Note 1877731 . Note that there is no terminology change for older releases and all mentioned terms can be used as synonyms. As this is a generic update document, the currently used terms remain but only “product instance” will be used from now on when referring to SAP NetWeaver 7.3 EHP1 and higher.

Microsoft Failover Cluster Service Naming

Microsoft’s clustering product “Microsoft Cluster Server” has been renamed to “Microsoft Failover Cluster". As of SUM SP08, the obsolete term is no longer used in the guide.

1.2.2 SAP Notes

Use

To prepare and perform the update of your SAP system, you require some additional information that is not included in this document. This information is in a range of SAP Notes in SAP Support Portal (http:// support.sap.com/notes ), some of which you have to read before you start with the preparations. Besides the central Software Update Manager Note, there are separate SAP Notes for the database-specific sections. When you actually perform the update, you may need information from some additional SAP Notes. These SAP Notes are named at the appropriate places in this document.

SAP Notes for Preparing the Update

You have to request the following SAP Notes from SAP Support Portal before you start the update procedure:

● Central Software Update Manager Note ● SAP Note for your database

Since these SAP Notes are updated regularly, make sure that you always use the newest version.

SAP Notes Required to Prepare the Update

SAP Note Number Description

2882395 Central Software Update Manager Note

2976259 SAP HANA DB-specific

Updating SAP Java Systems on Windows: SAP HANA DB 10 PUBLIC Introduction Other SAP Notes

In addition to the SAP Notes that you need to prepare the update, this document also refers you to other SAP Notes that contain additional information. These SAP Notes are listed in the List of Referenced SAP Notes [page 108].

1.3 Accessing SAP NetWeaver Library

Before, during and after the update, you require the SAP online documentation for SAP NetWeaver. The applicable paths to the SAP NetWeaver Library (http://help.sap.com ) regarding the SAP NetWeaver versions mentioned in this document are as follows:

SAP Library Paths

Release Path

SAP NetWeaver 7.5 http://help.sap.com/nw75

SAP NetWeaver 7.4 http://help.sap.com/nw74

For more information about accessing this documentation, see the product-specific document for your target release.

Updating SAP Java Systems on Windows: SAP HANA DB Introduction PUBLIC 11 2 Quick Guide

This section contains a checklist with all the actions you need to perform:

● Find SAP Notes ● Plan the update ● Prepare the update ● Update your system ● Perform the follow-up activities

The actions are in chronological order so that you can work through them like a checklist. For more information, follow the links to the descriptions of the actions.

You can also use the checklist to gain a quick overview of the update procedure.

Checklist

SAP Notes

This document is enhanced and updated by SAP Notes from SAP Support Portal (http://support.sap.com/ notes ). These SAP Notes are an important source of information when you plan and prepare your update, and also help you perform the actual update.

☐ 1. You request the current SAP Notes [page 10]. You require at least the following SAP Notes: ○ Central Software Update Manager Note 2882395 ○ The relevant database-specific SAP Note 2976259

Additional Documentation

Before, during and after the update, you require additional documentation, such as SAP Library documentation.

☐ 1. You make sure that you can access the SAP Library documentation [page 11].

Update Planning

Before you start the actual update, you have to plan it carefully so that downtime is reduced to a minimum and the update runs as efficiently as possible.

 Caution

Start planning your update at least two weeks before you want to begin with the update.

☐ 1. You familiarize yourself with the features of the Software Update Manager [page 16] and the update procedure. Technical Details of the Update Procedure [page 27]. Release upgrade only: If you require more detailed information, see Technical Details of the Upgrade Procedure [page 28].

Updating SAP Java Systems on Windows: SAP HANA DB 12 PUBLIC Quick Guide ☐ 2. You plan the update of NWDI-driven system landscapes [page 30]. ☐ 3. You plan the update of distributed and high-availability systems [page 31].

Update Preparation

You can perform the preparations while the system is in production operation. The Software Update Manager supports you here by making most of the necessary checks automatically.

 Caution

In addition to the general preparations described in this document, you need to perform the preparations that are specific to your product version, which are described in an additional product-specific document. This document is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product.

Actions Before Starting and Using the Software Update Manager

☐ 1. You choose the host [page 34] for the preparations. ☐ 2. You check the hardware requirements [page 35]: ○ CPU, main memory, disk space and page file - see https://www.sap.com/about/benchmark/ sizing.html ○ Disk space in the file system for the SUM directory and the download directory. The space required depends on the product you are updating. Note that the exact amount of space is dependent on the size of the download directory used for your scenario. A general minimum is the size of the download directory multiplied by 3. For more information, see the document with additional product-specific information, which is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product. ○ Space requirements for the database: The Software Update Manager calculates the space requirements for the database. The free space required is in the range from 50 to 200 GB. ☐ 3. You check the software requirements: ○ Release upgrade and enhancement package installation: Source release [page 36] of the SAP system ○ Operating system-specific requirements [page 37]. ○ You plan or perform the upgrade of the operating system and database system [page 37], if necessary. For information about which operating system and database versions are currently supported, see the Product Availability Matrix on SAP Service Marketplace at https:// support.sap.com/release-upgrade-maintenance/pam.html . ○ You check the update approach for JCE policy files [page 38]. ☐ 4. (Optional) You take note of the recommended authentication and security considerations [page 39]. ☐ 5. If necessary, you clean up the profile directory [page 40]. ☐ 6. You check the SAPLOCALHOST settings [page 40]. ☐ 7. You configure the OS user authentication [page 40]. ☐ 8. You fill the download directory [page 41]. ☐ 9. You meet kernel-related prerequisites [page 42]. ☐ 10. You perform the specific preparations for distributed and high availability systems [page 42]. ☐ 11. You ensure the validation of the Java Administrator [page 43].

Update Procedure

Actions for Starting and Using the Software Update Manager

Updating SAP Java Systems on Windows: SAP HANA DB Quick Guide PUBLIC 13 ☐ 1. You meet the requirements for the SUM directory [page 46]. ☐ 2. You download and unpack the Software Update Manager [page 47]. ☐ 3. You register SUM in SAP Host Agent [page 48]. ☐ 4. You start the Software Update Manager [page 49]. ☐ 5. You can start the SUM Observer Monitor [page 51] in a second browser window or on a mobile device. ☐ 6. You can reset [page 52] the update if needed. In addition, you can configure the alert function [page 53] to notify you when user action is required. ☐ 7. You can use breakpoints during the update [page 55].

Making Entries for the Specify Authentication Mechanism Roadmap Step

You continue with roadmap step Specify Authentication Mechanism [page 56] and make the corresponding entries.

User Actions During the Select Target Roadmap Step

You continue with roadmap step Select Target [page 57] and make the corresponding entries.

User Actions During the Confirm Target Roadmap Step

You continue with roadmap step Confirm Target [page 57] and make the corresponding entries.

User Actions During the Configuration Roadmap Step You continue with roadmap step Configuration [page 58].

In order to continue, the Software Update Manager needs certain information from you. If possible, default values appear that you can confirm or change.

☐ 1. You make the basic entries for the Java update process [page 58]. ☐ 2. Release upgrade only: You make entries for the target system configuration [page 59].

User Actions During the Checks Roadmap Step

You continue with roadmap step Checks [page 60] and make entries, if necessary.

Actions During the Preprocessing Roadmap Step

☐ 1. You check the Software Update Manager Note, the application-specific SAP Note, and your database- specific SAP Note for new information and changes. ☐ 2. Before the downtime [page 60] begins, you are asked to make the necessary backups and perform additional actions.

Actions During the Execution Roadmap Step

While the processes of the Execution roadmap step are running, the system is in downtime.

At the end of the downtime, you again create backups [page 64] and if you are upgrading a high availability system, you prepare the SCS instance for production operation.

Actions During the Summary Roadmap Step

☐ 1. You evaluate the Software Update Manager [page 65]. ☐ 2. You make preparations to run the Software Update Manager for another update [page 66]. ☐ 3. You stop the Software Update Manager completely [page 66].

Automated Update

Updating SAP Java Systems on Windows: SAP HANA DB 14 PUBLIC Quick Guide If you perform a release upgrade, EHP installation, or an SPS update, you can automate the process as described in Performing an Automated Update [page 67]

Follow-Up Activities

 Caution

In addition to the general follow-up activities described in this document, you need to perform the follow-up activities that are specific to your product version, which are described in an additional product-specific document. This document is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product.

Actions Before Restarting Production Operation

☐ 1. You back up the database [page 69]. ☐ 2. Release upgrade only: You perform follow-up activities [page 70] for SAP Solution Manager. ☐ 3. For data protection and privacy reasons, you delete log files [page 71] that are not needed anymore.

Updating SAP Java Systems on Windows: SAP HANA DB Quick Guide PUBLIC 15 3 Planning

This part of the document contains information about planning your SAP system update. Before you begin the actual update, you have to first plan it carefully. This includes requesting all the SAP Notes you need. Careful planning is a prerequisite for a successful update. The following information helps you plan your update so that downtime is reduced to a minimum, and the update runs as efficiently as possible.

When you plan your update, note the following information in addition to the information in the Quick Guide [page 12]:

● All the times specified in this document are based on hardware with medium performance levels. ● Do not perform any additional actions during the Software Update Manager run that could cause it to run less smoothly. ● Start planning your update at least two weeks before you start with the update preparations. ● To make sure that all requirements are met, run the preparation roadmap steps of the Software Update Manager, Welcome, Select Target, Confirm Target, Execute Process, Initialization, Configuration, and Checks as soon as possible. You can reset and repeat the preparation roadmap steps as often as you need by choosing Back before you start the actual update in roadmap step Preprocessing. The successful execution of the preparation roadmap steps is a prerequisite for starting the update in roadmap step Preprocessing.

Actions

The following sections are important for planning the update:

● Tool Information: Software Update Manager [page 16] ○ SL Common User Interface (SL Common UI) [page 17] ○ SL Common UI Elements and Options [page 18] ○ SUM Observer Monitor [page 23] ○ Communication Between Back-End Processes and the SL Common UI [page 24] ○ SUM Directory [page 25] ● Enhancement package installation and SPS update: Technical Details of the Update Procedure [page 27] ● Release upgrade only: Technical Details of the Upgrade Procedure [page 28] ● Update of NWDI-Driven System Landscapes [page 30] ● Update of Distributed and High Availability Systems [page 31]

3.1 Tool Information: Software Update Manager

The following sections provide you with important information about the update program Software Update Manager (SUM):

● SL Common User Interface (SL Common UI) [page 17] ● SL Common UI Elements and Options [page 18] ● SL Common UI: Getting Support Using the Support File [page 22] ● SUM Observer Monitor [page 23]

Updating SAP Java Systems on Windows: SAP HANA DB 16 PUBLIC Planning ● Communication Between Back-End Processes and the SL Common UI [page 24] ● SUM Directory [page 25]

3.1.1 SL Common User Interface (SL Common UI)

The SL Common User Interface (SL Common UI) is used when you perform an update with SUM. The UI provides all functions for monitoring and navigating through the roadmap steps of the update procedure. The complete procedure consists of several roadmap steps that contain phases, which in turn consist of the individual steps.

As it is based on the SAP UI Development Toolkit for HTML5 (SAPUI5), which is a client-side rendering library, the SL Common UI does not require any Java components. It provides a rich set of standard and extension controls, a lightweight programming language, and a high level of customization.

The benefits of SAPUI5, and thus of the SL Common UI, are the following:

● Zero foot print (no installation requirements) ● Only a browser is required. ● You can view logs in the browser window. ● You can open the current phase list from the UI. ● You can maintain breakpoints in the browser window. ● You can change processing parameters during the runtime of the Software Update Manager using the web browser.

Prerequisites for Using the SL Common UI

● SUM has been configured for the use with SAP Host Agent as described in Configuring SAP Host Agent Authentication and SSL Connection [page 39]. ● Supported web browsers: ○ Microsoft Edge (latest release, not using compatibility view) ○ Microsoft Internet Explorer 11 and higher (not using compatibility view) ○ Google Chrome (latest release) ○ Mozilla Firefox (latest release)

 Recommendation

We strongly recommend that you always use the latest available web browser release.

 Note

Please note that Internet Explorer 11 will not support future SAPUI5 versions starting with SAPUI5 1.88. For more information, see the corresponding blog in the SAP Community .

If you encounter issues with the SL Common UI during the SUM process, check the topics related to the SL Common UI in Troubleshooting [page 98].

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 17 3.1.2 SL Common UI Elements and Options

This section describes the different elements and options of the SL Common UI that you can use during an update or a migration.

On the user interface, you see the different roadmap steps and a progress bar indicating how much of the current roadmap step has already been processed (in percent). In addition, the UI offers several options, menus, and buttons that are helpful for your update.

SL Common UI Overview

Second Progress Bar

The duration of the different phases within a roadmap step can vary significantly. If long-running phases start within the roadmap step, the SL Common UI displays in addition a second progress bar that is only valid for this current phase. This supports you in estimating the progress of this long-running phase.

Updating SAP Java Systems on Windows: SAP HANA DB 18 PUBLIC Planning In the following, you see an example of a second progress:

Example of Second Progress Bar

Options: Task List, Logs, and Breakpoints

The right-hand side of the UI offers you the options Task List, Logs, and Breakpoints.

● Task List By using the task list, you can view the status of the current, preceding, and subsequent steps or phases of the procedure. The icons used in the Task Type and the Status rows are described in the legend. ● Logs You can open an overview of the available log files for the current step or phase. By choosing Description, you can sort the list and use the filtering functionality to search for specific log files. The icons for the log file format are described in the legend.

 Note

Alternatively, you can access the log files on file system level: ○ \abap\log

Some phases or steps generate log files in the subdirectories of the log directory, so you might still need file system access to analyze them.

● Breakpoints SUM offers the possibility to use breakpoints, which allow you to pause the update procedure at a specified point. A list of the breakpoints is displayed. By choosing Description, you can sort the list and use the

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 19 filtering functionality to search for breakpoints. The icons for the breakpoint status are described in the legend. For more information, see Using Breakpoints During the Update [page 55].

Menus: Legend, More

In the upper-right corner of the UI, you find the menus Legend and More.

Legend

The legend explains the meaning of the icons used for the different types and status of the tasks in the task list, the status of the breakpoints, and the format of the log files (for example, text or HTML).

Legend for Task List, Logs, and Breakpoints

More

With this menu, you can get support or more information, or log out from the browser session. Depending on the update procedure status, different options are offered.

Updating SAP Java Systems on Windows: SAP HANA DB 20 PUBLIC Planning The More menu

● Logout Logs you off the current browser session. Note that the update procedure itself continues running in the background. To log on again, proceed as described in Starting the SL Common UI [page 49]. ● Toggle Color Schema Switches the high-contrast color schema on or off. ● SUM Guide Opens the main Web page for the current Software Update Manager guides. ● SUM Note Opens the central SAP Note for the current Software Update Manager version. ● SAP Help Portal Opens the SAP Help Portal, which contains SAP product documentation and other related information such as SAP Notes, product availability information, and community content. ● Exit Note that this option is not always available in the menu. It stops and exits the current update process and displays the initial dialog of the SL Common UI ("Tool start required"). If you choose Exit at this point, you also terminate the Java process on the server and stop with that SUM completely. An appropriate message on the SL Common UI appears, and you can close the web browser page. Alternatively, you can restart the Software Update Manager by refreshing the web browser page or by clicking on the offered link in the message. You can continue from the point where you chose Exit ● Reset Note that this option is not always available in the menu. It sets the system to a state that allows the update procedure to be restarted from the beginning. This option is only available during resettable phases, but not anymore at the end of a successful update procedure without DMO. For more information, see Resetting the Update [page 52].

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 21 ● Cleanup Note that this option is not always available in the menu. It cleans up the SUM directory. This option is only available at the end of a successful update procedure or after you have chosen Reset. At the end of a successful update procedure, a cleanup prevents the execution of a reset afterwards. On the other hand, after a reset has finished successfully, the cleanup is obligatory. See also Resetting the Update [page 52]. ● Log Tail Opens the log tail viewer for selected log files. In a pop-up window, the chosen log file is reloaded and displayed at short time intervals. You can pause the display to check some log lines. ● Get Support File Creates an XML file for SAP Support when you have problems with the user interface. For more information, see SL Common UI: Getting Support Using the Support File [page 22]. ● About Displays information about the current versions of the Software Update Manager, the Software Logistics Protocol, and the Software Logistics UI Client.

 Note

● Be aware that some options of the Utilities can only be used during the update procedure if the corresponding data is available in the system. ● The Exit, Reset, and Cleanup options are not always available. SUM offers them only if the status of the update allows it. ● A further option Debug is only available for SAP Support and used for debugging.

Buttons

During the update, the buttons Back, Next, and Cancel are displayed depending on the current step or phase and dialog.

If you encounter an issue during the update procedure such as aborts or errors, the Software Update Manager displays in some cases the buttons Repeat or Init, or both. Init means basically that the current phase will be initialized again and restarted. However, this varies depending on the phase. Due to several restrictions or limitations, it can also happen that only certain processes of a phase will be repeated again and not the whole phase. If you choose Repeat, the current process within a phase will be repeated from the point where update procedure stopped.

3.1.3 SL Common UI: Getting Support Using the Support File

Context

The SL Common UI offers you the possibility to create support files. This might be necessary if you have problems with the user interface during the update procedure, and the possible solutions described in SL Common UI: Solving Problems with the UI [page 99] do not fix the problem.

Updating SAP Java Systems on Windows: SAP HANA DB 22 PUBLIC Planning You create a support file and supply it to SAP Support in order to receive assistance. Proceed as follows:

Procedure

1. On the SL Common UI, choose More Get Support File .

A new browser window opens. 2. Save the file locally. Do not copy and paste content. 3. Provide the file to SAP Support, for example, by e-mail.

3.1.4 SUM Observer Monitor

The Software Update Manager offers an additional SL Common UI mode that is called the observer mode, and it is displayed as the SUM Observer Monitor.

The SUM Observer Monitor is a kind of non-admin mode or guest mode of the SL Common UI that allows you to monitor a current update procedure and provides you with information about its status. You cannot enter data or change the update procedure.

The SUM Observer Monitor can be used in browsers on different devices, such as a desktop PC or a mobile device. In the following, see the different examples of the user interface:

In the following, you see an overview of the SUM Observer Monitor in a browser window on a desktop PC:

SUM Observer Monitor in a Browser Window on a Desktop PC

In the following, you see an example of the SUM Java Observer Monitor on a mobile device.

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 23 For more information about starting the observer monitor, see Starting the SUM Observer Monitor [page 51].

3.1.5 Communication Between Back-End Processes and the SL Common UI

As a prerequisite, you need to configure the Software Update Manager for use with the SAP Host Agent.

You start the SL Common UI by entering the URL relevant for your platform technology in the address bar of a browser. This action connects the browser with the Software Update Manager by means of the SAP Host Agent. You can connect from a client machine, or from the same host. By default, the SL Common UI uses the standard protocol HTTPS (for a secure connection) and port 1129 of the SAP Host Agent. SUM then calls internally the relevant executables, which carry out the update steps.

Updating SAP Java Systems on Windows: SAP HANA DB 24 PUBLIC Planning Communication Between Browser and the Instance Where SUM is Running

3.1.6 SUM Directory

The Software Update Manager creates the SUM directory on the host where the tool is initially started, and copies data and programs into this directory.

 Note

After the directory has been created, ensure that the SUM directory contains all software archives calculated by Maintenance Planner and mentioned in the stack.xml file that will be required for the update procedure.

The recommended standard path of the SUM directory is:

:\usr\sap\\SUM

 Caution

Ensure to prevent unauthorized access to the SUM directory!

The SUM directory has the following subdirectories:

● sdt ● jvm

Each subdirectory might contain files and further subdirectories:

● sdt Contains the SL controller. Contains the following subdirectories: ○ clean_backup Contains backup of the htdoc subdirectory.

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 25 ○ config Contains configuration xml files for the update. ○ control Contains configuration xml files for the upgrade. ○ data Contains the internal repository of the Software Update Manager. Do not change files in the variables subdirectory since this can lead to an update failure. ○ download Contains files downloaded by the Software Update Manager. ○ dtd Contains DTD files with definitions required by the Software Update Manager to read xml files. ○ exe Contains startup scripts for the Software Update Manager. ○ history Contains archived versions of old execution framework log files. These files are not the complete set of log files listed in the log directory, but the files that only control the overall execution process. ○ htdoc Contains the process overview reports for the update process and other resources for the html page. ○ lib Contains the JAR files of the Software Update Manager. ○ log Contains all log files generated during the update process. ○ migtool Contains migration data (only available when migration controllers are executed). ○ param Contains the logging.properties file, in which you can increase the logging and tracing level. ○ patch Contains database-specific and release-specific configurations of the Software Update Manager. ○ plugin Contains execution framework plug-ins used by the different update scenarios. ○ prop Contains the logging.properties file with logging severity levels for the execution framework. ○ reqlistgen Contains some libraries used by the execution framework. ○ statistics Contains temporary files generated by the execution framework. ○ tmp Contains temporary files created from external processes running during the update procedure. ○ trc Contains trace files created by the Software Update Manager. ● jvm Depending on your operating system, this directory contains the Java Virtual Machine delivered by SAP.

 Note

The Java Virtual Machine, which is contained in this subfolder, is delivered by SAP especially for the use by the Software Update Manager for the update procedure. This Java Virtual Machine is not to be

Updating SAP Java Systems on Windows: SAP HANA DB 26 PUBLIC Planning confused with the SAP JVM that is used by SAP systems based on SAP NetWeaver Java or SAP NetWeaver ABAP+Java (dual stack).

3.2 Technical Details of the Update Procedure

 Note

This section is relevant if you perform an enhancement package installation, SPS update, or installing an add-on.

The Software Update Manager uses a deployment-based procedure to update Java systems. No shadow system is required for this update procedure. The procedure is highly automated with minimum user interaction.

When you install add-ons, use the procedure relevant for their delivery method:

● Add-ons delivered through a stack.xml configuration file are installed by the procedure described in Running the Software Update Manager [page 45]. ● Add-ons delivered through software archives without a stack.xml are installed by using the procedure described in Applying Single Component Updates and Patches Using a Manually Prepared Directory [page 72].

 Note

SAP Enterprise Portal, BPM, and PO, and MII systems: While performing maintenance activities, you can significantly reduce the downtime of your portal by using the near-Zero Downtime Maintenance Java (nZDM Java) tool in conjunction with SUM.

The nZDM Java supported source releases and minimum SPS levels are:

● SAP NetWeaver 7.3 SPS07 ● SAP NetWeaver 7.3 including enhancement package 1 SPS02 ● SAP NetWeaver 7.4 ● SAP NetWeaver 7.5

For more information about the process, see the nZDM Java documentation at: https:// support.sap.com/en/tools/software-logistics-tools.html System Maintenance near-Zero Downtime Maintenance (nZDM) for Java 1.0 Guide for nZDM for Java .

The complete update procedure is divided into roadmap steps. In these roadmap steps, the following actions take place:

● Welcome The Software Update Manager analyzes whether your SAP system is a dual-stack system or an ABAP or Java standalone system. According to the result, the GUI is assembled. You always see the Monitor tab page, and either the ABAP or Java tab page or both. ● Specify Authentication Mechanism In the Specify Authentication Mechanism roadmap step, you enter the password for the adm user.

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 27 ● Select Target In the Select Target roadmap step, you enter the location of the download directory and the stack configuration file. ● Confirm Target In the Confirm Target roadmap step, you verify that the target version for your update is correct. ● Execute Process... The Execute Process... roadmap step automatically triggers the next stage of the update process. This roadmap step is broken down into the following roadmap steps: ○ Initialization The update GUI is assembled. You always see the Monitor tab page. According to the result of the previous roadmap steps, you also see either the ABAP or Java tab page or both. ○ Extraction The Software Update Manager extracts the required software. ○ Configuration In the Configuration roadmap step, you enter additional information required for the update procedure such as system users and passwords. ○ Checks The Software Update Manager checks if your system fulfills the requirements for the update procedure (for example, whether the required free space is available). ○ Preprocessing For a Java standalone system, no special actions are performed by the Software Update Manager in the Preprocessing roadmap step. ○ Execution In this roadmap step, the Software Update Manager updates your system. The roadmap step runs without any user interaction. ○ Postprocessing The Software Update Manager generates statistical data. The roadmap step runs without any user interaction. ○ Finalization For a Java standalone system, no actions take place in the Finalization roadmap step. ● Summary The Software Update Manager displays a simple feedback form directly in the SL Common UI and prompts you to send your feedback to SAP for technical analysis. For more information, see Evaluating the Software Update Manager [page 65].

3.3 Technical Details of the Upgrade Procedure

 Note

This section is only relevant if you perform a release upgrade.

To upgrade a Java system, the Software Update Manager uses a switch-based procedure. This procedure installs an instance of the target release, the shadow system, in parallel with the current source release system in the same database. The parallel system contains all the software of the target release and is used to perform actions on the target release while the source release is still in production operation.

Updating SAP Java Systems on Windows: SAP HANA DB 28 PUBLIC Planning  Note

When upgrading SAP NetWeaver Portal systems, you can use the Deployment Optimization Option (DOO) of the Software Update Manager to remove unnecessary usage types as described in SAP Note 1759081 . For an overview, see http://scn.sap.com/community/it-management/alm/software-logistics/blog/ 2012/11/07/software-update-manager-sum-introducing-the-tool-for-software-maintenance .

The complete upgrade procedure is divided into roadmap steps. In these roadmap steps, the following actions take place:

● Welcome The Software Update Manager analyzes whether your SAP system is a dual-stack system or an ABAP or Java standalone system. According to the result, the GUI is assembled. You always see the Monitor tab page, and either the ABAP or Java tab page or both. ● Specify Authentication Mechanism In the Specify Authentication Mechanism roadmap step, you enter the password for the adm user. ● Select Target In the Select Target roadmap step, you enter the location of the download directory and the stack configuration file. ● Confirm Target In the Confirm Target roadmap step, you verify that the target version for your update is correct. ● Execute Process... The Execute Process... roadmap step automatically triggers the next stage of the upgrade process. This roadmap step is broken down into the following roadmap steps: ○ Initialization The upgrade GUI is assembled. You always see the Monitor tab page. According to the result of the previous roadmap steps, you also see either the ABAP or Java tab page or both. ○ Extraction The Software Update Manager extracts the required software. ○ Configuration In the Configuration roadmap step, you enter all the information required for the upgrade procedure such as system users and passwords, information about the Support Packages that you want to include, and information about the shadow system. ○ Checks The Software Update Manager checks if the operating system and database version of your source release match the requirements of the target release. It also checks some application-specific requirements. ○ Preprocessing The Software Update Manager imports the substitution tables and performs the online deployment. When the Preprocessing roadmap step is finished and you choose Next, the downtime starts. ○ Execution The Execution roadmap step runs without any user interaction. While the processes of the Execution roadmap step are running, the system is in downtime. The switch to the new system takes place in this roadmap step. The Software Update Manager converts application tables and data to match the target release layout. In addition, it switches the SAP kernel. ○ Postprocessing The Software Update Manager saves the log files and prompts you to start with certain follow-up activities.

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 29 The Software Update Manager also deletes the shadow schema and some obsolete AS Java directories. ○ Finalization The Software Update Manager enables you to clean up tables that are no longer required and completes the upgrade. ● Summary The Software Update Manager displays a simple feedback form directly in the SL Common UI and prompts you to send your feedback to SAP for technical analysis. For more information, see Evaluating the Software Update Manager [page 65].

3.4 Update of NWDI-Driven System Landscapes

Use

If you want to update a system that is part of a system landscape controlled by SAP NetWeaver Development Infrastructure (NWDI), you have to consider some special properties. The NWDI has special knowledge about the software component archives (SCAs), for example, about the storage of design time objects in the Design Time Repository or about the update sequence of software applications in a system landscape.

For more information about the maintenance process for NWDI-driven system landscapes, see the SAP Library [page 11] for your target release at:

SAP Library Paths

Target Release Path in SAP Library

SAP NetWeaver 7.4 /7.5 Application Help Function-Oriented View Solution Life Cycle

Management Using the Development and Production Infrastructure

Development Infrastructure (DI) Maintenance of NWDI-Driven System

Landscape

Below, a brief overview of the steps from an update perspective is given.

The update process for development and consolidation systems differs from the update of quality assurance and production systems. In the development and consolidation system, you can adjust the new SAP component versions to your modifications and build software component archives (SCAs). The adjusted SCAs are then deployed during the update of the quality assurance or production system.

 Caution

You can only update a quality assurance or production system if you provide adjusted SCAs for all components that you modified in the source release system.

Updating SAP Java Systems on Windows: SAP HANA DB 30 PUBLIC Planning Prerequisites

● You have performed the preparation steps described in the SAP Library documentation under Maintenance of NWDI-Driven System Landscape.

Process

1. Early in the procedure, the Software Update Manager detects if the system you want to update is configured as a runtime system in an NWDI track. 2. Update of development (DEV) and consolidation (CONS) systems 1. The components that you have modified are not deployed but only transported to the NWDI transport directory. The Software Update Manager deploys only the software components that are not modified. 2. After the update, you take the modified components from the NWDI transport directory and perform the modification adjustments using the NWDI. You then deploy the adjusted software components (SCs) to the updated development or consolidation system. 3. In the consolidation system, you assemble the modified SCs as software component archives (SCAs). 3. Update of quality assurance (QA) and production (PROD) systems During the update of quality assurance and production systems, the Software Update Manager deploys the new versions of the modified components that you have built in the consolidation system together with all software components that are not modified.

3.5 Updating Distributed and High Availability (HA) Systems

This section provides you with information about the update of distributed or high availability (HA) systems.

Context

Distributed Systems

The Software Update Manager is able to handle distributed configurations where your ASCS instance or other ABAP instances are installed on separate hosts as, for example, in a HA environment.

For heterogeneous systems, that is, systems that have different operating systems on the primary and additional application server instances, you have to perform manual actions. Provide at least the target kernel for the remote instances at the download directory. As a prerequisite, the SAP kernel directory of the system must follow the new layout (:\usr\sap\\SYS\exe\uc\) and the SAP kernel replication with program sapcpe needs to be configured.

During the downtime, the Software Update Manager operates only with a local single-instance setup while all other instances are stopped. At this point of the update procedure, the Software Update Manager moves all the

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 31 central services (enqueue service and message service) to the downtime instance. At the end of the downtime and before starting the productive system again, the original system setup will be restored and started afterwards.

High Availability Systems

High availability (HA) systems on Windows use the build-in Microsoft Failover Cluster to ensure the availability of database and SAP components such as SAP Central Services and (A)SCS. There are other SAP certified HA solutions available, which are not covered by this document. Contact the vendor of these HA solutions to get direct support for SAP updates.

The update of HA systems differs from updates of normal systems since the Software Update Manager, which runs on the host with the primary application server instance, cannot control processes on the remote (cluster) ASCS instance. However, for Microsoft Failover Cluster, the process is highly automated with only a few manual steps needed. These manual steps are briefly outlined below. The individual steps are described in more detail under Preparation and at the appropriate places where they occur in the process.

For heterogeneous systems, that is, systems that have different operating systems on the primary and additional application server instances, you have to perform manual actions. Provide at least the target kernel for the remote instances.

 Note

As of Windows Server 2008 and higher, Microsoft renamed the “cluster groups” to “Services and Applications”, and as of Windows Server 2012 and higher to “Roles” in the Failover Cluster Manager. However, in the command line tools (cluster.exe, PowerShell) the cluster groups were not renamed. Therefore, we keep using this term in our document. Wherever you are asked to perform an action for a “cluster group”, you have to perform it for “Services and Applications” or “Roles”, respectively, when using the Failover Cluster Manager.

Maintenance Mode:

Before an update in a system environment with high availability, you must deactivate the HA solution for the clustered resources to prevent the HA software from interfering with the upgrade process. After the upgrade, the HA solution must be activated again. That is, the HA software must be told that maintenance mode must be switched on (deactivation of HA solution) or switched off (activation of HA solution) for an instance or the entire SAP system (without the database).

This can be carried out manually or automatically if the Software Update Manager supports the automatic execution of the deactivation and activation of the HA solution. The feature can be activated during the update by the selecting the checkbox Use of Maintenance Mode, if an availability check beforehand was successful. Note that you don't have to perform any manual steps such as starting or stopping instances and services, when you use this mode.

For more information about this feature and how to check whether the automatic maintenance mode is available, see SAP Note 2464065 .

Below, you find briefly outlined the update process for a high availability (HA) system.

Procedure

1. If necessary, you change your HA system configuration and clean up profiles.Also, check whether you have to change your HA system configuration. If the primary application server instance is configured as a local

Updating SAP Java Systems on Windows: SAP HANA DB 32 PUBLIC Planning instance on one of the cluster nodes, you have to move the SAP HA group to the host where the primary application server instance runs.

For more information, see section Preparing the Update of Distributed and High Availability Systems [page 42]. 2. You start the Software Update Manager.If the primary application server instance is installed on one of the Microsoft Failover Cluster nodes, start SUM on that cluster node. 3. The Software Update Manager checks the profile directory. If the SCS instance is installed on a different host name, the tool assumes that the update is performed in a distributed or HA environment.

Updating SAP Java Systems on Windows: SAP HANA DB Planning PUBLIC 33 4 Preparation

This part of the document contains information about the preparations that you need to make before you update your system. You can prepare for the update while the system is in production operation. Careful preparation of the update is the best guarantee that it runs without errors.

 Caution

In addition to the general preparations described in this document, you need to perform the preparations that are specific to your product version, which are described in an additional product-specific document. This document is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product.

The Software Update Manager supports you here by making most of the necessary checks automatically. For more information about the checks performed by the Software Update Manager, see the descriptions in Running the Software Update Manager [page 45].

Actions

You perform the following actions before you start the Software Update Manager:

● Determining the Host for the Preparations [page 34] ● Checking the Hardware Requirements [page 35] ● Checking the Software Requirements [page 36] ○ Release upgrade and enhancement package installation: Checking the Source Release of the SAP System [page 36] ○ Meeting the Operating System-Specific Requirements [page 37] ○ Release upgrade only: Upgrade of the Operating System and Database System: Overview [page 37] ○ Update Approach for JCE Policy Files [page 38] ● Security and Authentication [page 39] ● Cleaning Up the Profile Directory [page 40] ● Checking the SAPLOCALHOST Settings [page 40] ● Configuring OS User Authentication [page 40] ● Filling the Download Directory [page 41] ● Meeting Kernel-Related Prerequisites [page 42] ● Preparing the Update of High Availability Systems [page 42] ● Ensuring the Validation of the Java Administrator [page 43]

4.1 Determining the Host for the Preparations

Context

You must prepare for the update on the host, on which the Software Update Manager will run.

Updating SAP Java Systems on Windows: SAP HANA DB 34 PUBLIC Preparation  Note

In the following cases, ensure that the User Management Engine (UME) in the ABAP stack, which also contains the Java users, is up and running during the whole update procedure:

● f you update either stack of your dual-stack ("dual-usage") system separately, by performing two consecutive single-stack SUM runs. ● If you update a Java-only system that has its Java users in an ABAP UME.

As this is a shared resource between the ABAP and Java stacks, if the UME is not up and running the Java part of the SUM process might fail.

Procedure

Decide which hosts you need for the update preparation and the actual update of the SAP system:

○ Host on which the Software Update Manager will run Depending on the source release, the Software Update Manager has to run on: ○ SAP NetWeaver 7.1 and higher: the host on which you want to run the tool. It can be either the primary application server instance or an additional instance. ○ Database host - you have to perform the actions that affect the database on the database host.

4.2 Checking the Hardware Requirements

CPU, Main Memory, Disk, and Swap Space

Check whether you have sufficient hardware resources such as CPU, main memory, disk space, and swap space. The minimum swap space is 20 GB.

For more information about sizing, see the SAP Portal at https://www.sap.com/about/benchmark/sizing.html .

Space Requirements for the File System

Make sure that there is enough temporary disk space available in the file system for the update. You need this free space for the SUM directory and the download directory. We recommend at least 40 GB free space for the SUM directory as well as for the download directory.

As the space requirements depend on the product, see also the document with additional product-specific information for your update procedure to find information about the requirements. This document is referenced in the Master Guide or Upgrade Master Guide, respectively.

Updating SAP Java Systems on Windows: SAP HANA DB Preparation PUBLIC 35 Space Requirements in the Database

Make sure that enough temporary and permanent free space is available in your database.

Release upgrade only: The Software Update Manager calculates the space requirements for the database. The free space required is in the range from 50 to 200 GB.

Enhancement package installation or SPS update: The Software Update Manager takes the status of your database into account and calculates the exact space requirements.

4.3 Checking the Software Requirements

You have to meet certain software requirements before you update the SAP system.

1. Release upgrade and enhancement package installation: Check the source release [page 36] of the SAP system. 2. Meet the operating system-specific requirements [page 37]. 3. Release upgrade only: If necessary, upgrade the operating system and database system [page 37]. 4. See the update approach for JCE Policy files [page 38].

4.3.1 Checking the Source Release of the SAP System

Use

 Note

This section is relevant if you perform a release upgrade or enhancement package installation.

Your SAP system should have one of the source releases that have been released for this update and apply to all databases. For information about the supported source releases, see the document with additional product- specific information, which is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product.

Different SAP NetWeaver product instances may have different minimum Support Package levels. If you update an SAP NetWeaver-based system containing various product instances, make sure that your source release is on any acceptable Support Package level for all product instances implemented in the system.

 Note

The Software Update Manager will check whether your source release is supported for this update.

 Caution

If you have to apply Support Packages to your source release shortly before the update, check whether the equivalent Support Package for the target release is already available. Otherwise, this may delay your update schedule.

Updating SAP Java Systems on Windows: SAP HANA DB 36 PUBLIC Preparation Procedure

Procedure for Java Systems

To determine the source release and Support Package Stack level of your SAP system, proceed as follows:

1. Go to the AS Java start page: http://:/index.html 2. Choose System Information. 3. Log on to AS Java as user Administrator.

The current release and Support Package level are displayed under Version in the Software Components table.

4.3.2 Meeting the Operating System-Specific Requirements

All Supported Operating Systems

For information about which operating systems are supported, see the Product Availability Matrix (PAM) on SAP Service Marketplace at http://support.sap.com/pam .

Windows

You need to install a new SAP MMC package (sapmmc.msi) on all application servers. The package is available for download as SAPMMCMSI_.SAR file on SAP Service Marketplace at https:// support.sap.com/swdc Support Packages and Patches .

 Note

In a distributed or high availability environment, you have to install the new SAP MMC version on all cluster nodes.

4.3.3 Upgrade of the Operating System and Database System: Overview

Use

When you update the SAP system, you may have to upgrade your operating system and database to a new version. For more information about which versions are currently supported, see the Product Availability Matrix on SAP Support Portal at http://support.sap.com/pam . The Software Update Manager only checks the minimum versions required for the update.

If you need to upgrade an operating system or database, or migrate a database, then the timing and the sequence of the individual upgrades is of great importance. The procedure differs according to the database

Updating SAP Java Systems on Windows: SAP HANA DB Preparation PUBLIC 37 you use. The following text provides an overview of the main process steps for upgrading the operating system and database system for each database.

 Note

As of SAP NetWeaver 7.1, SAP only supports systems based on 64-bit on the target release. If you have to migrate the operating system and database to 64-bit, make sure that you plan enough time in your upgrade schedule for the migration, and perform the migration before the upgrade.

If you need to change the hardware, we recommend that you use the SAP System Copy procedure to migrate to 64-bit. For more information about system copy, see the System Copy Guide on SAP Support Portal at http://support.sap.com/sltoolset System Provisioning System Copy Option .

 Note

Make sure that your current database version is supported for your scenario. See the following SAP Notes to check the minimum database version for updates to

● SAP NetWeaver 7.4 SPS08 and higher: 1951491 ● SAP NetWeaver 7.5 and higher: 2158828

Process

SAP HANA DB

Prerequisite for starting the Software Update Manager: If the database server and the primary application server instance are not identical, install the latest DB client software on the primary application server instance.

For information about the procedure, see SAP Help Portal at http://help.sap.com/hana Installation and Upgrade SAP HANA Server Installation and Update Guide .

Proceed as follows:

1. If you have not already done so, you upgrade the SAP HANA database to at least the minimum required major version. For information about the required major version, see the Product Availability Matrix (PAM) for your SAP product version on SAP Support Portal at http://support.sap.com/pam.html . 2. We recommend that you always apply the latest SAP HANA database support package afterwards from SAP Support Portal, even if your system already matches the required major version. For more information, see the documentation mentioned above at http://help.sap.com/hana . 3. You run the Software Update Manager up to the Checks roadmap step and analyze the results. 4. If necessary, you upgrade the database or the operating system. 5. You upgrade the SAP system.

4.3.4 Update Approach for JCE Policy Files

If your system has Java Cryptography Extension (JCE) Unlimited Strength Policy files, you have to manually replace them with their latest version after the update is completed. You have to do this to prevent compatibility issues that might occur.

Updating SAP Java Systems on Windows: SAP HANA DB 38 PUBLIC Preparation You can aquire the latest version of the JCE policy files from their vendor website. For more information, see SAP Note 1240081 .

4.4 Security and Authentication

Security

 Restriction

We strongly discourage using network monitoring tools during the SUM procedure. That is, any tools that analyze network traffic of data packages should be disabled or removed from the instance where SUM is running. The technology used by such tools might allow third parties to monitor sensitive information transmitted through the loopback interface, for example, data transferred between different processes of the update.

User Authentication

 Note

Ensure that the latest available SAP Host Agent version is installed in your system.

As a SUM option, you can choose to not enter user credentials during the update. If you do so, implement the recommendations in SAP Note 1642340 .

Enabling SSL over HTTP for connecting with Software Update Manager

SUM can operate over a connection that uses Secure Socket Layer (SSL) technology. In addition to the security benefits, setting up SSL is a prerequisite for SUM to operate without you manually entering user credentials, which is an alternative to the standard validation approach.

To enable this, configure SAP Host Agent as described for your operating system at http://help.sap.com, search for SSL Configuration for the SAP Host Agent, and in the results page filter by entering your product and version in the Product field.

Enabling SSL over P4 Protocol

Proceed as follows for your system to enable the usage of the protocol P4 over SSL:

● For SAP NetWeaver 7.3-based and higher: Adding New SSL Access Points

Updating SAP Java Systems on Windows: SAP HANA DB Preparation PUBLIC 39 4.5 Cleaning Up the Profile Directory

Context

Before starting the Software Update Manager, you need to clean up the profile directory. The profile directory should only contain active profile files. By default, it is located in the central file share:

:\usr\sap\\SYS

Procedure

Remove any old, unused profiles and move any backup copies to another directory.

4.6 Checking the SAPLOCALHOST Settings

To avoid potential issues during the update, you have to check if SAPLOCALOST is set correctly as a profile parameter and environment variable. To do so, check if the settings described in SAP Note 1738760 have been implemented in your system configuration. If this is not the case, perform the listed steps.

4.7 Configuring OS User Authentication

To ensure that the user authentication used by SUM is working and the restart operations during the update are successful, you have to configure the OS user authentication correctly before starting SUM.

Procedure

Apply SAP Note 927637 and the OS-specific SAP Notes attached to it.

Updating SAP Java Systems on Windows: SAP HANA DB 40 PUBLIC Preparation 4.8 Filling the Download Directory

You can put all files and software packages with which you want to update your system in a download directory.

Context

During the Select Target roadmap step, you are prompted to enter the path to the stack configuration XML file that has to be available in your download directory. The Software Update Manager reads the download directory and moves the files to the appropriate directories from where they are then further processed.

You can put the following files in the download directory:

● Support Package stacks for the target release ● Enhancement packages ● Add-on components ● SAP kernel for the target release ● Stack configuration XML file ● Release upgrade only: Archives

 Note

Release upgrade only: If you have Java add-on components installed in your system, check the dedicated upgrade document for information whether to include this component into the download content for your target release, which is calculated by the Maintenance Planner.

 Caution

Make sure that the files and software packages that you want to include into the upgrade, are located at the top level of your download directory. They should not be located in any subdirectories. This could be the case, for example, when you just copy the upgrade archive files into the download directory.

Procedure

1. Create a download directory. The directory can be located anywhere on your host. 2. Put all software packages and files required during the update into the download directory.

Updating SAP Java Systems on Windows: SAP HANA DB Preparation PUBLIC 41 4.9 Meeting Kernel-Related Prerequisites

To ensure that the procedure runs correctly, make sure of the following:

● If you have installed two or more systems with different releases on the same host, more than one SAP kernel version exists. Make sure that the kernel path for the system you want to update is listed before all other existing kernel directories in the PATH environment variable. To detect the kernel directory, the Software Update Manager runs various processes that rely on the kernel directory path specified in the PATH environment variable. The directory from which the processes are launched is always the first entry for a kernel directory in this environment variable. ● Release upgrade only (switch-based): Make sure that the path to the kernel directory is the default path: :\usr\sap\\SYS\exe\uc\ ● Make sure that all files in the kernel directory are readable, that is, none of them have the read-only attribute set. Disable this attribute for any kernel file if required.

4.10 Preparing the Update of High Availability Systems

This chapter deals with preparatory activities if you want to update your high availability (HA) system.

Context

To update an HA system, implement an HA system configuration as recommended by SAP to create a reliable starting point for the update.

Furthermore, move the cluster group SAP HA to the cluster node, if the primary application server instance runs on such a node.

Procedure

1. Create an optimal starting point.

To create a reliable starting point for the update, it is crucial that you implement an HA system configuration as recommended by SAP. Below you can find problems resulting from different configurations and possible solutions: ○ Manually set up standalone enqueue server The following only applies to standalone enqueue servers (separately started enqueue server process), not to officially supported SCS instances. If you have set up a standalone enqueue server manually, revert this configuration before the execution of the downtime steps of the update. Revert this configuration before the kernel switch step at the latest. The Software Update Manager is unable to detect a manual setup of standalone enqueue

Updating SAP Java Systems on Windows: SAP HANA DB 42 PUBLIC Preparation servers and, therefore, cannot update them. This can cause problems when the system is started for the first time after the kernel switch. ○ Maintain the profile directory. ○ Remove any old, unused profiles and backup copies. The directory must contain only active profile files. All file names have to match the SUM profile naming conventions. ○ Do not use links to local profiles with different names. The Software Update Manager can only work with physical profile files. 2. Move the SAP HA group.

If the primary application server instance runs on a cluster node, move the cluster group SAP HA to this node. If there is no primary application server instance installed on any cluster node, it’s not necessary to move the cluster group. To move the cluster group, proceed as follows for or your operating system Windows Server 2012 or a higher version: 1. Open the PowerShell console with elevated rights. 2. Check the node where the primary application server instance installed is the owner of the SAP group by executing the following command: get-clustergroup "SAP ". 3. If the node with the primary application server instance is not the owner, move the group to this node by executing the following command: move-clustergroup "SAP ".

 Note

If you use Windows Server 2008 or Windows Server 2008 R2, see the procedure in the chapter HA Systems ans Windows Server 2008/2008 R2 in the Adminstration section of the SUM Guide for Dual- Stack Systems.

4.11 Ensuring the Validation of the Java Administrator

Context

To prevent connectivity issues caused by an incorrect validation of the Java Administrator, you have to verify that the P4 procotol has been configured correctly.

Procedure

1. In а command prompt оr PowerShell, execute the following command:

netstat –ano | findstr 504

Wait for the output status. If you receive the status Listen, P4 has been configured correctly and no additional steps are required. 2. If the output status is not Listen, configure the P4 protocol as described for your SAP NetWeaver release:

Updating SAP Java Systems on Windows: SAP HANA DB Preparation PUBLIC 43 P4 Protocol Configuration

Release Path

7.0-based systems SAP Note 609603 - Problems with Multiple NICs and SAP J2EE Engine

SAP NetWeaver 7.1-based systems and higher http://help.sap.com/saphelp_nwpi711/ System Administration and Maintenance Information Technical Operations for SAP NetWeaver General Administration Tasks Administration of the Internet Communication Manager Parameterization of the ICM and the ICM Server Cache Profile Parameters for the ICM and SAP Web Dispatcher icm/server_port_

Updating SAP Java Systems on Windows: SAP HANA DB 44 PUBLIC Preparation 5 Running the Software Update Manager

This section provides information about starting and running the Software Update Manager. It describes all required user input and actions, as well as critical points during the update.

Note the following:

● All required planning and preparation actions have to be completed. ● The Software Update Manager controls the entire procedure, from checking the system requirements and importing the necessary programs through stopping production operation until production operation is resumed. The procedure is divided up into a number of different roadmap steps. The roadmap steps are in turn divided into individual steps. The successful completion of a step is a precondition for the success of all subsequent steps. Alternatively, you can use the Process Overview Report [page 97] utility. ● If you install add-ons included in a stack.xml configuration file, use the following procedure. Add-ons that delivered only through software archives without a stack.xml are deployed by using the procedure described in Applying Single Component Updates and Patches Using a Manually Prepared Directory [page 72]. ● Depending on the source release, the Software Update Manager has to run on: ○ SAP NetWeaver 7.1 and higher: the host, on which you want to run the tool. It can be either the primary application server instance or an additional one. ● To monitor the procedure, you can use the logs created by the Software Update Manager, which are for example accessible on the SL Common UI or with the log tail viewer in the More menu (see also: SL Common UI Elements and Options [page 18]). Or you use the Process Overview Report [page 97] utility. ● Many steps require no user input. In the following, you can find a description of all necessary user input. ● User actions are also required when errors occur. If an error occurs, correct it and repeat the step in which the error has occurred. Once the step has been repeated successfully, you can continue with the update. For more information, see Troubleshooting [page 98].

Prerequisites

Before you run the Software Update Manager, make sure that the following prerequisites are fulfilled:

● Ensure that the communication ports 1128 and 1129 of your system are open, and not blocked by third- party software, such as a . You have to do this to ensure the correct operation of the SAP Host Agent. For more information, see TCP/IP Ports of All SAP Products. ● Your system is up and running, including all system instances and all system processes. Do not stop the system manually. The Software Update Manager stops and starts it when needed. ● You are logged on to the update host as user adm. ● Release upgrade only: You have ensured that the application sap.com/tc~kmc~rf~ummig~rmiapp is running in your system. For more information, see SAP Note 1873529 .

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 45  Caution

If your system is installed in a high availability switchover environment, make sure that the failover capabilities of the cluster switch-over software are disabled during the downtime. This is to prevent unwanted failover actions during stop actions of the upgrade procedure.

Actions

You perform the following actions to start and use the Software Update Manager:

● Meeting the Requirements for the SUM Directory [page 46] ● Downloading and Unpacking the Software Update Manager [page 47] ● Registering SUM in SAP Host Agent [page 48] ● Starting and Restarting the Software Update Manager [page 49] ● Starting the SUM Observer Monitor [page 51] ● Resetting the Update [page 52] ● Using the Alert Function [page 53] ● Using Breakpoints During the Update [page 55]

You perform the following actions during the roadmap steps:

● Making Entries for the Specify Authentication Mechanism Roadmap Step [page 56] ● Making Entries for the Select Target Roadmap Step [page 57] ● Making Entries for the Confirm Target Roadmap Step [page 57] ● Making Entries for the Configuration Roadmap Step [page 58] ○ Making Basic Entries for the Java Update Process [page 58] ○ Release upgrade only: Making Entries for the Target System Configuration [page 59] ● Making Entries for the Checks Roadmap Step [page 60] ● Performing Actions Before the Beginning of the Downtime [page 60] ● Performing Manual Actions for the SAP Central Services Instances [page 63] ● Performing Actions at the End of the Downtime [page 64] ● Evaluating the Software Update Manager [page 65] ● Running the Software Update Manager for Another Update [page 66] ● Stopping the Software Update Manager [page 66] ● Performing an Automated Update [page 67]

5.1 Meeting the Requirements for the SUM Directory

Context

If you do not specify a path when you unpack the Software Update Manager package, the SUM directory is automatically created as a subdirectory of the directory where you unpack the software package. However, we recommend that you use the standard path :\usr\sap\.

Updating SAP Java Systems on Windows: SAP HANA DB 46 PUBLIC Running the Software Update Manager  Note

If a directory with this name already exists, it has to be empty. Otherwise, the startup of the update fails.

 Caution

● Do not use symbolic links to remote directories. ● Do not use volume mount points. ● Set security settings even for local symbolic links or junctions. For example, if you use the SUM directory D:\SUM and a symbolic link to C:\usr\sap\SID\SUM, you enter the same above-mentioned command in the PowerShell console.

Procedure

Make sure that there is enough free disk space for the SUM directory. This space is required for the update and the logs and is distributed among several subdirectories [page 25]. For an estimation of the disk space needed for the SUM directory, see the update guide that is specific to your product.

5.2 Downloading and Unpacking the Software Update Manager

Procedure

1. Download the latest version of the Software Update Manager from the main Software Logistics Toolset page on the Support Portal at:

http://support.sap.com/sltoolset System Maintenance Software Update Manager (SUM) Download SUM

 Note

https://blogs.sap.com/2015/07/09/maintenance-planner-2/ .

 Note

Use the SUM archive SUM10SP. If you see also the SUM archive SUM10HDBSP, keep in mind that this archive is intended for all update scenarios with regard to the combination ABAP technology and SAP HANA database.

2. Log on as user ADM to the host where you will run the tool.

 Note

Depending on the source release, the Software Update Manager has to run on:

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 47 ○ SAP NetWeaver 7.1 and higher: the host, on which you want to run the tool. It can be either the primary application server instance or an additional application server instance.

3. Unpack the Software Update Manager package with the following command:

SAPCAR –xf \\.SAR -R :\usr\sap \

This command creates the directory SUM under the :\usr\sap\ directory. You can also specify another directory. Hereafter, the directory :\\SUM is referred to as .

 Note

○ Do not unpack SUM in the DIR_GLOBAL directory , as this might lead to issues during the update. ○ The complete path to the SUM directory should not exceed 25 characters. ○ If you want to run several updates in parallel on the same host, you have to unpack one SUM instance in each directory of the respective SID directories. For example, if you have the SAP system IDs AB1 and AB2, unpack one SUM instance in the respective directory of each SAP system ID. When starting the SL Common UI, you enter the corresponding SAP system ID in the URL, thus connecting to the corresponding SUM instance. For more information, see Starting and Restarting the Software Update Manager [page 49]. Note that when running several SUM instances using the default location :\usr\sap\ is mandatory.

If for the SUM directory you use a location other than the default :\usr\sap\, after you have unpacked the SUM package you have to copy the access control list (ACL) from the directory to your selected SUM directory. For this, you open the PowerShell console with elevated rights and enter a command with the following structure: set-acl [SUM directory] (get-acl [ directory]).

 Example

Your SUM directory is located in D:\SUM.

Your directory is located in C:\usr\sap\SID.

You enter the following command in the PowerShell console with elevated rights: set-acl D:\SUM (get-acl C:\usr\sap\SID)

5.3 Registering SUM in SAP Host Agent

Before you start the update, you have to register the Software Update Manager in SAP Host Agent so that the operations and commands to the updated system are executed using SAP Host Agent mechanisms.

Updating SAP Java Systems on Windows: SAP HANA DB 48 PUBLIC Running the Software Update Manager Prerequisites

● For a correct execution of the update procedure, make sure that you have installed on all application servers instances the latest version of the SAP Host Agent. Check the SAP Software Download Corner at http://support.sap.com/swdc for the versions that are available to download. For more information, such as the deprecation of lower versions, see SAP Note 2130510 . For additional information regarding SAP Host Agent, see SAP Notes 1031096 and 1907566 . ● The Secure Socket Layer (SSL) is configured as described in Security and Authentication [page 39].

Procedure

 Note

● Make sure that you do not run the Software Update Manager during daylight saving time shifts. Otherwise, the update might fail. ● Always perform the procedure from within the SUM directory.

1. (Optional) You can set SUM to omit the system restart that takes place at the end of the update procedure to perform additional maintenance activities, for example, adapting various system settings, integrating third-party software in your landscape, and others. Proceed as follows: 1. Navigate to :\usr\sap\\SUM\sdt\param\ and open the startup.props for editing. 2. Set the following profile parameter as follows: skipFinalJ2EERestart = true 3. Save and close the file. At the end of the downtime, you are informed that the final system restart has been omitted, and that you can perform your additional maintenance. Note that after you have finished, you have to manually restart your system. 2. To run the registration of the Software Update Manager in the SAP Host Agent, and enter the following command: ○ :\\STARTUP.BAT

5.4 Starting and Restarting the Software Update Manager

This section describes how you start the SL Common UI and the SUM back-end process, or alternatively how you restart SUM if an error, a terminated step, or a system failure occurred.

Prerequisites

● You have met the requirements for the update.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 49 ● The SAP system and the database have been started. ● You have registered SUM in SAP Host Agent as described in Registering SUM in SAP Host Agent [page 48]. ● The SAPCAR version that is referenced in the environment variable PATH is identical with the one that is located in the kernel directory. In addition, no reference to any other SAPCAR version should exist in the PATH variable. ● All application server instances and their associated services are up and running. ● The P4 protocol is configured to monitor the loopback address of your system as described in Ensuring the Validation of the Java Administrator [page 43], so that the Java administrator verification is successful. ● You have downloaded and unpacked the latest version of the Downloading and Unpacking the Software Update Manager [page 47] and the software packages that you need for the update. ● When using Internet Explorer, you have to make sure that the URL relevant for your system is listed in the “Trusted” security zone. To do so, proceed as described in the Internet Explorer documentation. ● In the case of a SUM restart, you have corrected the errors as described in section Troubleshooting [page 98]. ● To use SUM without entering user credentials, you have configured the SAP Host Agent to operate over an SSL connection as described in Security and Authentication [page 39].

 Tip

Although SUM can operate over the http communications protocol, we strongly recommend that you set up your system to use the https communications protocol.

 Note

If you have various systems running on the same application server host, you can start a further Software Update Manager procedure on these systems for system maintenance.

The prerequisite is that the SUM directories remain unchanged and follow the standard path as described in chapter SUM directories.

Procedure

1. Open a web browser window. 2. In the address bar, enter the following URL:

https://:1129/lmsl/sumjava//index.html

 Note

If the SSL is not configured, use http instead of https at the beginning of the URL, and use port 1128:

http://:1128/lmsl/sumjava//index.html

3. In the dialog box that appears, enter the user name adm and the password.

Updating SAP Java Systems on Windows: SAP HANA DB 50 PUBLIC Running the Software Update Manager Results

The SAP Host Agent starts the Software Update Manager, and the SL Common GUI of the Software Update Manager is displayed in the web browser.

In the case of a restart, SUM continues from the point where it had previously stopped.

5.5 Starting the SUM Observer Monitor

Proceed as follows to use the SUM Observer Monitor, so that you can monitor the SUM process without interfering in the process.

Prerequisites

● You have created a user obs and set a password for this user.

 Caution

For security reasons, do not use the user adm for the observer mode.

● You have started the Software Update Manager at least one time with the SL Common UI as described in Starting and Restarting the Software Update Manager [page 49]. ● You have made sure that the corresponding observer progress files such as SUMOBSERVER.XML or SUMJAVAOBSERVER.XML exist in the subdirectory :\\abap\doc.

 Note

The observer mode is configured automatically once you execute the STARTUP script as described in Registering SUM in SAP Host Agent [page 48].

For more information, see SUM Observer Monitor [page 23].

Procedure

1. In the address bar of your browser, enter the following URL:

https://:1129/lmsl/sumobserver//monitor/ index.html ○ Replace with your system ID. ○ 1129 is the https port of the SAP Host Agent. ○ If the SSL has not been configured, use http instead of https at the beginning of the URL and use port 1128:

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 51 http://:1128/lmsl/sumobserver//monitor/ index.html 2. Enter the observer user obs and the configured password.

5.6 Resetting the Update

The Software Update Manager offers the option to reset the update.

Prerequisites

● Make sure that the downtime has not yet started. As of the beginning of the downtime, a reset is not possible anymore. To reset the update after the downtime has started, use the system backup created before the SUM process.

Context

When you choose the Reset option of the Software Update Manager, the system is set to a state that allows the update procedure to be restarted from the beginning.

Procedure

Resetting the update procedure on the SL Common UI: a. To reset the update procedure before the beginning of the downtime, choose either Back from the user interface or Reset from the More menu.

This depends on the phase that the update procedure is currently going through. The update procedure consists of phases that can be reset and of phases that you cannot reset directly. Whenever you are inside a resettable phase, the Software Update Manager offers you a Reset option in the More menu. If not, choose Back repeatedly until you are in a resettable phase and the Reset option appears in the More menu. If the update procedure has not progressed far and you choose Back repeatedly, the Welcome dialog may appear.

After you have chosen Reset, the Software Update Manager indicates afterwards the successful reset procedure and asks you to clean up the SUM directory. Choose Cleanup in the More menu. After the cleanup is completed, the Welcome dialog appears again. You can close the browser window or the browser tab page, or you can start the update procedure from the beginning.

 Note

For more information about the More menu, see SL Common UI Elements and Options [page 18].

Updating SAP Java Systems on Windows: SAP HANA DB 52 PUBLIC Running the Software Update Manager b. When the Welcome dialog appears, the system has been fully reverted to its state before the update and you can start the update from the beginning. However, we strongly recommend you ensure that all SUM backend processes are stopped, delete the current SUM directory, and use a newly unpacked SUM before you start over.

 Note

When you are in an error dialog and you want to reset the update, be aware of the following: ○ Close the browser window or browser tab page when the In progress process execution animation appears. Do not refresh the browser window or tab page, as this might restart the SL Common UI. ○ The Cancel button only stops the SUM background process and the SL Common UI, but does not trigger the reset of the system to its original state. Also, closing the UI tab only closes the user interface. ○ To prevent or correct errors with the reset procedure, see SAP Note 2011380 .

5.7 Using the Alert Function

Use

The alert function of the SL Common UI can be set to send an e-mail or an SMS when user action is required, or when the procedure stops because of errors.

Procedure

To configure the alert function, proceed as follows:

1. In the top right corner of the SL Common UI, choose Alert.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 53 2. Make the required entries:

Alert Configuration Options

Field Entry

Program Absolute path to a program (for example, a script) that triggers the sending of the notification. You have to pro­ vide this program yourself.

 Example

The following is an example of a script that sends an e-mail to a mail-to-SMS gateway, which in turn gener­ ates the SMS:

#!/bin/bash

#

# Sample script for alert triggering

#

# Configure mailx to send e-mails

#FROM_ADDRESS - indicates the e-mail sender

#SUBJECT - subject of the e-mail

#EMAIL_ADDRESS - indicates the e- mail receiver

#BODY - body of the e-mail

#ATTACHED_FILE - file to be attached to e-mail

#FROM_ADDRESS="[email protected]"

#SUBJECT="EHP Installer Alert"

#EMAIL_ADDRESS="cellphonenumber@T- D1-SMS.de"

#BODY="EHP Installer cannot continue"

#ATTACHED_FILE="Alert.txt

#If you want to send an e-mail, use the following command:

#echo "$BODY" | mailx -r "$FROM_ADDRESS" -s "$SUBJECT" "$EMAIL_ADDRESS"

Updating SAP Java Systems on Windows: SAP HANA DB 54 PUBLIC Running the Software Update Manager Field Entry

#If you want to attach the file with the alert message, specify the path to the alert file.

#The absolute path to the alert file should be the same as in the alert view.

#cat "$ATTACHED_FILE" | mailx -r "$FROM_ADDRESS" -s "$SUBJECT" "$EMAIL_ADDRESS"

Alert File Absolute path to the alert file that stores the alert mes­ sage

Alert Delay (in seconds) Time delay between the event and the sending of the noti­ fication

Set active (checkbox) Activates the alert function

3. To save your entries, choose OK.

5.8 Using Breakpoints During the Update

You can stop the update procedure at a specified point by using breakpoints.

Setting Breakpoints in the SL Common UI

On the right-hand side of the browser window, the SL Common UI offers you the option to maintain breakpoints from a list of available breakpoints. You can sort, filter, and search for breakpoints. The icons for the breakpoint status are described in the legend.

The breakpoint list displays icons in three different colors:

● Green - breakpoint lies in the past ● Orange - breakpoint lies in the currently processed phase ● Blue - breakpoint lies in a future phase

After opening the list, it scrolls automatically to a position where the breakpoint of the current phase is listed at the fourth position from the top, if available. You can scroll away from the position, but each time you choose Refresh, the breakpoint list is refreshed and displays the current phase highlighted at the fourth position of the table again.

If SUM stops at a selected breakpoint, it displays a dialog with the options listed below in Options in the Dialog.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 55 Options in the Dialog

 Note

Depending on your scenario and system, the available options may vary.

Once you have set a breakpoint, the Software Update Manager stops at that specific point and displays a dialog with the following options:

● Continue execution SUM continues the update automatically until the next breakpoint is reached. Then, the breakpoints dialog is displayed. ● Exit program The update process stops and you exit SUM. When you restart the update process, the breakpoint dialog appears again.

5.9 Making Entries for the Specify Authentication Mechanism Roadmap Step

Procedure

Enter the password for the adm user and choose Next.

Alternatively, if the sapcontrol executable is set up in a way that it does not require user credentials, select the checkbox No authentication with user credentials and choose Next.

Release upgrade only: To be able to use this option in a system with multiple application server instances, proceed as described in Configuring SAP Host Agent Authentication and SSL Connection [page 39].

If you choose to continue the update using user credentials, be aware that it is mandatory to use the adm user.

If the OS user credentials for any of the instances in your system do not match the ones that you have already entered for the primary application server instance, you have to specify the correct credentials for each instance on a subsequent screen.

Results

Your administrator user is verified for performing the SUM procedure in the system.

Updating SAP Java Systems on Windows: SAP HANA DB 56 PUBLIC Running the Software Update Manager 5.10 Making Entries for the Select Target Roadmap Step

Context

The new content is updated with the stack that is available in the download directory. The stack is described in a stack configuration XML file.

If you have downloaded the software packages using the Maintenance Planner, the stack configuration file has been generated automatically and saved to the EPS inbox of SAP Solution Manager. In the Select Target roadmap step, you have to enter the path to the stack configuration file.

 Caution

If the stack is located in a share on a different host, make sure that you copy it locally together with the stack configuration XML file and specify the local directory path in this step.

According to the provided stack configuration file, the Software Update Manager checks whether all required packages are available in the download directory. It then creates the deploy queue and validates whether all the dependencies are fulfilled.

Procedure

1. In the Stack File or Directory field, specify the path to the stack configuration XML file. 2. If you want to verify the signature authenticity of all SAP-derived software archives that are located in the download directory, ensure that the Check archive authenticity checkbox is selected.

 Note

You require a valid Certificate Revocation List (CRL), which is placed at the location of the stack.xml configuration file. You can download it from https://tcs.mysap.com/crl/crlbag.p7s .

3. Choose Next.

5.11 Making Entries for the Confirm Target Roadmap Step

Procedure

Confirm the displayed target system version by choosing Next.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 57 5.12 Making Entries for the Configuration Roadmap Step

This roadmap step asks for all information required to run the update. For clarity, this section is divided into the following subsections:

● Making Basic Entries for the Java Update Process [page 58] ● Release upgrade only: Making Entries for the Target System Configuration [page 59]

5.12.1 Making Basic Entries for the Java Update Process

Procedure for Enhancement Package Installation and SPS Update

1. Enter the password for the AS Java Administrator user with which you log in to the system. 2. A summary of all system parameters that have been detected is displayed. Choose Continue.

Procedure for Release Upgrade

1. Enter the password for the AS Java Administrator user with which you log in to the system. 2. Enter a password for the SAPService user. SAPService is the user with which the SAP system performs its operating system-specific actions. Sometimes you might need to enter the before the /SAPService user. 3. Enter the parameters of the shadow system. The SCS and primary application server instances require instance numbers as technical identifiers for internal processes.

 Caution

You should not use these instance numbers anywhere else in your system landscape.

4. A summary of all system parameters that have been detected is displayed. Choose Continue. 5. Enter the paths to the required Java DVD.

 Note

SL Common UI only: When you are performing a release upgrade and you require DVD media content, you have to provide the path to the content by means reachable by the SL Common UI. Use one of the following approaches: ○ Provide a Universal Naming Convention path (UNC path) to the drive. ○ Copy the DVD media content to a directory on a local drive that is persistent, and provide a path to this directory. ○ Provide a path to a local DVD drive containing the required data. Do not provide a link to a mapped network DVD drive.

To access the content, provide the fully-qualified domain name (FDQN).

Updating SAP Java Systems on Windows: SAP HANA DB 58 PUBLIC Running the Software Update Manager The Software Update Manager extracts the content into the directory \java\data \archives.

5.12.2 Making Entries for the Target System Configuration

Context

 Note

This section is only relevant if you perform a release upgrade.

The Configuration roadmap step enables you to specify the composition of the target release system.

Procedure

1. Decide how you want to handle the software components during the upgrade.

The Component List screen displays all components that are involved in the upgrade, either because they have been detected on the source release system, or because they belong to the target release delivery. The following information is displayed for each component: ○ Vendor ○ Component Name ○ Release ○ Support Package Level ○ Patch Level ○ Provider ○ Operation

In the Operation column, you can find the action that the Software Update Manager performs for the component as a next step. Some of the operation types are set automatically by the Software Update Manager and others are available as alternatives. The following operation types exist: ○ Deploy – the normal upgrade operation ○ Revert – you can assign this operation to a modified or add-on component in your source release that has a valid successor in the download directory but you do not want to use the successor version in the upgraded system. If you want to revert such a component (for example, a portal component that is subject to 'par to war' migration), proceed as follows: 1. Select the Revert option for one or more components. 2. Select Continue the process; the displayed component list is correct and complete at the bottom of the screen. 3. Choose Continue. The List of components to revert dialog is displayed. 4. Remove the listed component(s) from the download directory and choose Continue in the List of components to revert dialog.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 59 As a result, you will be able to assign the Remove, Migrate or Scan inbox operation to the affected add- on/modified components. ○ Scan inbox – assigned to source release components for which the Software Update Manager cannot find any successor, such as customer developments, add-ons, or third-party software. You have to provide a valid successor version for each of these components in your download directory. If you want to update these components, proceed as follows: 1. Provide a deployable archive (an SCA file) with the target release version of the component or with a version that is fully compatible with the target release in your download directory. 2. Select Rebuild the component list after scanning the download directory at the bottom of the screen. 3. Choose Continue. Alternatively, you have the option to assign the Remove operation to these components. ○ Remove – assigned to those components that no longer exist in the target release. A component no longer exists after the upgrade either because it has been deleted, or because it has been integrated into some other component. ○ Migrate – this option is available for deployable archives in your source release that are subject to 'par to ear' migrations and do not have valid successor versions in your download directory. 2. To proceed with the upgrade process, confirm the list of components.

5.13 Making Entries for the Checks Roadmap Step

Checking the Results of the System Check

At the end of the Checks roadmap step, the Software Update Manager displays the results of the system check. The entries can be error messages, information, or prompts for user actions.

Carry out the user actions before you can start with the Preprocessing roadmap step.

5.14 Performing Actions Before the Beginning of the Downtime

Before the downtime begins, you have to perform the following major preparation steps to ensure a seamless update process. They are:

1. Creating mandatory backups 2. Preparing additional application server instances 3. Preparing high availability systems 4. Preparing system tools

Updating SAP Java Systems on Windows: SAP HANA DB 60 PUBLIC Running the Software Update Manager Creating Mandatory Backups

Before the downtime takes place, you have to ensure that you can recover your SAP system to its original state.

 Caution

Be aware that you might need these backups to reset your SAP system to its initial state. If you encounter issues during the downtime that you have to revert from, the SAP system cannot be restored without these backups.

1. Back up the database so that you can recover it to its original state. 2. Back up the :\usr\sap\, including the complete SUM directory.

 Note

If the SUM directory is not part of directory :\usr\sap\, make a separate backup of the complete directory including the sdt subdirectory. Be aware that we do not recommend using a different directory than :\usr\sap\.

3. Only for distributed or high availability systems: back up the :\usr\sap\\SYS \global\security directory, as the as the \global\security directory might be located on a remote host.

Preparing Additional Application Server Instances

1. EHP installation or SPS update: Make sure that all additional application server instances and their associated services are up and running.

Preparing High Availability Systems

Prepare the SCS instance for the downtime as follows:

1. Only valid for 'Source Release': SAP NetWeaver 7.4 For releases based on SAP NetWeaver 7.0-based and higher: Set the Maintenance Mode flag, which is available if your system is running on SAP kernel 721 and higher. This is required so that unwanted failovers of the SAP cluster group are prevented during the update. Depending on your OS version, you can set or unset the flag as a private property of an SAP instance resource as described below.

 Note

If your system is using SAP kernel 749 and higher, you can select the Activate Maintenance Mode flag option on the Begin Downtime dialog, so that SUM attempts to set the flag automatically. The flag is also automatically unset after the downtime. If SUM does not succeed, you have to perform the procedure for your operating system version described below. In such cases, you also have to manually unset the flag after the downtime.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 61  Note

○ If there is more than one resource of resource type SAP Resource in a cluster group, you have to set the property of every single resource. ○ SAP Cluster Resources must be offline. (See also the procedures below.) ○ Note that if the Maintenance Mode flag of the SAP instance resource is set, the SAP MMC or sapcontrol no longer use the cluster interface when starting and stopping an SAP instance.

For Windows Server 2008 and Windows Server 2008 R2: 1. Go to Administrative Tools Failover Cluster Manager , and choose Groups . 2. Perform the following steps for the SCS instance: 1. Bring the SAP Instance cluster resource offline. 2. Bring the SAP Service cluster resource offline. 3. Double-click the SAP Instance and choose the Parameters tab. 4. Select the Maintenance Mode flag. 5. After bringing the SAP Cluster Resources offline, manually start the SCS service and ensure the Startup Type is set to Automatic. Software Update Manager needs this setting so that it can execute the maintenance activities on the SCS. 6. Start the SCS instance from the SAP MMC. For Windows Server 2012 or a higher version: 1. Open a PowerShell console with elevated rights. 2. Stop the SAP Instance and the SAP Service cluster resources by using the following commands: stop-clusterresource “SAP Instance” stop-clusterresource “SAP Service” 3. Set the Maintenance Mode in the Properties of the SAP Instance cluster resource: Get-ClusterResource "SAP Instance" | set- clusterparameter MaintenanceMode –value 1 Leave both SAP Cluster Resources offline. Do not start them again at this point in time to prevent a cluster failure in the event of a restart of the SAP Instance resource. 4. Set the SAP_ service Startup Type to Automatic and start it by using the following commands in an elevated command prompt or PowerShell: sc.exe config SAP_ start= auto sc.exe start SAP_ 5. Start the SCS instance from the SAP MMC. End of 'Source Release': SAP NetWeaver 7.4

Preparing System Tools

1. Make sure that the following tools are not running, and shut them down if necessary: ○ SAP MMC ○ jcmon and other standalone monitoring tools 2. If the User Management Engine (UME) is located on a remote host, make sure that this host is running.

Updating SAP Java Systems on Windows: SAP HANA DB 62 PUBLIC Running the Software Update Manager 3. Install the Microsoft Visual C++ runtime environment (vcredist_*.msi or .exe package) . The version you have to use is delivered in the stack with the new SAP kernel and SAP JVM components. This is also valid if your system is heterogeoeous.

 Note

If you have a remote SCS instance running in a clustered or high availability environment, you have to install the vcredist_* package on both cluster nodes. If your archives contain both .msi and .exe versions of vcredist_*, use the .exe version.

The vcredist_* package required by SAP kernel is available in the SAPEXE_*.SAR and SAPJVM_*.SAR archives delivered with the stack. By using the following command, extract the package relevant for your system from either archives on the remote host: sapcar -xf .SAR vcredist_*.* -R :\ 4. Review the changes that will be applied to the system by checking the ProcessOverview.html report.

5.15 Performing Manual Actions for the SAP Central Services Instances

This chapter deals with manual actions for the SAP Central Services Instances.

Context

Perform the following manual actions for the SAP Central Services Instances during phase HA_SYSTEM_UPTRANS.

 Note

● Note that a profile path must fit to the corresponding DIR_PROFILE setting that is defined in the used SAP profiles. For Windows Cluster systems, we highly recommend using the Universal Naming Convention path (UNC path). ● The steps in the following are relevant for the operating system Windows Server 2012 or a higher version. If you use Windows Server 2008 or Windows Server 2008 R2, see in addition the chapter HA Systems ans Windows Server 2008/2008 R2 in the Adminstration section of the SUM Guide for Dual- Stack Systems. ● Take also note of the possibility of an automatic maintenance mode. For more information, see Updating Distributed and High Availability (HA) Systems [page 31].

Procedure

HA only: Reconfigure the SCS instance service on the secondary node.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 63 In a high availability environment, merging the start profile with the instance profile affects only in the primary node of the SCS instance. To prevent issues in case the primary node fails, configure manually the second nodes. Execute the following commands in each system of the secondary node by using a command prompt or PowerShell: net stop

\sapstartsrv.exe -u -q -s -n

\sapcpe pf= list:\scs.lst source:

\sapstartsrv.exe -r -q -s -n -p -U -P sc.exe config SAP_ start= demand

5.16 Performing Actions at the End of the Downtime

1. Perform additional maintenance to your system if before the procedure you have set SUM to omit the final system restart and if you are notified that you can do so.

 Note

After you have finished with the additional maintenance, you have to maually restart the system.

2. At the end of the downtime, create the following backups: ○ A backup of your database as described in your database manual ○ A backup of the SUM directory 3. If you are running a high availability system, prepare the SCS instance for production operation as described below.

 Note

For systems running on SAP kernel 749 and higher: if you have selected the Activate Maintenance Mode flag option on the Begin Downtime dialog and SUM has succeeded to set it, at the end of the downtime SUM also atempts to un-set it. You need to manually un-set the flag as described below only if SUM explicitly notifies you to do so.

Preparing the SCS Instance for Production Operation (HA only)

Procedure for Source Releases Based on SAP NetWeaver 7.0 and higher

1. To disable the Maintenance Mode flag, proceed as described below for your operating system version: For Windows Server 2008 and Windows Server 2008 R2: 1. In the Failover Cluster Manager, open the cluster group SAP . 2. Double-click the SAP Instance cluster resource and choose the Parameters tab.

Updating SAP Java Systems on Windows: SAP HANA DB 64 PUBLIC Running the Software Update Manager 3. Deselect the Maintenance Mode flag. 4. Bring the SAP Instance cluster resource online. This automatically brings the SAP Service cluster resource online. For Windows Server 2012 or a higher version: 1. Open a command prompt with elevated rights or a PowerShell console. 2. Disable the Maintenance Mode in the Properties of the SAP Instance Resource by using the following command: Get-ClusterResource "SAP Instance" | set- clusterparameter MaintenanceMode -value 0 3. Bring the SAP _ Instance cluster resource online: start-clusterresource "SAP Instance"

5.17 Evaluating the Software Update Manager

To give your feedback to the update process, you can send a feedback form to SAP.

Prerequisites

● The update has finished. ● The client with which the update is controlled needs an Internet connection.

Context

SAP is always interested in improving its tools. Our aim is to provide you with a fast and efficient update process. Upon completing the process successfully, the important statistics of the update are collected in a comprehensive report – the UPGANA.XML file. Evaluating the collected information helps us to improve the update process but also brings benefits like transparency and predictability. Note that the form does not collect any business-related data.

To be able to identify areas in need of improvement, we would highly appreciate getting feedback on your experience with the SUM process. For this purpose, we have incorporated a simple feedback form directly in the SL Common UI (Summary roadmap step). The Summary and Evaluation of the Process dialog contains the following sections:

● Summary Using the corresponding link in the dialog (UPGANA.XML), you can open a process report, which is designed to easily evaluate your update and to better plan follow-up updates. It includes all important artifacts in a single file. ● Feedback Form This form consists of a simple questionnaire on your experiences with the SUM process, a free-text feedback field, XML data generated during the update process, and an email field.

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 65 Procedure

1. Answer the questions in the Feedback Form section.

 Note

Answering the questions is optional.

2. Choose SEND TO SAP.

5.18 Running the Software Update Manager for Another Update

This section describes how you start the Software Update Manager again from the beginning for another update.

Prerequisites

You have successfully performed an update, and you have stopped the Software Update Manager afterwards as described in Stopping the Software Update Manager [page 66].

Procedure

1. Rename the update directory used for the update that has already finished. 2. Unpack SUM again and start it as described in Starting the Software Update Manager [page 48].

5.19 Stopping the Software Update Manager

After a successful update, you have to stop the Software Update Manager manually.

Context

After the update procedure has been performed successfully, the Software Update Manager displays an appropriate information in the web browser window. Afterwards, all remaining processes on operating system level must be terminated to stop SUM completely. This also applies after a reset and the subsequent cleanup in case you do not want to continue the update.

Updating SAP Java Systems on Windows: SAP HANA DB 66 PUBLIC Running the Software Update Manager You have two options to stop the Software Update Manager completely:

● Using Exit from the More menu. ● Killing the SAPup and SUMSUM processes manually on the host.

Procedure

Option 1: Stopping SUM using Exit command: 1. After the update procedure has been performed successfully, choose Exit from the More menu.

This exits the current page and displays the initial dialog of the SL Common UI ("Tool start required"). 2. Choose Exit again.

This terminates the SAPup process on the server and stops with that the Software Update Manager completely. An appropriate message on the SL Common UI appears. 3. Close the web browser page. Option 2: Stopping SUM by killing the SAPup and SUMSUMprocesses: 4. After the update procedure has been performed successfully, choose Cancel and then OK. 5. Close all browser windows connected with SL Common UI. 6. Open the Task Manager, then the Processes tab page. 7. In the processes list, search for SAP JAVA VM runtime binary processes. Stop the process by right-clicking and choosing End Process Tree.

5.20 Performing an Automated Update

Prerequisites

You have the data from a previous SUM update that was used to execute the same scenario you want to automate.

Context

The Software Update Manager can operate in automated mode for release upgrades, SPS updates, and EHP installations for Java-only systems. As not all of them require strict supervision, the automated update can contribute to, for example, updating development systems, quality assurance systems, and test systems, or when running multiple updates in complex landscapes. During the final steps of an update, the BatchModeInputFile.xml file is generated into the \sdt\param subdirectory of the update directory. This file contains all required parameters for the SUM process and is used during the automated update.

The automated update mode has the following benefits:

Updating SAP Java Systems on Windows: SAP HANA DB Running the Software Update Manager PUBLIC 67 ● You can monitor the progress of the update. ● You can perform error handling with the same features as in the regular manual update. ● Security requirements are fulfilled, for example, no passwords are stored in the system. ● Usability – executing the automated update mode is simple since no manual input is required.

Procedure

1. Copy the BatchModeInputFile.xml file to the \sdt\param directory of the system to be updated. 2. Edit the BatchModeInputFile.xml file depending on your update: ○ Update of the same system: Adapt the location and name of the stack XML file in the BatchModeInputFile.xml file so that it contains the current data. ○ Update using a file from another system, or if your previous SUM directory has been deleted: Adapt the parameter values to the ones of the newly updated system in the BatchModeInputFile.xml file.

 Note

By default, you enter the required passwords in SUM manually. As an alternative in the automated mode, you can uncomment and fill in the password fields in the BatchModeInputFile.xml to automate this. Note that you should do this only if you are sure that your system is fully protected against unwanted external access.

3. In the startup.props file, uncomment the line #autoinput=/usr/sap//SUM/sdt/param/ BatchModeInputFile.xml and enter the navigation path to your XML file. For example: autoinput=D: \usr\sap\AB1\SUM\sdt\param\BatchModeInputFile.xml 4. (Optional) For high availability systems running on SAP kernel 7.49 and higher: You have the option to stop the automated update before the downtime, so that you can manually set the Maintenance Mode flag. To do so, edit the startup.props file by inserting the following properties:

skipAutomaticMaintenanceModeConfig=true

autoInputSkipDowntimeDialog=true

 Note

The second property pauses the automated update at the downtime dialog, so that you are able to set the flag.

5. Start the SL Common GUI as described in Starting and Restarting the Software Update Manager [page 49].

Updating SAP Java Systems on Windows: SAP HANA DB 68 PUBLIC Running the Software Update Manager 6 Follow-Up Activities

This part of the document contains information about the follow-up activities that you need to perform after you have updated your SAP system.

Before you perform any follow-up activities, it is important that you perform the actions described in Quick Guide [page 12] in the specified order.

 Caution

In addition to the general follow-up activities described in this document, you need to perform the follow-up activities that are specific to your product version, which are described in an additional product-specific document. This document is referenced in the Master Guide (or Upgrade Master Guide, respectively) for your product.

Actions

You have to perform the following actions before you resume production operation of your system:

● SAP HANA DB: Backing Up the Database [page 69] ● Performing Follow-Up Activities for SAP Solution Manager [page 70] ● Release upgrade only: If the additional application server instances in your cluster were online during the upgrade, you have to restart your primary application server instance after the upgrade has finished.

You can perform the following actions during production operation of your system:

● Deleting Log Files [page 71]

6.1 SAP HANA DB: Backing Up the Database

Prerequisites

You have not yet resumed production operation of the SAP system.

Procedure

Make sure that you can recover the database. This step depends on whether archiving is switched on or off:

● Archiving switched off Since the log mode is reset to its original value after the update, you have to back up the database completely before you can start production operation again. You can then continue with the update. ● Archiving switched on

Updating SAP Java Systems on Windows: SAP HANA DB Follow-Up Activities PUBLIC 69 We recommend that you make a complete backup so that you do not have to restore all the logs again if you recover the database.

6.2 Performing Follow-Up Activities for SAP Solution Manager

Use

To connect the newly updated system to SAP Solution Manager, you need to perform the following activities:

● Make sure that the data is up-to-date in the SAP Solution Manager system. ● Configure the diagnostics capabilities and the Wily Introscope Agent. ● If required, update the product version of the system where the Integration Server is installed.

Procedure

Checking System Data

In the System Landscape Directory (SLD), check whether the system landscape is up-to-date. To do this, check whether the newest software component versions are assigned to the relevant technical systems in your system landscape. After having verified that the system information in the SLD is up-to-date, the system needs some time (up to 24 hours) to also update the system information in SAP Solution Manager.

Updating the System Data in SAP Solution Manager

After updating your system, you need to make sure that the correct product version is assigned to the system in SAP Solution Manager.

For more information, see the SAP Library at http://help.sap.com/solutionmanager:

SAP Library Paths

Release Path in SAP Library

SAP Solution Manager 7.2 Application Help SAP Library SAP Solution

Manager Operations Managing System Landscape

Information .

Read sections Setting Up the Landscape Management Infrastructure and Managing Technical System Information.

Configuring Diagnostics Capabilities and Wily Introscope Agent

1. Start SAP Solution Manager. 2. Call transaction SOLMAN_SETUP. 3. On page SAP Solution Manager: Overview, choose Managed System Configuration.

Updating SAP Java Systems on Windows: SAP HANA DB 70 PUBLIC Follow-Up Activities 4. Select the system where the Integration Server is installed. 5. On page Managed System Configuration in the process diagram, choose Diagnostics Configuration. 6. In row Configure Diagnostics, choose Select URL. 7. On page Managed System Configuration in the process diagram, choose Wily Introscope Configuration. 8. In row Configure Wily Introscope Agent, choose Select URL. 9. Under Introscope Agent, choose Setup Introscope Agent.

For more information about Wily Introscope Agent, see SAP Community Network at http://wiki.scn.sap.com/ wiki/x/CBkMDg .

6.3 Deleting Log Files

For security, data protection, and privacy-related reasons, we recommend that you delete the log files as soon as you no longer need them.

Context

For technical reasons, the Software Update Manager writes various log files. Among other things, these log files contain IDs of users such as ADM, DDIC, or SYSTEM.

In order to comply with data protection, privacy and security requirements, we strongly recommend that you delete these log files as soon as you no longer need them.

Procedure

Remove the log files from the SUM Directory [page 25] and its subdirectories on the host where the Software Update Manager has initially been started.

Updating SAP Java Systems on Windows: SAP HANA DB Follow-Up Activities PUBLIC 71 7 Applying Single Component Updates and Patches Using a Manually Prepared Directory

7.1 Introduction

This part of the document describes how to apply single component updates and patches in SAP systems using the Software Update Manager (SUM) 1.0 SP26. You can also use this procedure to install add-ons delivered through software archives without a stack.xml configuration file, or perform kernel updates.

When downloading and applying patches, check for dependencies by using the SCA Dependency Analysis Tool. For more information, see SAP Note 1974464 .

For a list of all supported processes, products and releases, see the current Software Update Manager Note 2882395 .

 Caution

It is essential that you use the Quick Guide [page 72] to guide you through the process. The Quick Guide checklist provides you with an overview of all necessary tasks in chronological order. If you are experienced in performing updates, the checklist may contain all you need to know to perform the update successfully. If you need more information, follow the links to the detailed descriptions.

7.2 Quick Guide

This section contains a checklist with all the actions you need to perform:

● Find SAP Notes ● Prepare the update ● Update your system

The actions are in chronological order so that you can work through them like a checklist. For more information, follow the links to the descriptions of the actions.

You can also use the checklist to gain a quick overview of the update procedure.

Checklist

SAP Notes

Updating SAP Java Systems on Windows: SAP HANA DB 72 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory This document is enhanced and updated by SAP Notes from SAP Support Portal (http://support.sap.com ). These SAP Notes are an important source of information when you plan and prepare your update, and also help you perform the actual update.

1. You request the current SAP Notes [page 10]. You require at least the following SAP Notes: ○ Central Software Update Manager Note 2882395 ○ The relevant database-specific SAP Note 2976259 ○ Single component update and patch scenarios in SUM – SAP Note 1641062 (describes the rules for acceptance or rejection of the components)

Update Preparation

You can perform the preparations while the system is in production operation.

Actions Before Starting and Using the Software Update Manager

1. You fill the manually prepared download directory [page 74].

Update Procedure

Actions for Starting and Using the Software Update Manager

1. You meet the requirements for the SUM directory [page 46]. 2. You download and unpack the Software Update Manager [page 47]. 3. You register SUM in SAP Host Agent [page 78]. 4. You start the Software Update Manager [page 79]. 5. You can reset [page 79] the update if needed. In addition, you can configure the alert function [page 53] to notify you when user action is required. 6. You can use breakpoints during the procedure [page 55].

Making Entries for the Specify Authentication Mechanism Roadmap Step

You continue with roadmap step Specify Authentication Mechanism [page 56] and make the corresponding entries.

User Actions During the Select Target Roadmap Step

You continue with roadmap step Select Target [page 86] and make the corresponding entries.

User Actions During the Confirm Target Roadmap Step

You continue with roadmap step Confirm Target [page 87] and make the corresponding entries.

User Actions During the Configuration Roadmap Step

You continue with roadmap step Configuration [page 87].

To perform the roadmap step, the Software Update Manager needs certain information from you. If possible, default values appear that you can confirm or change.

Actions During the Preprocessing Roadmap Step

1. You check the Software Update Manager Note, the application-specific SAP Note and your database- specific SAP Note for new information and changes. 2. Before the downtime [page 88] begins, you are asked to make the necessary backups and additional actions.

Actions During the Execution Roadmap Step

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 73 While the processes of the Execution roadmap step are running, the system is in downtime.

At the end of the downtime, you again create backups [page 88].

Actions During the Summary Roadmap Step

1. You evaluate the Software Update Manager [page 65]. 2. You store the current SUM data for future use [page 90].

7.3 Filling the Manually Prepared Download Directory

Context

You can put all software component updates and patches which you want to apply to your system in a manually prepared download directory. During the Select Target roadmap step, you are prompted to enter the path to your manually prepared directory. The Software Update Manager reads this directory and moves the files to the appropriate directories from where they are then further processed.

 Note

SUM only reads files located at the top level of the manually prepared directory. Note that any subdirectories are not considered for deployment by SUM.

You can put the following component types in the download directory:

● Software Component Archives (*.SCA) ● Software Deployment Archives (*.sda) ● Other deployable archives (with extension *.zip and *.ear) ● Non-deployable components (such as kernel binaries)

 Note

SUM can deploy ear and sda archives only if they are part of an SCA archive that already exists in the system.

Procedure

1. Prepare a consistent download directory. The directory can be located anywhere on your host. 2. Put all software components and patches to be applied to the system into the same directory.

Updating SAP Java Systems on Windows: SAP HANA DB 74 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 7.4 Running the Software Update Manager

This part of the document provides information about starting and running the Software Update Manager. This section describes all the required user input and actions, as well as critical points during the update.

Note the following:

● All required planning and preparation actions should be completed. ● The Software Update Manager controls the entire procedure, from checking the system requirements and importing the necessary programs through stopping production operation until production operation is resumed. The procedure is divided up into a number of different roadmap steps. The roadmap steps are in turn divided into individual steps. The successful completion of a step is a precondition for the success of all subsequent steps. ● Use this procedure to install add-ons delivered only through software archives without a stack.xml configuration file. ● Depending on the source release, the Software Update Manager has to run on: ○ SAP NetWeaver 7.1 and higher: the host, on which you want to run the tool. It can be either the primary application server instance or an additional instance. ● If the instance, on which you are going to run the tool and database are running on different hosts, you have to perform the actions that affect the database on the database host. ● You can use the logs written by the tool to monitor the procedure. ● Many steps require no user input. In the following, you can find a description of all necessary user input. ● User actions are also required when errors occur. If an error occurs, correct it and repeat the step in which the error has occurred. Once the step has been repeated successfully, you can continue with the update. For more information, see the Troubleshooting [page 98] part of this document.

Prerequisites

Before you run the Software Update Manager, make sure that the following prerequisites are fulfilled:

● Your system is up and running. You should not stop the system manually. The tool stops and starts it when needed. ● You are logged on to the update host as user adm.

 Caution

If your system is installed in a high availability switchover environment, make sure that the failover capabilities of the cluster switch-over software are disabled during the downtime. This is to prevent unwanted failover actions during stop actions of the upgrade procedure.

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 75 Actions

You perform the following actions to start and use the Software Update Manager:

● Meeting the Requirements for the SUM Directory [page 46] ● Downloading and Unpacking the Software Update Manager [page 47] ● Registering SUM in SAP Host Agent [page 78] ● Starting and Restarting the Software Update Manager [page 79] ● Resetting the Update [page 52] ● Using the Alert Function [page 53] ● Using Breakpoints During the Update [page 55]

You perform the following actions during the roadmap steps:

● Making Entries for the Specify Authentication Mechanism Roadmap Step [page 56] ● Making Entries for the Select Target Roadmap Step [page 86] ● Making Entries for the Confirm Target Roadmap Step [page 87] ● Making Entries for the Configuration Roadmap Step [page 87] ● Performing Actions Before the Beginning of the Downtime [page 88] ● Performing Actions at the End of the Downtime [page 88] ● Evaluating the Software Update Manager [page 65] ● Storing Current SUM Data for Future Use [page 90]

7.4.1 Meeting the Requirements for the SUM Directory

Context

If you do not specify a path when you unpack the Software Update Manager package, the SUM directory is automatically created as a subdirectory of the directory where you unpack the software package. However, we recommend that you use the standard path :\usr\sap\.

 Note

If a directory with this name already exists, it has to be empty. Otherwise, the startup of the update fails.

 Caution

● Do not use symbolic links to remote directories. ● Do not use volume mount points. ● Set security settings even for local symbolic links or junctions. For example, if you use the SUM directory D:\SUM and a symbolic link to C:\usr\sap\SID\SUM, you enter the same above-mentioned command in the PowerShell console.

Updating SAP Java Systems on Windows: SAP HANA DB 76 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory Procedure

Make sure that there is enough free disk space for the SUM directory. This space is required for the update and the logs and is distributed among several subdirectories [page 25]. For an estimation of the disk space needed for the SUM directory, see the update guide that is specific to your product.

7.4.2 Downloading and Unpacking the Software Update Manager

Procedure

1. Download the latest version of the Software Update Manager from the main Software Logistics Toolset page on the Support Portal at:

http://support.sap.com/sltoolset System Maintenance Software Update Manager (SUM) Download SUM

 Note

https://blogs.sap.com/2015/07/09/maintenance-planner-2/ .

 Note

Use the SUM archive SUM10SP. If you see also the SUM archive SUM10HDBSP, keep in mind that this archive is intended for all update scenarios with regard to the combination ABAP technology and SAP HANA database.

2. Log on as user ADM to the host where you will run the tool.

 Note

Depending on the source release, the Software Update Manager has to run on: ○ SAP NetWeaver 7.1 and higher: the host, on which you want to run the tool. It can be either the primary application server instance or an additional application server instance.

3. Unpack the Software Update Manager package with the following command:

SAPCAR –xf \\.SAR -R :\usr\sap \

This command creates the directory SUM under the :\usr\sap\ directory. You can also specify another directory. Hereafter, the directory :\\SUM is referred to as .

 Note

○ Do not unpack SUM in the DIR_GLOBAL directory , as this might lead to issues during the update. ○ The complete path to the SUM directory should not exceed 25 characters.

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 77 ○ If you want to run several updates in parallel on the same host, you have to unpack one SUM instance in each directory of the respective SID directories. For example, if you have the SAP system IDs AB1 and AB2, unpack one SUM instance in the respective directory of each SAP system ID. When starting the SL Common UI, you enter the corresponding SAP system ID in the URL, thus connecting to the corresponding SUM instance. For more information, see Starting and Restarting the Software Update Manager [page 49]. Note that when running several SUM instances using the default location :\usr\sap\ is mandatory.

If for the SUM directory you use a location other than the default :\usr\sap\, after you have unpacked the SUM package you have to copy the access control list (ACL) from the directory to your selected SUM directory. For this, you open the PowerShell console with elevated rights and enter a command with the following structure: set-acl [SUM directory] (get-acl [ directory]).

 Example

Your SUM directory is located in D:\SUM.

Your directory is located in C:\usr\sap\SID.

You enter the following command in the PowerShell console with elevated rights: set-acl D:\SUM (get-acl C:\usr\sap\SID)

7.4.3 Registering SUM in SAP Host Agent

Before you start the procedure you have to register the Software Update Manager in SAP Host Agent, so that the operations and commands to the updated system are executed using SAP Host Agent mechanisms.

Depending on the source release, the Software Update Manager has to run on:

● SAP NetWeaver 7.1 and higher: the host, on which you want to run the tool. It can be either the primary application server instance or an additional one

Prerequisites

● You have downloaded and unpacked [page 47] the latest SUM version of the and the software packages that you need for the update.

● For a correct execution of the update procedure, make sure that you have installed on all application servers instances the latest version of the SAP Host Agent. Check the SAP Software Download Corner at http://support.sap.com/swdc for the versions that are available to download. For more information, such as the deprecation of lower versions, see SAP Note 2130510 . For additional information regarding SAP Host Agent, see SAP Notes 1031096 and 1907566 . ● The Secure Socket Layer (SSL) is configured as described in Security and Authentication [page 39].

Updating SAP Java Systems on Windows: SAP HANA DB 78 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory Procedure

 Note

● Make sure that you do not run the Software Update Manager during daylight saving time shifts. Otherwise, the update might fail. ● Always perform the procedure from within the SUM directory.

1. (Optional) You can set SUM to omit the system restart that takes place at the end of the update procedure to perform additional maintenance activities, for example, adapting various system settings, integrating third-party software in your landscape, and others. Proceed as follows: 1. Navigate to :\usr\sap\\SUM\sdt\param\ and open the startup.props for editing. 2. Set the following profile parameter as follows: skipFinalJ2EERestart = true 3. Save and close the file. At the end of the downtime, you are informed that the final system restart has been omitted, and that you can perform your additional maintenance. Note that after you have finished, you have to manually restart your system. 2. To run the registration of the Software Update Manager in the SAP Host Agent, and enter the following command: ○ :\\STARTUP.BAT

7.4.4 Starting and Restarting the Software Update Manager

This section describes how you start the SL Common UI and the SUM back-end process.

Prerequisites

● You have met the requirements for the update. ● The SAP system and the database have been started. ● You have registered SUM in SAP Host Agent as described in Registering SUM in SAP Host Agent [page 48]. ● The SAPCAR version that is referenced in the environment variable PATH is identical with the one that is located in the kernel directory. In addition, no reference to any other SAPCAR version should exist in the PATH variable. ● All application server instances and their associated services are up and running. ● The P4 protocol is configured to monitor the loopback address of your system as described in Ensuring the Validation of the Java Administrator [page 43], so that the Java administrator verification is successful. ● You have downloaded and unpacked the latest version of the Downloading and Unpacking the Software Update Manager [page 47] and the software packages that you need for the update. ● When using Internet Explorer, you have to make sure that the URL relevant for your system is listed in the “Trusted” security zone. To do so, proceed as described in the Internet Explorer documentation. ● In the case of a SUM restart, you have corrected the errors as described in section Troubleshooting [page 98].

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 79 ● To use SUM without entering user credentials, you have configured the SAP Host Agent to operate over an SSL connection as described in Security and Authentication [page 39].

 Tip

Although SUM can operate over the http communications protocol, we strongly recommend that you set up your system to use the https communications protocol.

 Note

If you have various systems running on the same application server host, you can start a further Software Update Manager procedure on these systems for system maintenance.

The prerequisite is that the SUM directories remain unchanged and follow the standard path as described in chapter SUM directories.

Procedure

1. Open a web browser window. 2. In the address bar, enter the following URL:

https://:1129/lmsl/sumjava//index.html

 Note

If the SSL is not configured, use http instead of https at the beginning of the URL, and use port 1128:

http://:1128/lmsl/sumjava//index.html

3. In the dialog box that appears, enter the user name adm and the password.

Results

The SAP Host Agent starts the Software Update Manager, and the SL Common GUI of the Software Update Manager is displayed in the web browser.

Updating SAP Java Systems on Windows: SAP HANA DB 80 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 7.4.5 Resetting the Update

The Software Update Manager offers the option to reset the update.

Prerequisites

● Make sure that the downtime has not yet started. As of the beginning of the downtime, a reset is not possible anymore. To reset the update after the downtime has started, use the system backup created before the SUM process.

Context

When you choose the Reset option of the Software Update Manager, the system is set to a state that allows the update procedure to be restarted from the beginning.

Procedure

Resetting the update procedure on the SL Common UI: a. To reset the update procedure before the beginning of the downtime, choose either Back from the user interface or Reset from the More menu.

This depends on the phase that the update procedure is currently going through. The update procedure consists of phases that can be reset and of phases that you cannot reset directly. Whenever you are inside a resettable phase, the Software Update Manager offers you a Reset option in the More menu. If not, choose Back repeatedly until you are in a resettable phase and the Reset option appears in the More menu. If the update procedure has not progressed far and you choose Back repeatedly, the Welcome dialog may appear.

After you have chosen Reset, the Software Update Manager indicates afterwards the successful reset procedure and asks you to clean up the SUM directory. Choose Cleanup in the More menu. After the cleanup is completed, the Welcome dialog appears again. You can close the browser window or the browser tab page, or you can start the update procedure from the beginning.

 Note

For more information about the More menu, see SL Common UI Elements and Options [page 18].

b. When the Welcome dialog appears, the system has been fully reverted to its state before the update and you can start the update from the beginning. However, we strongly recommend you ensure that all SUM backend processes are stopped, delete the current SUM directory, and use a newly unpacked SUM before you start over.

 Note

When you are in an error dialog and you want to reset the update, be aware of the following:

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 81 ○ Close the browser window or browser tab page when the In progress process execution animation appears. Do not refresh the browser window or tab page, as this might restart the SL Common UI. ○ The Cancel button only stops the SUM background process and the SL Common UI, but does not trigger the reset of the system to its original state. Also, closing the UI tab only closes the user interface. ○ To prevent or correct errors with the reset procedure, see SAP Note 2011380 .

7.4.6 Using the Alert Function

Use

The alert function of the SL Common UI can be set to send an e-mail or an SMS when user action is required, or when the procedure stops because of errors.

Procedure

To configure the alert function, proceed as follows:

1. In the top right corner of the SL Common UI, choose Alert.

Updating SAP Java Systems on Windows: SAP HANA DB 82 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 2. Make the required entries:

Alert Configuration Options

Field Entry

Program Absolute path to a program (for example, a script) that triggers the sending of the notification. You have to pro­ vide this program yourself.

 Example

The following is an example of a script that sends an e-mail to a mail-to-SMS gateway, which in turn gener­ ates the SMS:

#!/bin/bash

#

# Sample script for alert triggering

#

# Configure mailx to send e-mails

#FROM_ADDRESS - indicates the e-mail sender

#SUBJECT - subject of the e-mail

#EMAIL_ADDRESS - indicates the e- mail receiver

#BODY - body of the e-mail

#ATTACHED_FILE - file to be attached to e-mail

#FROM_ADDRESS="[email protected]"

#SUBJECT="EHP Installer Alert"

#EMAIL_ADDRESS="cellphonenumber@T- D1-SMS.de"

#BODY="EHP Installer cannot continue"

#ATTACHED_FILE="Alert.txt

#If you want to send an e-mail, use the following command:

#echo "$BODY" | mailx -r "$FROM_ADDRESS" -s "$SUBJECT" "$EMAIL_ADDRESS"

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 83 Field Entry

#If you want to attach the file with the alert message, specify the path to the alert file.

#The absolute path to the alert file should be the same as in the alert view.

#cat "$ATTACHED_FILE" | mailx -r "$FROM_ADDRESS" -s "$SUBJECT" "$EMAIL_ADDRESS"

Alert File Absolute path to the alert file that stores the alert mes­ sage

Alert Delay (in seconds) Time delay between the event and the sending of the noti­ fication

Set active (checkbox) Activates the alert function

3. To save your entries, choose OK.

7.4.7 Using Breakpoints During the Update

You can stop the update procedure at a specified point by using breakpoints.

Setting Breakpoints in the SL Common UI

On the right-hand side of the browser window, the SL Common UI offers you the option to maintain breakpoints from a list of available breakpoints. You can sort, filter, and search for breakpoints. The icons for the breakpoint status are described in the legend.

The breakpoint list displays icons in three different colors:

● Green - breakpoint lies in the past ● Orange - breakpoint lies in the currently processed phase ● Blue - breakpoint lies in a future phase

After opening the list, it scrolls automatically to a position where the breakpoint of the current phase is listed at the fourth position from the top, if available. You can scroll away from the position, but each time you choose Refresh, the breakpoint list is refreshed and displays the current phase highlighted at the fourth position of the table again.

If SUM stops at a selected breakpoint, it displays a dialog with the options listed below in Options in the Dialog.

Updating SAP Java Systems on Windows: SAP HANA DB 84 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory Options in the Dialog

 Note

Depending on your scenario and system, the available options may vary.

Once you have set a breakpoint, the Software Update Manager stops at that specific point and displays a dialog with the following options:

● Continue execution SUM continues the update automatically until the next breakpoint is reached. Then, the breakpoints dialog is displayed. ● Exit program The update process stops and you exit SUM. When you restart the update process, the breakpoint dialog appears again.

7.4.8 Making Entries for the Specify Authentication Mechanism Roadmap Step

Procedure

Enter the password for the adm user and choose Next.

Alternatively, if the sapcontrol executable is set up in a way that it does not require user credentials, select the checkbox No authentication with user credentials and choose Next.

Release upgrade only: To be able to use this option in a system with multiple application server instances, proceed as described in Configuring SAP Host Agent Authentication and SSL Connection [page 39].

If you choose to continue the update using user credentials, be aware that it is mandatory to use the adm user.

If the OS user credentials for any of the instances in your system do not match the ones that you have already entered for the primary application server instance, you have to specify the correct credentials for each instance on a subsequent screen.

Results

Your administrator user is verified for performing the SUM procedure in the system.

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 85 7.4.9 Making Entries for the Select Target Roadmap Step

Context

You can use this option if you want to apply single component updates or patches.

The system is updated (or extended) with the content available in your manually prepared download directory.

 Note

SUM only reads files located at the top level of the manually prepared directory. Note that any subdirectories are not considered for deployment by SUM.

Procedure

1. In the Stack File or Directory field, specify the path to the manually prepared directory. 2. Choose Next.

 Note

For high availability systems: In the Select Target roadmap step, SUM performs a high availability (HA) verification in your SAP system. For more information, see SAP Note 1864705 .

If an SAP-certified high availability solution is detected in your system, a dialog containing a summary of the relevant software and consistency tests is displayed. The HA consistency test categories are the following: ○ SAP Configuration – this test verifies whether you have all required software units that classify your system as an SAP-certified high availability solution. ○ SAP State – this test verifies that the required units are fully operational. ○ HA Configuration – this test verifies whether your SAP system is configured for high availability. ○ HA State – this test verifies whether the required HA configuration is fully operational.

The Warning status and Error status indicate that your SAP system does not comply with the SAP certification standard for high availability solutions. In such cases, you can continue with the SUM process in the current system state or cancel the SUM process to correct the inconsistencies.

Warning is the highest degree status for the SAP State and HA State categories. Error is the highest degree status for the SAP Configuration and HA Configuration categories. Note that in log files these statuses may be noted differently, for example, in the DETECT-CERTIFIED-HA_*.log file.

Updating SAP Java Systems on Windows: SAP HANA DB 86 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 7.4.10 Making Entries for the Confirm Target Roadmap Step

Procedure

Confirm the component updates and patches you want to apply to the system by choosing Next.

7.4.11 Making Entries for the Configuration Roadmap Step

This roadmap step requires information to run the update such as system users and passwords.

Procedure

1. Enter the password for the AS Java Administrator user with which you log in to the system. 2. To proceed with the update, choose Continue.

On the Select Components screen, a list of all components that have applicable updates in the manually prepared directory is displayed.

 Note

Some kernel components might be rejected by the current validation although they were accepted during the Confirm Target roadmap step. In the Confirm Target roadmap step, the kernel components are accepted on the basis that they are compatible with the database, but OS compatibility is not validated yet. In the Configuration roadmap step, SUM checks the operating system(s) installed in your system landscape and based on this, rejects the incompatible kernel components.

3. Decide how you want to handle the components during the update.

The following information is displayed for each component: ○ Vendor/Name ○ Type ○ Current Version ○ Target Version ○ Details

In the Target Version column, you can select the version that you want to apply for each component or skip the update of a component by selecting skip.

 Note

If you change the content of the manually prepared directory, make sure you rescan the directory again by choosing Rescan.

4. To review the status of the components in the manually prepared directory, choose TargetVersionReport.html.

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 87  Note

For the rules for acceptance or rejection of the components, see also SAP Note 1641062 .

7.4.12 Performing Actions Before the Beginning of the Downtime

This section describes the actions that you have to perform before the downtime begins.

Procedure

1. Make sure that you can recover your SAP system if errors occur: ○ Back up the database so that you can recover it to its current state. ○ Back up the SUM directory. In case of problems during the downtime, for example, a hardware failure, you need the backup of the directory to reset the SAP system to its current state. The directories include, amongst others, profiles, trace files, and files for the SAP kernel needed for a reset of the SAP system.

 Note

If the SUM directory is not part of directory :\usr\sap\, make a separate backup of the complete directory including the subdirectory sdt.

2. Review the changes that will be applied to the system by checking the ProcessOverview.html report.

7.4.13 Performing Actions at the End of the Downtime

Procedure

At the end of the downtime, create the following backups: ○ A backup of your database as described in your database manual ○ A backup of the SUM directory

Updating SAP Java Systems on Windows: SAP HANA DB 88 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 7.4.14 Evaluating the Software Update Manager

To give your feedback to the update process, you can send a feedback form to SAP.

Prerequisites

● The update has finished. ● The client with which the update is controlled needs an Internet connection.

Context

SAP is always interested in improving its tools. Our aim is to provide you with a fast and efficient update process. Upon completing the process successfully, the important statistics of the update are collected in a comprehensive report – the UPGANA.XML file. Evaluating the collected information helps us to improve the update process but also brings benefits like transparency and predictability. Note that the form does not collect any business-related data.

To be able to identify areas in need of improvement, we would highly appreciate getting feedback on your experience with the SUM process. For this purpose, we have incorporated a simple feedback form directly in the SL Common UI (Summary roadmap step). The Summary and Evaluation of the Process dialog contains the following sections:

● Summary Using the corresponding link in the dialog (UPGANA.XML), you can open a process report, which is designed to easily evaluate your update and to better plan follow-up updates. It includes all important artifacts in a single file. ● Feedback Form This form consists of a simple questionnaire on your experiences with the SUM process, a free-text feedback field, XML data generated during the update process, and an email field.

Procedure

1. Answer the questions in the Feedback Form section.

 Note

Answering the questions is optional.

2. Choose SEND TO SAP.

Updating SAP Java Systems on Windows: SAP HANA DB Applying Single Component Updates and Patches Using a Manually Prepared Directory PUBLIC 89 7.4.15 Storing Current SUM Data for Future Use

Context

 Note

This option is only available when applying single component updates and patches.

At the end of a successful update procedure, you can choose to store important data from your current Software Update Manger run. You can use the stored data for future runs using the Manually prepared directory option.

Procedure

1. On the Summary and Evaluation of the Process dialog, choose the checkbox Store current SUM data for reuse. 2. Choose Exit. 3. Optional: To use stored SUM data, start the Software Update Manager as described in Starting the Software Update Manager [page 48].

Results

The data for each SUM execution is stored in a separate folder in the following directory:

:\\SUM\sdt\archive\

The folder names follow the naming convention execution_. Each subsequent SUM execution completed with this option enabled is stored in the same directory in a separate folder.

After a default period of 30 days, a stored SUM instance data folder is archived to a zip file that is stored in the same folder. The archive follows the naming convention mentioned above. This time period can be configured. To do so, you have to adjust the value of the archiving/minage parameter (in days) in the jump_config.txt file, which is located in the following directory:

:\usr\SAP\\SUM\sdt\param\

Updating SAP Java Systems on Windows: SAP HANA DB 90 PUBLIC Applying Single Component Updates and Patches Using a Manually Prepared Directory 8 Installing Additional Usage Types (Technical Usages) in an Existing SAP System

8.1 Introduction

This part of the document describes how to install additional Java technical usages or usage types in an existing SAP system based on SAP NetWeaver Java using the Software Update Manager (SUM) 1.0 SP26.

“Existing SAP system” means that this SAP system has at least Application Server Java installed in it.

You perform the installation of additional technical usages or usage types in an existing Java system to optimize the total cost of ownership (TCO). That is, you do not have to install a complete additional Java system to run additional technical usages or usage types.

8.2 References to Maintenance Planner Documentation

This chapter does not describe how to run the Maintenance Planner. For a better understanding of the general concepts and principles of updating a system, see the Maintenance Planning Guide at http://wiki.scn.sap.com/ wiki/x/VIwqCw , section Guides.

8.3 Restrictions

● Installing additional usage types might cause interdependencies between already installed SAP applications. Therefore, carefully consider the implications of running update processes that affect your existing system landscape: if you want to update your SAP system (perform an upgrade, apply support package stacks, or install an enhancement package), you have to meet the requirements for all installed SAP applications including SAP NetWeaver. For SAP NetWeaver-specific distribution models and application server infrastructure, see http://www.sdn.sap.com/irj/sdn/server-infrastructure . ● You cannot install Process Integration (PI) or Mobile Infrastructure (MI) as an additional usage type using SUM in an existing dual-stack (ABAP+Java) system. Instead, you need to install a new SAP Process Integration system or a new SAP Mobile Infrastructure system from scratch using the Software Provisioning Manager 1.0. ● We do not recommend that you install additional usage types in an existing dual-stack system. For more information, see How to Deploy SAP NetWeaver: Dual Stack vs. Separated Stacks at http://scn.sap.com/ docs/DOC-14359 .

Updating SAP Java Systems on Windows: SAP HANA DB Installing Additional Usage Types (Technical Usages) in an Existing SAP System PUBLIC 91 8.4 Preparation

Procedure

1. Check which usage types are already installed. To do this, go to the usage type system information page of your system at http://:/utl/UsageTypesInfo 2. Check the dependencies for the usage types that you want to install. Make sure that you read this information in the Master Guide for your product version. 3. Use the Quick Sizer tool available at https://www.sap.com/about/benchmark/sizing.html to get information about additional disk space and RAM requirements for the additional usage types that you want to install. 4. Check the sizing guidelines for your product available at https://www.sap.com/about/benchmark/ sizing.html Sizing Guidelines . 5. Provide the required software packages for the additional usages that you want to install. You do this by generating the stack configuration file using Maintenance Optimizer. The stack file and software packages can be downloaded manually from SAP Software Download Center at https://support.sap.com/swdc Support Packages and Patches SAP Support Package Stacks SP Stack Download & Side effect report .

8.5 Installation

To install the desired additional technical usages in your existing SAP system, you need to follow similar workflow as described in Running the Software Update Manager [page 45].

The Software Update Manager applies the stack configuration file provided by you and extends the SAP system with the specified technical usages. Note that there are different installation scenarios:

● The additional technical usages are part of an existing SAP product that has already been activated on the system: In this case, the Software Update Manager installs and activates the new technical usages automatically. ● The additional technical usages are part of an existing SAP product that has not been activated on the system yet: In this case, the Software Update Manager installs the usages but as a post-installation step, you have to activate them manually as described in Post-Installation [page 93]. ● The additional technical usages are part of a new (non-existing) SAP product: In this case, the Software Update Manager installs the usages but as a post-installation step, you have to activate them manually as described in Post-Installation [page 93]. ● Installing SAP Business Suite technical usages on top of an existing SAP NetWeaver Java system: This installation scenario is described in the document SAP Solution Manager: Specifics in Installation and Upgrade available at http://wiki.scn.sap.com/wiki/x/VIwqCw , section How-Tos and Guides. Follow the specific steps described in the chapter Add Installation of SAP Business Suite Usage Types to Existing NW System.

Updating SAP Java Systems on Windows: SAP HANA DB 92 PUBLIC Installing Additional Usage Types (Technical Usages) in an Existing SAP System 8.6 Post-Installation

Context

After you have finished the installation with SUM, you still need to activate the newly installed usage types manually if the conditions described in Installation [page 92] apply.

 Note

● You have to perform the manual activation separately for each additional usage type that needs to be activated. ● As SAP NetWeaver 7.4 and 7.5 rely on PPMS instance information regarding software products installed in the system, for these releases the activation scripts are not required.

Procedure

1. Make sure you are logged on as user adm. 2. Download Scripts_.ZIP from the Attachments tab page of SAP Note 1793486 and extract it to a local directory on the host with the primary application server instance of your SAP system. 3. Edit the activeUT.cmd script and enter the required values (see also the documentation given in the script itself) ○ JAVA_HOME= ○ GLOBAL_DIR= ○ JDBC_CLASSPATH= ○ UT_NAME=[technical name of the usage type or technical usage to be activated] ○ PRODUCT=[technical name of your SAP application] ○ SID=

 Example

SET JAVA_HOME=f:\usr\sap\C11\SYS\exe\jvm\ntia64\sapjvm_6.1.008\sapjvm_6

SET GLOBAL_DIR=F:\usr\sap\C11\SYS\global

SET JDBC_CLASSPATH=f:\sapdb\programs\runtime\jar\sapdbc.jar

SET UT_NAME=EP

SET PRODUCT=NetWeaver

SET SID=C11

4. Open a command prompt and run the activeUT.cmd script separately for each additional technical usage that you need to activate.

Updating SAP Java Systems on Windows: SAP HANA DB Installing Additional Usage Types (Technical Usages) in an Existing SAP System PUBLIC 93  Note

Make sure that you run the activeUT.cmd script with the required command line parameters as described in the documentation given in the script itself. To activate technical usages, you have to set command line parameter –action to true.

5. Check the Master Guide for your product for further implementation and configuration steps.

 Caution

You should not run the automated configuration for the added usage types. Instead, you have to configure them manually.

8.7 Deactivation

This section describes how you can deactivate technical usages or usage types.

Procedure

1. Make sure that you are logged on as user adm. 2. Download Scripts_.ZIP from the Attachments tab page of SAP Note 1793486 and extract it to a local directory on the host with the primary application server instance of your SAP system. 3. Edit the activeUT.cmd script and enter the required values (see also the documentation given in the script itself): ○ JAVA_HOME= ○ GLOBAL_DIR= ○ JDBC_CLASSPATH= ○ UT_NAME=[technical name of the technical usage or usage type to be activated] ○ PRODUCT=[technical name of your SAP application] ○ SID=

 Example

SET JAVA_HOME=f:\usr\sap\C11\SYS\exe\jvm\ntia64\sapjvm_6.1.008\sapjvm_6

SET GLOBAL_DIR=F:\usr\sap\C11\SYS\global

SET JDBC_CLASSPATH=f:\sapdb\programs\runtime\jar\sapdbc.jar

SET UT_NAME=EP

SET PRODUCT=NetWeaver

SET SID=C11

Updating SAP Java Systems on Windows: SAP HANA DB 94 PUBLIC Installing Additional Usage Types (Technical Usages) in an Existing SAP System 4. Open a command prompt and run the activeUT.cmd script separately for each additional technical usage that you need to deactivate.

 Note

Make sure that you run activeUT.cmd script with the required command line parameters as described in the documentation given in the script itself. To deactivate technical usages, you have to set command line parameter –action to false.

Updating SAP Java Systems on Windows: SAP HANA DB Installing Additional Usage Types (Technical Usages) in an Existing SAP System PUBLIC 95 9 Correction of Installed Software Information

9.1 Introduction

 Note

This scenario is only relevant if your source release is SAP NetWeaver 7.3-based, 7.4-based, and higher.

This part of the document describes how you can correct and update the information about the installed software instances in SAP systems using the Software Update Manager. Inconsistencies in this information might cause errors during the regular update processes.

To trigger this scenario, you have to specify the path to a specific stack configuration XML file (stack_cisi.xml) in the Select Target roadmap step.

9.2 Making Entries for the Select Target Roadmap Step

Prerequisites

● You have followed the workflow described in Running the Software Update Manager [page 45]. ● You have generated the specific stack configuration file using the Maintenance Planner.

Procedure

To start the Correction of Installed Software Information scenario, proceed as follows: 1. In the Select Target roadmap step, choose Stack configuration file (XML). 2. Specify the path to the stack_cisi.xml file.

At this point in time, SUM recognizes a special tag within the file and triggers the Corrections of Installed Software Information scenario. 3. In the Confirm Target roadmap step, confirm the target version that SUM has detected. 4. To confirm the scenario, choose Next.

This triggers the update of the installed software information in your SAP system. 5. In the Execute Process... roadmap step, choose Next on all subsequent dialogs until the scenario is completed.

Updating SAP Java Systems on Windows: SAP HANA DB 96 PUBLIC Correction of Installed Software Information A Appendix

A.1 Process Overview Report

This section covers the overview report that contains detailed information about the update process.

With the intent to increase transparency, supportability, and predictability of software maintenance operations, SUM accumulates comprehensive update data during the tool run. The data can be displayed in a special report named Process Overview report, and it is arranged in, but not limited to, the following categories:

● Information about the stack configuration file (stack.xml) and archives in the download directory. An additional window opens where several options are offered. For more information, see ● Software component versions and product structure changes ● Important parameter settings, process steps including descriptions of the manual steps and links to relevant SAP Notes ● Statistics about performance and downtime

● In the Configuration roadmap step, after the Java system user credentials dialog: information about active usage types (technical usages) and current software components versions is added to the report; ● In the Execution roadmap step, after the Java deployment step has finished: deployment results are added to the report; ● After the Execution roadmap step, when the system is already updated: the report contains information about the active usage types and target software component versions.

All reports generated during the SUM process that are otherwise part of the process overview are stored in the :\\SUM\sdt\htdoc directory .

Features

You can access and use the accumulated information through the SUM GUI as follows:

● On demand From the beginning of the SUM execution, you can trigger a report generation by choosing the GUI menu option Update Process Overview report . ● When SUM stops with an error In such cases the report is generated automatically and a link to it is provided directly on the error handling screen. If the report is not automatically displayed, choose the GUI menu option Update Process Overview report . The report displays the roadmap step progress as well as the useful Log Analysis Results section, which contains relevant error diagnostics information and the trouble ticket report.

 Note

If you need to report an incident, we recommend that you attach the ProcessOverview.html report to it.

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 97 ● Upon successful finish In the Summary roadmap step a complete report is generated when the update has finished successfully. A feedback form is presented on the next dialog, and the option to send feedback and the report to SAP for analysis.

More Information

For more information about the process overview html reports, see the article Get to Know the Process Overview Reporting in Software Update Manager available at http://scn.sap.com/docs/DOC-14729 .

A.2 Troubleshooting

This chapter contains information about how to proceed when you want to correct known problems that have occurred during the update.

 Note

In the following, some information is related to steps. As long as the Software Update Manager is running, the step name is displayed on the program tool tab page.

● SL Common UI ○ SL Common UI: Solving Problems with the UI [page 99] ● Logs ○ Update Logs [page 99] ○ Tracing [page 101] ● Correcting errors in steps ○ Enhancement package installation and SPS update: Correcting Errors in the DEPLOY_ONLINE_* Steps [page 101] ○ Release upgrade only: Correcting Problems in the DEPLOY_* Steps [page 103] ○ Release upgrade only: Correcting Errors in the RUN_OFFLINE_MIGRATION Step [page 104] ● General problems ○ Reentering Passwords [page 104] ○ Using the SUM Forced Mode [page 106] ○ Starting and Stopping the AS Java Manually [page 106] ○ Determining the Database Version for SAP HANA DB for Java-only Systems [page 107]

In addition to the problems listed here, also read the SAP Notes that are relevant to this update.

Updating SAP Java Systems on Windows: SAP HANA DB 98 PUBLIC Appendix A.2.1 SL Common UI: Solving Problems with the UI

If you have problems with the SL Common UI, you have several options to solve these issues.

Context

You have several options that might help to solve a problem with SL Common UI, for example, if an error or a system failure occurred. Note that the following procedure does not represent a sequence that you have to follow step by step, but it has to be read in this way: If the restart of the UI does not work, try step 2. If the restart of the SAP Host Agent does not lead to any success, try step 3, and so on.

Procedure

1. Restart the SL Common UI as described in Starting and Restarting the Software Update Manager [page 49]. 2. Restart the SAP Host Agent using the following command:

\exe\saphostexec -restart 3. Install the latest SAP Host Agent version. 4. Cancel the running SAPup processes that were started by the SL Common UI. These processes will be started again automatically as soon as you start the SL Common UI again in the Web browser. 5. To prevent that browser plug-ins and settings interfere with the SL Common UI, enter the URL in a new browser window in Private Browsing mode of Microsoft Internet Explorer, Microsoft Edge, or Mozilla Firefox, or the Incognito mode of Google Chrome. 6. If the problems persist, proceed as described in SL Common UI: Getting Support Using the Support File [page 22].

A.2.2 Update Logs

The Software Update Manager logs all actions in log files to monitor the update. You can access the log files using the Log option on the user interface. Unless otherwise specified below, the log files are stored in the log subdirectory of the sdt subdirectory of the SUM directory.

If you encounter any errors, you can analyze them to help you find a solution.

Trouble tickets are special log files that are created when an error occurs.

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 99 Logging of the Java Update

Log Files There is a log file for each update step. Additional service programs, which are called from the Software Update Manager, also write log files.

Logs that end with the extensions *.out and *.err belong to service programs, for example, from migration programs for different components.

You can view the log files using the log viewer that is integrated into the Software Update Manager GUI. To access it, choose Update Logs .

Enhancement package installation and SPS update:

The log files are stored under SUM\sdt\log\SUM and have the following naming convention:

.log where is the number of step iterations you have already performed.

 Example

Log file for DEPLOY_KERNEL_BINARIES step: DEPLOY_KERNEL_BINARIES_01.LOG.

Release upgrade only:

The log files are stored under SUM\sdt\log and have the following naming convention:

.log where is the number of step iterations you have already performed.

 Example

Log file for DEPLOY_ONLINE_SHD step: DEPLOY_ONLINE_SHD_DLS_01.LOG.

Trouble Tickets

Trouble tickets are stored under SUM\sdt\log\SUM (for enhancement package installation and SPS update) or SUM\sdt\log (for release upgrade) and have the following naming convention:

TroubleTicket_.txt where is the number of the error (not related to the step number).

The trouble ticket contains general information about the system and the error. It references the names of the log files for the step and the external processes. You can use the terms at the end of the ticket to search for SAP Notes related to the error.

If you report an incident, attach the trouble ticket to it to provide SAP Support with the information.

Updating SAP Java Systems on Windows: SAP HANA DB 100 PUBLIC Appendix A.2.3 Tracing

Context

During the update, a trace file is created and saved in the following directory:

:\\SUM\sdt\trc

The default trace level is set to ERROR. You can raise it to gather more information by editing the logging.properties file.

Procedure

1. Stop SUM and ensure that no leftover processes are running. 2. Set the com.sap.sdt.severity and /System/Server/Upgrade.severity parameters to DEBUG in the following locations, respectively: ○ SUM/sdt/param/logging.properties ○ SUM/sdt/prop/logging.properties 3. Start SUM again and repeat the failing step.

Next Steps

If you encounter any update problems, you have to provide access to the following directories to SAP Support:

● SUM/sdt/log ● SUM/sdt/trc ● SUM/sdt/htdoc/ProcessOverview.html ● SUM/summanifest.mf ● SUM/sdt/data/SharedInputCatalog.xml ● SUM/sdt/sdt/data/variables

A.2.4 Correcting Errors in the DEPLOY_ONLINE_* Steps

Use

 Note

This section is relevant if you perform an enhancement package installation or SPS update.

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 101 The target release components are deployed in the DEPLOY_ONLINE_* steps. If an error occurs in these steps, check the specific step log file for detailed information. See also the following sections for information about known problems.

Procedure

Out of Memory Error

The deployment of the queue can finish with an Out of Memory error if not enough virtual memory is available. To solve this problem, use the Config Tool and set the heap size and permanent space Java parameters as described in SAP Note 723909 .

If you encounter such an error in the DEPLOY_ONLINE_* steps and SAP Note 723909 does not solve your problem, increase the value of the *.MaxHeapSize property in the startup.properties configuration file. The file is located at :\usr\sap\\SUM\sdt\data\kernel\startup.properties.

System Left in SAFE Mode After the Deployment

It is possible that after the deployment has finished, the system remains in SAFE mode. This can be observed in SAP MMC or in the file :\usr\sap\\J\j2ee\cluster \instance.properties, property instance.runMode.

Deployment in SAFE mode is more stable and overall execution time is lower than deployment while the system is in NORMAL mode. After the deployment, the Software Update Manager tries to set the system back to NORMAL mode. This switch may fail due to various reasons – misconfigured system, executable permissions, and so on.

You need to set your system in NORMAL mode manually. Proceed as follows:

1. Stop the SUM Java process manually. 2. Only valid for 'Target Release': SAP NetWeaver 7.4 Start the Config Tool script file from the directory \usr\sap\\J \j2ee\configtool. End of 'Target Release': SAP NetWeaver 7.4 3. In the menu, choose File Safe Mode . A dialog box appears. 4. From the Safe Mode Enabled dropdown list, choose No. 5. Choose OK. 6. Save the settings and confirm all the messages that are displayed. 7. Restart AS Java.

Updating SAP Java Systems on Windows: SAP HANA DB 102 PUBLIC Appendix A.2.5 Correcting Problems in the DEPLOY_* Steps

Context

 Note

This section is only relevant if you perform a release upgrade.

The target release components are deployed during the DEPLOY_ONLINE_SHD steps (deployment of file system and application components) and DEPLOY_ONLINE_DB (deployment of database schema and content) steps.

Procedure

1. If an error occurs in one of the deployment steps, look in the following log and trace files for detailed information: ○ deploy_.log ○ deploy_.trc

The timestamp format is YY-MM-DD_HH-MM-SS.

Search for the string “Error” in the log files. 2. Depending on the error, proceed as described below. ○ ERROR: Not deployed. Deploy Service returned ERROR: java.rmi.RemoteException: Cannot deploy application . [..] This error message occurs if a component cannot be deployed. You can find the name of the Software Component Archive (SCA) that failed to be deployed at the end of the log file. If you detect such a problem, report an incident and assign it to component BC-JAS-DPL or to the component of the SCA that cannot be deployed. ○ If there is no error message, but the DEPLOY_ONLINE step runs for a long time, then check the \work\deploy..log file for activity. During the deployment on the shadow system, is the following directory: SUM\sdt\\JC During the deployment on the original system, is the following directory: :\usr\sap\\ The in the deploy log is a number that is incremented each time a new log file is created because the previous one became too large. If there is no activity in the log file and the timestamp is not changing, check whether there is a problem with the database. ○ Failure of DEPLOY_* steps can be related to a wrong system state of the AS Java. During the runtime of the DEPLOY_* steps, the system has to be in a defined state, that is, the AS Java either has to be

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 103 stopped or has to be running. If the system is not in this defined state because of errors in the start or stop procedures, the steps fail. Proceed as follows: 1. Open the steplist.xml file located in :\SUM\sdt\param and search for the failed step. 2. Check the previous step (START_*, STOP_*) to find out in which state the AS Java should be. 3. Check the state of your AS Java. If it is not in the expected state, then start or stop the AS Java, as required. For information about the procedure, see Starting and Stopping the AS Java Manually [page 106]. 4. Repeat the step.

A.2.6 Correcting Errors in the RUN_OFFLINE_MIGRATION Step

Context

 Note

This section is only relevant if you perform a release upgrade.

During the upgrade, there are migrations that are executed as separate Java processes. By default, these Java processes are called with the following heap size parameters:

-Xmx1024m -XX:MaxPermSize=256m

If the migration process needs more memory and fails with an Out Of Memory error in the RUN_OFFLINE_MIGRATION step, you have to increase the default values of the heap size.

Procedure

1. Stop SUM. 2. Increase the default values of the heap size by editing the configuration file JMTJVMArguments.xml, which is located in the SUM\sdt\config directory, and save your changes. 3. Restart SUM and repeat the failed step.

A.2.7 Reentering Passwords

Prerequisites

You have to be in a dialog step, that is, SUM is waiting for user input or actions.

Updating SAP Java Systems on Windows: SAP HANA DB 104 PUBLIC Appendix Context

You have the option to reenter passwords that you entered in the Configuration roadmap step. Use it if, for example, you have accidentally entered a wrong password, or the update has failed because you changed a password after the Configuration roadmap step has been passed.

You can update the following passwords using this option:

● Standard database schema password – if you have changed the standard database schema password after the Configuration roadmap step, you have to run the Reenter password option so that the SUM can read the new password from the secure store.

 Note

The credentials for the shadow schema database user used during the update process are copied from the standard schema database user contained in the secure store.

● AS Java Administrator user password ● SDM user password ● SAPService user password ● adm user password

Procedure

1. On the SL Common UI, choose More Reenter Passwords .

The Specify User Credentials dialog is displayed. 2. Enter the passwords that need to be changed. 3. Choose Continue.

 Note

In error cases that require reentering the AS Java Administrator credentials and the SDM password, SUM displays a dialog where you can do so. Note that the credentials are not validated, as the AS Java is not operational during the downtime.

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 105 A.2.8 Using the SUM Forced Mode

This section describes how you start the forced mode.

Context

The Software Update Manager can be set to work in forced mode. You can use this mode, for example, if you want to perform deployment of development components (DCs) when using the manually prepared SUM directory.

Procedure

1. Navigate to :\usr\sap\\SUM\sdt\param\ and open the jspm_config.txt for editing. 2. Set the following parameter values as follows:

/jspm/deployVersionRule = updateAll

/jspm/forceMode = True

For more information about deployment of DCs, see SAP Note 1824237 .

A.2.9 Starting and Stopping the AS Java Manually

Procedure

To start the AS Java, proceed as follows:

1. Start the instance with the following command: Release upgrade only: \sdt\data\kernel\sapcontrol -prot NI_HTTP -nr <– number> -function Start Enhancement package installation and SPS update only: :\usr\sap\\SYS\exe \sapcontrol -prot NI_HTTP -nr <–number> -function Start 2. Check whether the AS Java is running with the following command: Release upgrade only: \sdt\data\kernel\sapcontrol -nr -host -function WaitforStarted 3600 10 Enhancement package installation and SPS update only: :\usr\sap\\SYS\exe \sapcontrol -nr -host -function WaitforStarted 3600 10 If the AS Java is started correctly, the following message appears:

Updating SAP Java Systems on Windows: SAP HANA DB 106 PUBLIC Appendix If the startup of the AS Java has failed, the following message appears:

To stop the AS Java, proceed as follows:

1. Enter the following command: Release upgrade only: \sdt\data\kernel\sapcontrol -nr -host -user adm -function Stop Enhancement package installation and SPS update only: :\usr\sap\\SYS\exe \sapcontrol -nr -host -user adm - function Stop 2. Check whether the AS Java is stopped by executing the following command: Release upgrade only: \sdt\data\kernel\sapcontrol -nr -host -function WaitforStopped 3600 10 Enhancement package installation and SPS update only: :\usr\sap\\SYS\exe \sapcontrol -nr -host -function WaitforStopped 3600 10 If the AS Java is stopped correctly, the following message appears:

A.2.10 Determining the Database Version for SAP HANA DB for Java-only Systems

To check the version of the SAP HANA client software, see the content of the manifest file in the following client software installation path:

:\usr\sap\\hdbcclient

For the version of the SAP HANA server software, see the content of the manifest file in the following server software installation path:

:\usr\\HDB\\exe

Related Information

Troubleshooting [page 98]

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 107 A.3 List of Referenced SAP Notes

In addition to the SAP Notes that you need to prepare the update (see SAP Notes [page 10]), this document also refers you to other SAP Notes that contain additional information. The following lists contain these SAP Notes:

Database-Independent SAP Notes SAP Note Number Description Area

2464065 Check of automatic maintenance mode Update of HA systems for HA solutions

2245971 Optimizing Startup of Windows Failover Performing Manual Actions for the SAP Cluster-based SCS / ASCS Instances Central Services Instances

1528974 Unintended failover during installation Windows-specific, high availability and upgrade Release upgrade only

816211 STARTUP script on Windows systems Start of Software Update Manager

1528297 Merge start profile with instance profile Windows-specific, ASCS/SCS instance

595341 Installation issues with Single Sign-On Single Sign-On and SNC Release upgrade only

352295 Single Sign-On op­ Single Sign-On tions Release upgrade only

1375494 SAP system does not start due to Mi­ Windows-specific crosoft security patch

1641062 Single component update and patch Single component updates scenarios in SUM

1793486 Installing Add. Usage Types on Existing Installation SAP System – Using SUM

1864705 Compatibility checks for certified HA System administration / troubleshoot­ setups ing

1824237 Redeploying customized development General Update components with SUM

1759081 Conditions for SUM feature Deploy­ General Update ment Optimization Option

1951491 Minimum database system platform re­ General Update quirements for SAP NetWeaver 7.4 SP08

1877731 Installed Software Information (ISI) Installing additional usage types (tech­ nical usages) or product instances

Updating SAP Java Systems on Windows: SAP HANA DB 108 PUBLIC Appendix SAP Note Number Description Area

1738760 SAPLOCALHOST settings as a profile pa­ General update rameter and environment variable System administration / troubleshoot­ ing

2130510 SAP Host Agent 7.21 General update

System administration

1031096 Installing package SAPHOSTAGENT General update

System administration / troubleshoot­ ing

1907566 Obtaining the latest SAP Host Agent General update documentation

609603 Problems with Multiple NICs and SAP General update J2EE Engine System administration / troubleshoot­ ing

1974464 Information about SCA Dependency Single component updates Analysis for Java download objects System administration / troubleshoot­ ing

1873529 Correcting Errors with General update RUN_SOURCE_ONLINE_MIG_CONTROLL ERS During SAP NetWeaver Migration System Maintenance

2011380 Previous SUM not finished properly and Troubleshooting asking for Clean Module Password

1240081 Java Cryptography Extension (JCE) Ju­ General update risdiction Policy Files

1642340 sapcontrol SSL usage General update

A.4 List of Referenced Documentation

The following table contains a list of all documentation referenced in this document and information about where to find this documentation.

Updating SAP Java Systems on Windows: SAP HANA DB Appendix PUBLIC 109 Referenced Documentation

Document Internet Address

For the SAP NetWeaver release: http://help.sap.com/netweaver SAP NetWeaver

● Upgrade Master Guide Installation and Upgrade ● Master Guide See also Accessing SAP NetWeaver Library [page 11]. ● Upgrade and Update Guides ● Installation Guide

For your SAP application: http://help.sap.com/erp Installation and ● Upgrade Master Guide Upgrade ● Master Guide ● Upgrade Guide ● Installation Guide

DMO Guide (guide for the database migration option of http://support.sap.com/sltoolset System SUM) Maintenance Database Migration Option (DMO) using

SUM

Installation Guide http://support.sap.com/sltoolset System Provisioning

Install a System using Software Provisioning Manager

Updating SAP Java Systems on Windows: SAP HANA DB 110 PUBLIC Appendix Important Disclaimers and Legal Information

Hyperlinks

Some links are classified by an icon and/or a mouseover text. These links provide additional information. About the icons:

● Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your agreements with SAP) to this:

● The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information. ● SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.

● Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering a SAP-hosted Web site. By using such links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this information.

Videos Hosted on External Platforms

Some videos may point to third-party video hosting platforms. SAP cannot guarantee the future availability of videos stored on these platforms. Furthermore, any advertisements or other content hosted on these platforms (for example, suggested videos or by navigating to other videos hosted on the same site), are not within the control or responsibility of SAP.

Beta and Other Experimental Features

Experimental features are not part of the officially delivered scope that SAP guarantees for future releases. This means that experimental features may be changed by SAP at any time for any reason without notice. Experimental features are not for productive use. You may not demonstrate, test, examine, evaluate or otherwise use the experimental features in a live operating environment or with data that has not been sufficiently backed up. The purpose of experimental features is to get feedback early on, allowing customers and partners to influence the future product accordingly. By providing your feedback (e.g. in the SAP Community), you accept that intellectual property rights of the contributions or derivative works shall remain the exclusive property of SAP.

Example Code

Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of example code unless damages have been caused by SAP's gross negligence or willful misconduct.

Gender-Related Language

We try not to use gender-specific word forms and formulations. As appropriate for context and readability, SAP may use masculine word forms to refer to all genders.

Updating SAP Java Systems on Windows: SAP HANA DB Important Disclaimers and Legal Information PUBLIC 111 www.sap.com/contactsap

© 2021 SAP SE or an SAP affiliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice.

Some software products marketed by SAP SE and its distributors contain components of other software vendors. National product specifications may vary.

These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP or SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE (or an SAP affiliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies.

Please see https://www.sap.com/about/legal/trademark.html for additional trademark information and notices.

THE BEST RUN