重置(reset) HANA的是system的密码


 

 

Symptom

User tries to update the SYSTEM user's password of the SAP HANA database in the Multitenant Database Container (MDC) mode. 

For How-To, choose the anchor link below that is specific to the SAP HANA version : 

Environment

  • SAP HANA 1.0 SPS11 or SPS12
  • SAP HANA 2.0 SPS00
  • SAP HANA 2.0 SPS01 and above

Resolution

How to Reset System User Password for When Password is Known for the System User (All versions) : 

  1. Perform the ALTER USER SQL statment on SQL console of the Tenant Database :

    ALTER USER SYSTEM PASSWORD <new_password>;

  2. Note: If the password contains special character, please enclose the password with dobule quotes (").

    See example :

     

    老应出版,翻版必究;如要不究,记得知会。。。。。 

How to Reset System User Password When Password is Lost for Tenant Database on HANA 1.0 SPS11, SPS12 and HANA 2.0 SPS00

  1. Find out the internal port used by the indexserver of the target tenant database from Hana studio landscape tab, it will be used later.

     

     



  2.  Stop the tenant database by executing the following statement on SYSTEMDB, for example in the SQL console of the SAP HANA studio:

     ALTER SYSTEM STOP DATABASE <database_name>;

     

     老应出版,翻版必究;如要不究,记得知会。。。。。



  3. Log on to the server on which the of the index server of the tenant database is running as the operating system user (that is, adm user). And run the following command:

    export DBNAME=<database_name>  (In case C shell is used, you can execute command "setenv DBNAME <database name>" instead)

    ./hdbenv.sh

     老应出版,翻版必究;如要不究,记得知会。。。。。

     



  4. Run the following command to start indexserver with password reset option:

    DBNAME=<database_name> /usr/sap/<SID>/HDB<instance>/exe/hdbindexserver -port <internal port> -resetUserSystem

    When the following prompt appears: "resetting of user SYSTEM - new password", enter the new password and hit enter to finish.

    Note: If special characters were used in the password, please enclose the password phrase with double quotes (""). 

     

    老应出版,翻版必究;如要不究,记得知会。。。。。 



  5. Start the tenant database with command:

    ALTER SYSTEM START DATABASE <database_name>;


 

 

How to Reset System User Password When Password is Lost for Tenant Database on HANA 2.0 SPS01 and above:

  1. Ensure the tenant database is offline by check ACTIVE_STATUS on SYSTEMDB :

    SELECT * FROM M_DATABASES;

    ImageA.png

  2. If tenant database is not offline, Stop the tennat database :

    ALTER SYSTEM STOP DATABASE <database_name>;

  3. After SPS01, the solution is to manage users on SYSTEMDB instead using SQL command ALTER DATABASE.

 ALTER DATABASE <database_name> SYSTEM USER PASSWORD <new_password>;
        See Example :

ImageB.png 

老应出版,翻版必究;如要不究,记得知会。。。。。

Keywords

SYSTEM User Password; SAP HANA; User Management; SPS 12;  SPS 01; SPS 02; SPS 03; SPS 04; HANA 1.0; HANA 2.0;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM