Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
AJAYTR_ATR66
Participant
1,343

#ATR (22) Informative Note:

  • Created this blog to provide information on System Rename Scenarios.
  • SAP System Rename can be used mostly in scenarios whether we require SID Name Change, Incorrect Hostname Change, FQDN – DNS Problems, SIDADM User Problems.
  • Mostly, we will run HDBLCM & SWPM - System Rename post Appliance/IDES Installation since it will be installed with Default SIDs (S4H) and Virtual Host (vhcals4h).

AJAYTR_ATR66_0-1722783421734.png

AJAYTR_ATR66_1-1722783421739.png

  • We will work on the scenarios.

                CASE 1: SIDADM User Problems

                CASE 2: System SID Rename - ABAP/HANA DB (TENANT&SYSTEM)

CASE 1: SIDADM USER PROBLEMS

  • Consider, SIDADM user entirely corrupted/deleted or configuration changed during OS level activity.
  • I have removed/deleted both ABAP and HANA DB SIDADM user of my SAP System.

AJAYTR_ATR66_2-1722783421748.png

  • Even if we create manually post SIDADM corrupted/deleted, it won’t be acted as SAP System/HANA Administrator which Environment variables of SIDADM won’t reflect properly resulting in SAP System Stoppage.

AJAYTR_ATR66_3-1722783421750.png

AJAYTR_ATR66_4-1722783421761.png

INFORMATIVE NOTE:

  • We can’t recreate HANA SIDADM user via SWPM. HDBLCM can be used to rename Hana Database which includes Hana user creation as well.
  • We can run Operating System Users and Groups – System Rename Option to create ABAP SIDADM user even if DB in Stopped state/DB SIDADM User does not exist.
  • We can also run Master System Rename Run for recreating ABAP SIDADM user as well, but DB should be up and running fine to run system rename.

AJAYTR_ATR66_5-1722783421764.png

  • HANA DB - Make sure to change some properties – Instance Number which will be the priority choice. Else, System Rename won’t occur.

AJAYTR_ATR66_6-1722783421765.png

  • I have deleted home directory of SIDADM user as well to recreate from scratch.
  • ABAP - /home/SIDADM || HANA DB - /usr/sap/SID/home

AJAYTR_ATR66_7-1722783421770.png

HANA DB SIDADM User Creation - Run HDBLCM System Rename:

  • Select “Rename Hana Database System” - hdblcm.

AJAYTR_ATR66_8-1722783421773.png

AJAYTR_ATR66_9-1722783421782.png

  • Make sure to provide correct User ID of SIDADM. Find UID from any HDB path (EX - /hana/data/HDB)

AJAYTR_ATR66_10-1722783421784.png

AJAYTR_ATR66_11-1722783421795.png

AJAYTR_ATR66_12-1722783421796.png

AJAYTR_ATR66_13-1722783421797.png

  • Hana DB SIDADM user created successfully and environment variables reflected fine.

AJAYTR_ATR66_14-1722783421797.png

  • We can also rerun – Rename System once again to change instance number back from 3 to 2.

ABAP SIDADM User Creation – Operating System Users and Groups:

  • Mine -> S4HANA System. Hence, I have chosen SWPM 2.0. Choose your SWPM version accordingly w.r.t your SAP System.

AJAYTR_ATR66_15-1722783421799.png

AJAYTR_ATR66_16-1722783421801.png

AJAYTR_ATR66_17-1722783421802.png

AJAYTR_ATR66_18-1722783421811.png

Define Parameters:

AJAYTR_ATR66_19-1722783421818.png

  • Provide corresponding User ID of SID user.

AJAYTR_ATR66_20-1722783421819.png

AJAYTR_ATR66_21-1722783421825.png

  • Choose “Clean up OS users – Removes from sapinst group” accordingly – Optional

AJAYTR_ATR66_22-1722783421835.png

Review Parameters:

  • It’s just reviewing our provided parameters.

AJAYTR_ATR66_23-1722783421840.png

Execute Service:

AJAYTR_ATR66_24-1722783421844.png

AJAYTR_ATR66_25-1722783421847.png

  • ABAP SIDADM user created successfully. Environment variables reflected fine as well.

AJAYTR_ATR66_26-1722783421850.png

  • We have successfully created both ABAP and HANA SIDADM user.

Establishing ABAP and DB Connection:

  • My goal is to showcase scenario when users were completely deleted/corrupted, and configuration needs to be done from Scratch. Hence, Deleted SIDADM Home Directory as well.
  • Environment variables – dbms_type and hdbclient alone won’t reflect since it won’t come by default after user recreation.
  • Hence, DBMS_TYPE and HDBCLIENT path needs to be set manually.
  • HDBUSERSTORE Entry needs to be added for ABAP to connect Hana Database.

Error 1:

AJAYTR_ATR66_27-1722783421851.png

  • Set dbms_type accordingly and try again. Mine -> HDB.

AJAYTR_ATR66_28-1722783421853.png

Error 2:

AJAYTR_ATR66_29-1722783421855.png

  • Add HDBClient path in LD_LIBARARY_PATH. Mine -> /sapmnt/SID/exe/uc/linuxx86_64/hdbclient – Linux. Hence, Added in Default tab.
  • For Others AIX, HP* - Add it in corresponding tab.

AJAYTR_ATR66_30-1722783421858.png

AJAYTR_ATR66_31-1722783421860.png

