How to Install SAP License on SAP AS JAVA using offlinelicensing Command

There are multiple ways to install SAP license on SAP Application Server JAVA. In this article, we are going to show you the steps to install SAP license using offlinelicensing command. The steps are very useful when your SAP Application Server JAVA is down or offline.

You can also refer to the following articles for other methods,

Log in to the operating system level where the SAP AS JAVA is installed. Go to the following directory (this is an example on Windows operating system)

PATH:\usr\sap\SID\J00\j2ee\configtool\licenses

Next, move the SAP license file into the above location and execute the following command.

offlinelicensing.bat -install LESEN.txt

So, to verify your installed license, execute the below command,

offlinelicensing.bat -show

Offline License Management Tool Started
The following license keys were found:
System........................... : SID
Hardware Key............. : ABC12345
SW product................. : J2EE-Engine_MSS
SW product Limit...... : Unlimited
Begin date.................... : 16/Oct/2021
Expiration date........... : 31/Dec/9999
License key type......... : Permanent
Installation No............. : 1234567
System No..................... : 1234567
Validity............................ : valid
Offline License Management Tool Finished

Apart from the above command line of installing the SAP license, you can use the help query to see the other options, i.e. checking the version or deleting the SAP license.

Acceptable options:
-help . . . . . . . . . . . . . Display this help
-version  . . . . . . . . . . . Display the license format version
-info . . . . . . . . . . . . . Display system licensing info
-install <filename> . . . . . . Install productive license(s) from a file
-show . . . . . . . . . . . . . Display installed licenses
-temp <Product> . . . . . . . . Create and install a temp license
-temppossible <Product> . . . . Check whether a temp license may be installed
-delete <SID> <HWK> <PRD> . . . Delete license(s), where:

The parameters after "-delete" option are:
SID = System Id
HWK = Hardware Key
PRD = Product

For each of the "-delete" option parameters you can use "*" as a wildcard.
The quotes in the wildcard are necessary for the corresponding shell to accept
the wildcard as an additional parameter of the "-delete" option, but not to
expand the wildcard.
Example for deleting all the licenses on the system:
offlinelicensing.sh -delete "*" "*" "*"

The "-install" option requires the new license to be validated. For that
purpose the Offline License Management Tool has to get the system hardware key
from the Message Server. Therefore, the Central Services Instance has to be up
and running. The same applies to "-show" option for verifying and displaying
the validity of each installed license.

You May Also Like

Leave a Reply?