Skip to Content
Technical Articles

HANA parameter change without DB user from console tool – SPS05 and above

Introduction – Console Tool

From SAP HANA version 2.0 SPS05, you can use the console tool to make changes to configuration parameter values, it can be run from the command line or integrated with other administration management tools and scripts.

The tool can be used either when the database is offline or online if for any reason it is not possible to make a configuration parameter change by executing an SQL statement. It ensures that if changes are made simultaneously to an ini file the changes are synchronized and applied correctly, this eliminates the need for administrators to directly edit ini files.


The command supports both setting and unsetting parameters. No key value is required when unsetting a parameter:

python -set(or unset)=<LAYER>/<INIFILE_NAME>/<SECTION>/<KEY>=<VALUE>
[-comment=comment] [-reconfigure] [-sapcontrol=1]

The tool also supports a ‘help’ argument (-h) which displays a page of help text. The help page is shown automatically if invalid syntax is entered.


One of the coolest features of this tool is that we can use it as a script to set or unset multiple values at the same time.

  • Setting for SYSTEMDB
  • Setting for tenant DB
  • Setting Multiple values together

Conclusion : Return Values (0/1/2)

After submitting the command one of the following codes is returned indicating success or failure of the execution:

  • 0 Successful execution

  • 1 Could not be executed because of incorrect usage (unexpected parameter values)

  • 2 Other error

If the -sapcontrol=1 is provided, then one of the following is printed in the output:



This python tool is really very helpful for doing mass changes, where you don’t need to authenticate on every server for DB user for running the ALTER statements.

You must be Logged on to comment or reply to a post.
  • Hi Vivek,

    is it intended that the script will also check - in the future - whether parameters, sections and values ​​are correct? And will direct changes in the ini files be prevented in the future?



    • Hi Michael

      I don't think so, this was only intended to do the changes for HANA parameters.
      In every new hana revision, we have some parameters which discontinues and some newly added parameters as well, so this won't be able to serve the purpose that efficiently.

      But, there is a configuration parameter in global.ini file :
      unsupported_configuration_change = error

      If this is set, then it won't allow you to set any wrong parameter/section/key/value and throw an error.

      Best Regards,
      Vivek Sahu

  • Will we have a view on who/when did the parameter changes done, if there is no comment input during set parameter with Thinking from a auditing perspective.