Need more information on How to Connect ABAP with HANA DB?

 Please review below blog.

HANA Secondary Database Connection Issues on ECC Oracle system #ATR

Error 3:

AJAYTR_ATR66_32-1722783421861.png

AJAYTR_ATR66_33-1722783421863.png

  • Delete existing/corrupted HDBUSERSTORE DEFAULT Key and Add once again.

AJAYTR_ATR66_34-1722783421864.png

AJAYTR_ATR66_35-1722783421875.png

  • R3trans connection looks fine now. ABAP System runs fine.

AJAYTR_ATR66_36-1722783421876.png

WE HAVE SUCCESSFULLY CREATED ABAP/HANA SIDADM Users and Re-established connection with DB.

CASE 2: SYSTEM SID CHANGE:

CHANGING ABAP SID and TENANT DB SID via SWPM SYSTEM RENAME:

  • We are going to rename both ABAP SID and HANA TENANT/SYSTEM SID.
  • For System Rename run, ensure to run with Short DNS instead of IP/FQDN if SAPINST_USE_HOSTNAME used.
  • SWPM will pick our provided value which results in Prerequisite Check Failure and IP assignment to Profiles if IP/FQDN provided.

AJAYTR_ATR66_37-1722783421881.png

AJAYTR_ATR66_38-1722783421883.png

SWPM System Rename Run

  • Run “SWPM” and Select “System Rename” in SWPM.

AJAYTR_ATR66_39-1722783421886.png

Define Parameters:

AJAYTR_ATR66_40-1722783421888.png

  • Enter Source SID and Target SID.

AJAYTR_ATR66_41-1722783421891.png

  • If this run used for recreating SIDADM users, we can provide same SID for both Source and Target SID.
  • Current Scenario – To do actual System Rename.

AJAYTR_ATR66_42-1722783421894.png

  • Make sure to check whether host reflected correctly as same as DNS Name.

AJAYTR_ATR66_43-1722783421898.png

AJAYTR_ATR66_44-1722783421902.png

  • Provide Hana DB Instance Number and System User (TENANT) Database Password.
  • Make sure to have DB up and running fine.

AJAYTR_ATR66_45-1722783421903.png

AJAYTR_ATR66_46-1722783421908.png

  • Database should be up and running fine as already mentioned in “INFO”.

AJAYTR_ATR66_47-1722783421909.png

  • We can change SAPHANADB, DBACOCKPIT, SYSTEM user password if required. Mine -> I’M just renaming TENANT DB SID only. Passwords can remain same,

AJAYTR_ATR66_48-1722783421913.png

  • Provide SAPHANADB schema password.

AJAYTR_ATR66_49-1722783421917.png

  • We can rename TENANT DB SID if required. Mine -> Renaming to H** to H4B. Just making Naming Convention – ABAP – S4B and HANA – H4B.
  • Provide SYSTEM (DB) user password.

AJAYTR_ATR66_50-1722783421920.png

  • Using default HANA Secure User Store (hdbuserstore).

AJAYTR_ATR66_51-1722783421924.png

  • Provide SIDADM (S4BADM) password.
  • Leaving UID/GID/Home Directory as default.

AJAYTR_ATR66_52-1722783421928.png

  • Chosen “Default Key” – Maintained in our HDBUSERSTORE list.

AJAYTR_ATR66_53-1722783421932.png

  • Make sure to provide correct FQDN.

AJAYTR_ATR66_54-1722783421935.png

  • We need to install license key now/ as soon as system rename completed. Mine -> As soon as System Rename completed.
  • We can’t able to connect ABAP and DB if license key not applied. Also, Full operations won’t be available while accessing DB via HANA Cockpit/Studio.

AJAYTR_ATR66_55-1722783421937.png

  • Cleanup OS users (removes sapinst group) – Optional.

AJAYTR_ATR66_56-1722783421943.png

Review Parameters:

  • It’s just reviewing parameters.

AJAYTR_ATR66_57-1722783421946.png

Execute Service:

AJAYTR_ATR66_58-1722783421949.png

AJAYTR_ATR66_59-1722783421950.png

  • We have successfully changed ABAP SID (to S4B) and HANA DB TENANT SID (to H4B) using System Rename run.

AJAYTR_ATR66_60-1722783421953.png

AJAYTR_ATR66_61-1722783421954.png

AJAYTR_ATR66_62-1722783421960.png

CHANGING SYSTEMDB SID via HDBLCM System Rename:

  • SWPM – System Rename run can be used to rename ABAP SID and HANA TENANT DBSID only.
  • Use HDBLCM System Rename run to change HANA SYSTEM DB SID with SIDADM Users/File directories.

AJAYTR_ATR66_63-1722783421961.png

AJAYTR_ATR66_64-1722783421974.png

AJAYTR_ATR66_65-1722783421975.png

AJAYTR_ATR66_66-1722783421977.png

 WE HAVE SUCCESSFULLY CHANGED ABAP SID TO S4B & HANA TENANT/SYSTEM DB SID TO H4B

License Key:

  • R3trans will result in License Key Error once system DB SID changed – “only commands for license handling are allowed in current state”.

AJAYTR_ATR66_67-1722783421979.png

Wanna know how to apply license key?

Please refer below blog.

SAP LICENSE RENEWAL FROM BASIS END #ATR

 

Thanks for Visiting!

Please do connect and follow my Linked In Profile.

https://www.linkedin.com/in/ajaytr66/

Labels in this area